Screen
Complete API reference for Screen, including constructors, attributes, virtual attributes, and methods.
Package: JAVARuntime
Category: Platform
Component: no
public class Screen
Static Methods
| Signature | Returns | Description |
|---|---|---|
getWidth() | int | Returns the screen width in pixels. |
getHeight() | int | Returns the screen height in pixels. |
width() | int | Returns the screen width in pixels. |
height() | int | Returns the screen height in pixels. |
ratio() | float | Returns the aspect ratio of the screen (width divided by height). |