width


Description:

public static int width ()

Gets the width of the default screen in pixels.

Note:

Use per-monitor information

The returned size is in ”application pixels”, not in ”device pixels” (see gdk_screen_get_monitor_scale_factor).

Returns:

the width of the default screen in pixels.