It derives from <GObject>.
Represents the individual outputs that are associated with a
<GdkDisplay>.
<GdkDisplay> keeps a
<GListModel> to enumerate and monitor
monitors with display:get-monitors.
You can use display:get-monitor-at-surface to find a
particular monitor.
The connector name.
Its value is a string, or #f.
It is read only.
A short description of the monitor, meant for display to the user.
Its value is a string, or #f.
It is read only.
The <GdkDisplay> of the monitor.
Its value is a <GdkDisplay>, or #f.
It can only be set when the object is made, with #:display.
The geometry of the monitor.
Its value is a <GdkRectangle>, or #f.
It is read only.
The height of the monitor, in millimeters.
Its value is a 32-bit integer.
It is read only.
The manufacturer name.
Its value is a string, or #f.
It is read only.
The model name.
Its value is a string, or #f.
It is read only.
The refresh rate, in milli-Hertz.
Its value is a 32-bit integer.
It is read only.
The scale of the monitor.
Its value is a real number.
It is read only.
The scale factor.
The scale factor is the next larger integer, compared to
surface:scale.
Its value is a 32-bit integer.
It is read only.
The subpixel layout.
Its value is a <GdkSubpixelLayout>.
It is read only.
Whether the object is still valid.
Its value is a boolean.
It is read only.
The width of the monitor, in millimeters.
Its value is a 32-bit integer.
It is read only.
Gets the name of the monitor’s connector, if available.
These are strings such as "eDP-1", or "HDMI-2". They depend on software and hardware configuration, and should not be relied on as stable identifiers of a specific monitor.
Passed: a <GdkMonitor>.
Returned: a string, or #f.
the name of the connector
Gets a string describing the monitor, if available.
This can be used to identify a monitor in the UI.
Passed: a <GdkMonitor>.
Returned: a string, or #f.
the monitor description
Gets the display that this monitor belongs to.
Passed: a <GdkMonitor>.
Returned: a <GdkDisplay>.
the display
Retrieves the size and position of the monitor within the display coordinate space.
The returned geometry is in ”application pixels”, not in ”device pixels”
(see monitor:get-scale).
Passed: a <GdkMonitor>.
Passed, filled in, and returned: a
<GdkRectangle>.
a <GdkRectangle> to be filled with the monitor
geometry
Gets the height in millimeters of the monitor.
Passed: a <GdkMonitor>.
Returned: a 32-bit integer.
the physical height of the monitor
Gets the name or PNP ID of the monitor’s manufacturer.
Note that this value might also vary depending on actual display backend.
The PNP ID registry is located at https://uefi.org/pnp_id_list.
Passed: a <GdkMonitor>.
Returned: a string, or #f.
the name of the manufacturer
Gets the string identifying the monitor model, if available.
Passed: a <GdkMonitor>.
Returned: a string, or #f.
the monitor model
Gets the refresh rate of the monitor, if available.
The value is in milli-Hertz, so a refresh rate of 60Hz is returned as 60000.
Passed: a <GdkMonitor>.
Returned: a 32-bit integer.
the refresh rate in milli-Hertz, or 0
Gets the internal scale factor that maps from monitor coordinates to device pixels.
This can be used if you want to create pixel based data for a particular
monitor, but most of the time you’re drawing to a surface where it is
better to use surface:get-scale instead.
Passed: a <GdkMonitor>.
Returned: a real number.
the scale
Gets the internal scale factor that maps from monitor coordinates to device pixels.
On traditional systems this is 1, but on very high density outputs it can be a higher value (often 2).
This can be used if you want to create pixel based data for a particular
monitor, but most of the time you’re drawing to a surface where it is
better to use surface:get-scale-factor instead.
Passed: a <GdkMonitor>.
Returned: a 32-bit integer.
the scale factor
Gets information about the layout of red, green and blue primaries for pixels.
Passed: a <GdkMonitor>.
Returned: a <GdkSubpixelLayout>.
the subpixel layout
Gets the width in millimeters of the monitor.
Passed: a <GdkMonitor>.
Returned: a 32-bit integer.
the physical width of the monitor
Returns #t if the self object corresponds to a physical
monitor.
The self becomes invalid when the physical monitor is unplugged or removed.
Passed: a <GdkMonitor>.
Returned: a boolean.
#t if the object corresponds to a physical monitor
Connect a handler with (connect object monitor:invalidate
handler). It is called as (handler self).
Emitted when the output represented by monitor gets disconnected.
Passed: a <GdkMonitor>.