Monitor
Object Hierarchy:
Gdk.Monitor
Gdk.Monitor
Gdk.Monitor
GLib.Object
GLib.Object
GLib.Object->Gdk.Monitor
Description:
[ CCode ( type_id = "gdk_monitor_get_type ()" ) ]public class Monitor : Object
`GdkMonitor` objects represent the individual outputs that are associated with a `GdkDisplay`.
`GdkDisplay` keeps a `GListModel` to enumerate and monitor monitors with [[email protected] _monitors]. You can use [
[email protected] _monitor_at_surface] to find a particular monitor.
Content:
Properties:
public string connector { get ; }
The connector name.
public Display display { get ; construct ; }
The `GdkDisplay` of the monitor.
public Rectangle geometry { get ; }
The geometry of the monitor.
public int height_mm { get ; }
The height of the monitor, in millimeters.
public string manufacturer { get ; }
The manufacturer name.
public string model { get ; }
The model name.
public int refresh_rate { get ; }
The refresh rate, in milli-Hertz.
public int scale_factor { get ; }
The scale factor.
public SubpixelLayout subpixel_layout { get ; }
The subpixel layout.
public bool valid { get ; }
Whether the object is still valid.
public int width_mm { get ; }
The width of the monitor, in millimeters.
Creation methods:
Methods:
public unowned string ? get_connector ()
Gets the name of the monitor's connector, if available.
public unowned Display get_display ()
Gets the display that this monitor belongs to.
public Rectangle get_geometry ()
Retrieves the size and position of the 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.
public unowned string ? get_model ()
Gets the 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
device pixels.
public SubpixelLayout get_subpixel_layout ()
Gets information about the layout of red, green and blue primaries for
pixels.
public int get_width_mm ()
Gets the width in millimeters of the monitor.
public bool is_valid ()
Returns true if the
this object corresponds to a physical monitor.
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