gdk.monitor

Module for [MonitorWrap] class

Types 3

GdkMonitor objects represent the individual outputs that are associated with a #GdkDisplay. GdkDisplay has APIs to enumerate monitors with [gdk.display.Display.getNMonitors] and [gdk.display.Display.getMonitor], and to find particular monitors with [gdk.display.Display.getPrimaryMonitor] or [gdk.display.Display.getMonitorAtWindow].

GdkMonitor was introduced in GTK+ 3.22 and supersedes earlier APIs in GdkScreen to obtain monitor-related information.

Methods
GType _gType() @property
MonitorWrap self()Returns `this`, for use in `with` statements.
MonitorWrapGidBuilder builder()Get builder for [gdk.monitor.MonitorWrap] Returns: New builder object
int heightMm() @property
string manufacturer() @property
string model() @property
int refreshRate() @property
int scaleFactor() @property
int widthMm() @property
gdk.display.Display getDisplay()Gets the display that this monitor belongs to. Returns: the display
void getGeometry(out gdk.rectangle.Rectangle 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.Mon...
int getHeightMm()Gets the height in millimeters of the monitor. Returns: the physical height of the monitor
string getManufacturer()Gets the name or PNP ID of the monitor's manufacturer, if available.
string getModel()Gets the a string identifying the monitor model, if available. Returns: the monitor model, or null
int getRefreshRate()Gets the refresh rate of the monitor, if available.
int getScaleFactor()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).
gdk.types.SubpixelLayout getSubpixelLayout()Gets information about the layout of red, green and blue primaries for each pixel in this monitor, if available. Returns: the subpixel layout
int getWidthMm()Gets the width in millimeters of the monitor. Returns: the physical width of the monitor
void getWorkarea(out gdk.rectangle.Rectangle 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.m...
bool isPrimary()Gets whether this monitor should be considered primary (see [gdk.display.Display.getPrimaryMonitor]). Returns: true if monitor is primary
gulong connectInvalidate(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gdk.monitor.MonitorWrap))) && Parameters!T.length < 2)Connect to `Invalidate` signal.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder for [gdk.monitor.MonitorWrap]