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
MonitorWrap self()Returns `this`, for use in `with` statements.MonitorWrapGidBuilder builder()Get builder for [gdk.monitor.MonitorWrap] Returns: New builder objectstring 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.gdk.types.SubpixelLayout subpixelLayout() @propertyGet `subpixelLayout` property. Returns: The subpixel layout.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 displayvoid 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 monitorstring 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 modelint 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 layoutint getWidthMm()Gets the width in millimeters of the monitor. Returns: the physical width of the monitorbool 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.Methods
T display(gdk.display.Display propval)Set `display` property. Params: propval = The [gdk.display.Display] of the monitor. Returns: Builder instance for fluent chainingFluent builder for [gdk.monitor.MonitorWrap]
Methods