| Top |
| PhoshMonitorPowerSaveMode | power-mode | Read |
| gpointer | wl-output | Read / Write / Construct Only |
| enum | PhoshMonitorConnectorType |
| enum | PhoshMonitorTransform |
| enum | PhoshMonitorPowerSaveMode |
| #define | PHOSH_TYPE_MONITOR |
| PhoshMonitor |
GEnum ├── PhoshMonitorConnectorType ├── PhoshMonitorPowerSaveMode ╰── PhoshMonitorTransform GObject ╰── PhoshMonitor
A rectangualar area in the compositor space, usally corresponds to physical monitor using wl_output and xdg_output Wayland protocols.
PhoshMonitor *
phosh_monitor_new_from_wl_output (gpointer wl_output);
PhoshMonitorMode *
phosh_monitor_get_current_mode (PhoshMonitor *self);
void phosh_monitor_set_power_save_mode (PhoshMonitor *self,PhoshMonitorPowerSaveMode mode);
Sets monitor's power save mode.
PhoshMonitorPowerSaveMode
phosh_monitor_get_power_save_mode (PhoshMonitor *self);
PhoshMonitorConnectorType
phosh_monitor_connector_type_from_name
(const char *name);
gboolean
phosh_monitor_connector_is_builtin (PhoshMonitorConnectorType type);
float
phosh_monitor_get_fractional_scale (PhoshMonitor *self);
Get the fractinoal scale determined from the output width and the current logical width.
This matches the values in drm_mode.h
|
unknown connector type |
||
|
a VGA connector |
||
|
a DVII connector |
||
|
a DVID connector |
||
|
a DVIA connector |
||
|
a Composite connector |
||
|
a SVIDEO connector |
||
|
a LVDS connector |
||
|
a Component connector |
||
|
a 9PinDIN connector |
||
|
a DisplayPort connector |
||
|
a HDMIA connector |
||
|
a HDMIB connector |
||
|
a TV connector |
||
|
a eDP connector |
||
|
a Virtual connector |
||
|
a DSI connector |
the monitors rotation. This corresponds to the values in the org.gnome.Mutter.DisplayConfig DBus protocol.
“power-mode” property“power-mode” PhoshMonitorPowerSaveMode
The power save mode for this monitor.
Owner: PhoshMonitor
Flags: Read
Default value: PHOSH_MONITOR_POWER_SAVE_MODE_OFF
“wl-output” property“wl-output” gpointer
The wayland output associated with this monitor.
Owner: PhoshMonitor
Flags: Read / Write / Construct Only
“configured” signalvoid user_function (PhoshMonitor *monitor, gpointer user_data)
Emitted whenever a monitor is fully configured (that is it received all configuration data from the various wayland protocols).
monitor |
The PhoshMonitor emitting the signal. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last