Class
PhoshMonitor
Description [src]
class Phosh.Monitor : GObject.Object
{
wl_output: wl_output*,
xdg_output: zxdg_output_v1*,
wlr_output_power: zwlr_output_power_v1*,
power_mode: PhoshMonitorPowerSaveMode,
x: int,
y: int,
width: int,
height: int,
subpixel: int,
transform: gint32,
logical: PhoshLogicalSize,
width_mm: int,
height_mm: int,
vendor: char*,
product: char*,
description: char*,
modes: GArray*,
current_mode: guint,
preferred_mode: guint,
name: char*,
conn_type: PhoshMonitorConnectorType,
wl_output_done: gboolean,
gamma_control: zwlr_gamma_control_v1*,
n_gamma_entries: guint32
}
A monitor
A rectangualar area in the compositor space, usually corresponds to physical monitor using wl_output and xdg_output Wayland protocols.
Instance methods
phosh_monitor_get_fractional_scale
Get the fractinoal scale determined from the output width and the current logical width.
phosh_monitor_is_preferred_mode
Checks whether the current monitor’s mode is the monitor’s preferred mode.
Signals
Phosh.Monitor::configured
Emitted whenever a monitor is fully configured (that is it received all configuration data from the various wayland protocols).
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.