Method VirtualScreen():getRect() Foundation

Get the rectangle encompassing the virtual screen.

Syntax
:getRect() --> aRect
Return

An array with the left, top, right and bottom coordinates of the screen rectangle in pixel.

Description

The method :getRect() can be used to determine the rectangle encompassing all the physical screens currently connected to the computer. The rectangle is specified in pixels since it may span multiple physical screens with different scale factors (DPI settings).

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.