Class PhysicalScreen() Foundation

Provides information about physical screens connected to the computer.

Description

The PhysicalScreen class provides information about and interfaces for working with physical screens.

Each PhysicalScreen instance represents one physical screen. The combined display area of all connected screens together forms the virtual screen on which application windows can be positioned. The method VirtualScreen:getPhysicalScreens()can be used for getting the list of physical screens which are currently connected to the computer.

Instance methods
:getDepth()
Returns the color depth.
:getHeight()
Returns the height of the screen area.
:getId()
Returns a unique id.
:getLogicalRect()
Returns the logical rectangle on the virtual screen.
:getName()
Returns the screen name.
:getScaleFactor()
Returns the scale factor.
:getScreenRect()
Returns the screen rectangle.
:getWidth()
Returns the width of the display area.
:getUsableLogicalRect()
Returns the usable area on the physical screen.
:isPrimary()
Determines whether a screen is the primary screen.
:isTouchable()
Determines whether touch input is supported.
:pixelToPoint()
Converts a point from system to logical coordinates.
:pointToPixel()
Converts a point from logical to system coordinates.
:setWindow()
Displays a window on a physical screen.
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.