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

Fluent builder for gdk.monitor.MonitorWrap

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