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 _getGType() static nothrow
GType _gType() @property nothrow
MonitorWrap self() nothrowReturns `this`, for use in `with` statements.
MonitorWrapGidBuilder builder() static nothrowGet builder for [gdk.monitor.MonitorWrap] Returns: New builder object
gdk.display.Display display() @property nothrow
gdk.rectangle.Rectangle geometry() @property nothrow
int heightMm() @property nothrow
string manufacturer() @property nothrow
string model() @property nothrow
int refreshRate() @property nothrow
int scaleFactor() @property nothrow
int widthMm() @property nothrow
gdk.rectangle.Rectangle workarea() @property nothrow
gdk.display.Display getDisplay() nothrowGets the display that this monitor belongs to. Returns: the display
void getGeometry(out gdk.rectangle.Rectangle geometry) nothrowRetrieves 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() nothrowGets the height in millimeters of the monitor. Returns: the physical height of the monitor
string getManufacturer() nothrowGets the name or PNP ID of the monitor's manufacturer, if available.
string getModel() nothrowGets the a string identifying the monitor model, if available. Returns: the monitor model, or null
int getRefreshRate() nothrowGets the refresh rate of the monitor, if available.
int getScaleFactor() nothrowGets 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() nothrowGets information about the layout of red, green and blue primaries for each pixel in this monitor, if available. Returns: the subpixel layout
int getWidthMm() nothrowGets the width in millimeters of the monitor. Returns: the physical width of the monitor
void getWorkarea(out gdk.rectangle.Rectangle workarea) nothrowRetrieves 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() nothrowGets 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) nothrowConnect to `Invalidate` signal.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for gdk.monitor.MonitorWrap

Methods
T display(gdk.display.Display propval) nothrow

Fluent builder for gdk.monitor.MonitorWrap

Methods
MonitorWrap build() nothrowCreate object from builder. Returns: New object