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
MonitorWrapGidBuilder builder() static nothrowGet builder for [gdk.monitor.MonitorWrap] Returns: New builder objectstring 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.int refreshRate() @property nothrowGet `refreshRate` property. Returns: The refresh rate, in milli-Hertz.gdk.types.SubpixelLayout subpixelLayout() @property nothrowGet `subpixelLayout` property. Returns: The subpixel layout.int widthMm() @property nothrowGet `widthMm` property. Returns: The width of the monitor, in millimeters.gdk.display.Display getDisplay() nothrowGets the display that this monitor belongs to. Returns: the displayvoid 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 monitorstring getModel() nothrowGets the string identifying the monitor model, if available. Returns: the monitor modeldouble 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 layoutint getWidthMm() nothrowGets the width in millimeters of the monitor. Returns: the physical width of the monitorgulong 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.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 chainingFluent builder for gdk.monitor.MonitorWrap
Methods