![]() |
![]() |
|
![]() |
||||||||||
Access to display information.
Screen class can be used to get the list of supported resolutions, switch the current resolution, hide or show the system mouse pointer.
| resolutions |
All fullscreen resolutions supported by the monitor (Read Only). |
| currentResolution |
The current screen resolution (Read Only). |
| showCursor |
Should the cursor be visible? |
| lockCursor |
Should the cursor be locked? |
| width |
The current width of the screen window in pixels (Read Only). |
| height |
The current height of the screen window in pixels (Read Only). |
| dpi |
The current DPI of the screen / device (Read Only). |
| fullScreen |
Is the game running fullscreen? |
| autorotateToPortrait |
Allow auto-rotation to portrait? |
| autorotateToPortraitUpsideDown |
Allow auto-rotation to portrait, upside down? |
| autorotateToLandscapeLeft |
Allow auto-rotation to landscape left? |
| autorotateToLandscapeRight |
Allow auto-rotation to landscape right? |
| orientation |
Specifies logical orientation of the screen. |
| sleepTimeout |
A power saving setting, allowing the screen to dim some time after the |
| SetResolution |
Switches the screen resolution. |