gdk.monitor

Module for [MonitorWrap] class

Types 3

[gdk.monitor.MonitorWrap] objects represent the individual outputs that are associated with a [gdk.display.Display].

[gdk.display.Display] keeps a [gio.list_model.ListModel] to enumerate and monitor monitors with [gdk.display.Display.getMonitors]. You can use [gdk.display.Display.getMonitorAtSurface] to find a particular monitor.

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
string connector() @propertyGet `connector` property. Returns: The connector name.
string description() @propertyGet `description` property. Returns: A short description of the monitor, meant for display to the user.
gdk.display.Display display() @propertyGet `display` property. Returns: The [gdk.display.Display] of the monitor.
gdk.rectangle.Rectangle geometry() @propertyGet `geometry` property. Returns: The geometry of the monitor.
int heightMm() @propertyGet `heightMm` property. Returns: The height of the monitor, in millimeters.
string manufacturer() @propertyGet `manufacturer` property. Returns: The manufacturer name.
string model() @propertyGet `model` property. Returns: The model name.
int refreshRate() @propertyGet `refreshRate` property. Returns: The refresh rate, in milli-Hertz.
double scale() @propertyGet `scale` property. Returns: The scale of the monitor.
int scaleFactor() @propertyGet `scaleFactor` property. Returns: The scale factor.
gdk.types.SubpixelLayout subpixelLayout() @propertyGet `subpixelLayout` property. Returns: The subpixel layout.
bool valid() @propertyGet `valid` property. Returns: Whether the object is still valid.
int widthMm() @propertyGet `widthMm` property. Returns: The width of the monitor, in millimeters.
string getConnector()Gets the name of the monitor's connector, if available.
string getDescription()Gets a string describing the monitor, if available.
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 the monitor within the display coordinate space.
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.
string getModel()Gets the string identifying the monitor model, if available. Returns: the monitor model
int getRefreshRate()Gets the refresh rate of the monitor, if available.
double getScale()Gets the internal scale factor that maps from monitor coordinates to device pixels.
int getScaleFactor()Gets the internal scale factor that maps from monitor coordinates to device pixels.
gdk.types.SubpixelLayout getSubpixelLayout()Gets information about the layout of red, green and blue primaries for pixels. Returns: the subpixel layout
int getWidthMm()Gets the width in millimeters of the monitor. Returns: the physical width of the monitor
bool isValid()Returns true if the monitor object corresponds to a physical monitor.
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)
Methods
T display(gdk.display.Display propval)Set `display` property. Params: propval = The [gdk.display.Display] of the monitor. Returns: Builder instance for fluent chaining

Fluent builder for [gdk.monitor.MonitorWrap]