| Top |
| PhoshMonitorPowerSaveMode | power-mode | Read |
| gpointer | wl-output | Read / Write / Construct Only |
| enum | PhoshMonitorConnectorType |
| enum | PhoshMonitorPowerSaveMode |
| #define | PHOSH_TYPE_MONITOR |
| PhoshMonitor |
GEnum ├── PhoshMonitorConnectorType ╰── PhoshMonitorPowerSaveMode 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 *monitor);
gboolean
phosh_monitor_is_configured (PhoshMonitor *monitor);
Is the monitor fully configured (did we receive all data from the compositor)?
gboolean
phosh_monitor_is_builtin (PhoshMonitor *monitor);
Is the monitor built in panel (e.g. laptop panel or phone LCD)
gboolean
phosh_monitor_is_flipped (PhoshMonitor *monitor);
Is the monitor's output flipped
guint
phosh_monitor_get_rotation (PhoshMonitor *monitor);
Get the monitor's rotation in degrees
void phosh_monitor_set_power_save_mode (PhoshMonitor *self,PhoshMonitorPowerSaveMode mode);
“power-mode” property“power-mode” PhoshMonitorPowerSaveMode
The wayland power 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