Monitor
Object Hierarchy:
Description:
[
CCode ( type_id =
"gdk_monitor_get_type ()" ) ]
public sealed class Monitor :
Object
GdkMonitor objects represent the individual outputs that are associated with a Display.
GdkDisplay has APIs to enumerate monitors with get_n_monitors and
get_monitor, and to find particular monitors with
get_primary_monitor or
get_monitor_at_window.
GdkMonitor was introduced in GTK+ 3.22 and supersedes earlier APIs in GdkScreen to obtain monitor-related information.
Content:
Properties:
Creation methods:
Methods:
- public unowned Display get_display ()
Gets the display that this monitor belongs to.
- public Rectangle get_geometry ()
Retrieves the size and position of an individual monitor within the display
coordinate space.
- public int get_height_mm ()
Gets the height in millimeters of the monitor.
- public unowned string? get_manufacturer ()
Gets the name or PNP ID of the monitor's manufacturer, if available.
- public unowned string? get_model ()
Gets the a string identifying the monitor model, if available.
- public int get_refresh_rate ()
Gets the refresh rate of the monitor, if available.
- public int get_scale_factor ()
Gets the internal scale factor that maps from monitor coordinates to the
actual device pixels.
- public SubpixelLayout get_subpixel_layout ()
Gets information about the layout of red, green and blue primaries for each
pixel in this monitor, if available.
- public int get_width_mm ()
Gets the width in millimeters of the monitor.
- public Rectangle get_workarea ()
Retrieves the size and position of the “work area” on a monitor within
the display coordinate space.
- public bool is_primary ()
Signals:
Inherited Members:
All known members inherited from class GLib.Object