Screen.getWidth

Gets the width of screen in pixels. The returned size is in ”application pixels”, not in ”device pixels” (see Screen.getMonitorScaleFactor).

More...
class Screen
int
getWidth
()

Return Value

Type: int

the width of screen in pixels.

Detailed Description

Deprecated: Use per-monitor information instead

Meta