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.

Hierarchy

hierarchy this GdkMonitor ancestor_0 GObject ancestor_0--this

Ancestors

Instance methods

gdk_monitor_get_display

Gets the display that this monitor belongs to.

Available since: 3.22

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

Available since: 3.22

gdk_monitor_get_height_mm

Gets the height in millimeters of the monitor.

Available since: 3.22

gdk_monitor_get_manufacturer

Gets the name or PNP ID of the monitor’s manufacturer, if available.

gdk_monitor_get_model

Gets the a string identifying the monitor model, if available.

gdk_monitor_get_refresh_rate

Gets the refresh rate of the monitor, if available.

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

Available 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.

Available since: 3.22

gdk_monitor_get_width_mm

Gets the width in millimeters of the monitor.

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

Available since: 3.22

gdk_monitor_is_primary

Gets whether this monitor should be considered primary (see gdk_display_get_primary_monitor()).

Available since: 3.22

Methods inherited from GObject (42)

Properties

Gdk.Monitor:display
No description available.
Gdk.Monitor:geometry
No description available.
Gdk.Monitor:height-mm
No description available.
Gdk.Monitor:manufacturer
No description available.
Gdk.Monitor:model
No description available.
Gdk.Monitor:refresh-rate
No description available.
Gdk.Monitor:scale-factor
No description available.
Gdk.Monitor:subpixel-layout
No description available.
Gdk.Monitor:width-mm
No description available.
Gdk.Monitor:workarea
No description available.

Signals

Gdk.Monitor::invalidate
No description available.
Signals inherited from GObject (1)

Class structure

struct GdkMonitorClass {
  /* no available fields */
}