Class
GdkMonitor
Description [src]
final class Gdk.Monitor : GObject.Object
{
/* No available fields */
}
GdkMonitor objects represent the individual outputs that are
associated with a GdkDisplay
. GdkDisplay has APIs to enumerate
monitors with gdk_display_get_n_monitors()
and gdk_display_get_monitor(), and
to find particular monitors with gdk_display_get_primary_monitor()
or gdk_display_get_monitor_at_window().
GdkMonitor was introduced in GTK+ 3.22 and supersedes earlier APIs in GdkScreen to obtain monitor-related information.
Instance methods
gdk_monitor_get_geometry
Retrieves the size and position of an individual monitor within the display coordinate space. The returned geometry is in ”application pixels”, not in ”device pixels” (see gdk_monitor_get_scale_factor()).
since: 3.22
gdk_monitor_get_scale_factor
Gets the internal scale factor that maps from monitor coordinates to the actual device pixels. On traditional systems this is 1, but on very high density outputs this can be a higher value (often 2).
since: 3.22
gdk_monitor_get_subpixel_layout
Gets information about the layout of red, green and blue primaries for each pixel in this monitor, if available.
since: 3.22
gdk_monitor_get_workarea
Retrieves the size and position of the “work area” on a monitor within the display coordinate space. The returned geometry is in ”application pixels”, not in ”device pixels” (see gdk_monitor_get_scale_factor()).
since: 3.22
gdk_monitor_is_primary
Gets whether this monitor should be considered primary (see gdk_display_get_primary_monitor()).
since: 3.22
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.