Monitor
Object Hierarchy:
Description:
[ CCode ( type_id = "gdk_monitor_get_type ()" ) ]
public 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
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref