#FEATURE by stefan
authorStefan Vogel <sv@exept.de>
Wed, 26 Feb 2020 11:43:20 +0100
changeset 9005 b0034f9c5067
parent 9004 a9067f6b4e80
child 9006 2f1134efbde4
#FEATURE by stefan class: DeviceWorkstation added: #queryUsableExtent
DeviceWorkstation.st
--- a/DeviceWorkstation.st	Wed Feb 26 09:09:40 2020 +0100
+++ b/DeviceWorkstation.st	Wed Feb 26 11:43:20 2020 +0100
@@ -1,5 +1,3 @@
-"{ Encoding: utf8 }"
-
 "
 COPYRIGHT (c) 1993 by Claus Gittinger
 	      All Rights Reserved
@@ -1658,6 +1656,14 @@
     ^ false
 !
 
+queryUsableExtent
+    "answer the extent of all monitors"
+
+    ^ (Screen current monitorInfos 
+        collect:[:each| each bounds])
+        fold:[:firstRect :nextRect| firstRect merge:nextRect]
+!
+
 rootView
     "return the rootView (i.e. the background window) on the receiver screen.
      It is not guaranteed, that a particular display device supports this."