width


Description:

[ Version ( deprecated = true , deprecated_since = "3.22" ) ]
public static int width ()

Warning: width is deprecated since 3.22.

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 get_monitor_scale_factor).

Returns:

the width of the default screen in pixels.