Top | ![]() |
![]() |
![]() |
![]() |
PhoshHead * | phosh_head_new_from_wlr_head () |
struct zwlr_output_head_v1 * | phosh_head_get_wlr_head () |
gboolean | phosh_head_get_enabled () |
void | phosh_head_set_pending_enabled () |
PhoshHeadMode * | phosh_head_get_preferred_mode () |
gboolean | phosh_head_is_builtin () |
PhoshHeadMode * | phosh_head_find_mode_by_name () |
float * | phosh_head_calculate_supported_mode_scales () |
void | phosh_head_clear_pending () |
void | phosh_head_set_pending_transform () |
A output head (usually a monitor). Only enabled heads corresponds to a wl_output and PhoshMonitor. PhoshHead should be considered an implementation detail of PhoshMonitorManager and not be used outside of it.
struct zwlr_output_head_v1 *
phosh_head_get_wlr_head (PhoshHead *self
);
Get the heads wlr_head
void phosh_head_set_pending_enabled (PhoshHead *self
,gboolean enabled
);
Sets a head to pending enabled. This will become active after the next
call to
.phosh_monitor_manager_apply_monitor_config()
PhoshHeadMode *
phosh_head_get_preferred_mode (PhoshHead *self
);
Get the preferred mode
PhoshHeadMode * phosh_head_find_mode_by_name (PhoshHead *self
,const char *name
);
float * phosh_head_calculate_supported_mode_scales (PhoshHead *head
,PhoshHeadMode *mode
,int *n
,gboolean fractional
);
void
phosh_head_clear_pending (PhoshHead *self
);
Clear all pending state. This can be used if e.g. pending state was set but the output configuration not submitted.
void phosh_head_set_pending_transform (PhoshHead *self
,PhoshMonitorTransform transform
,GPtrArray *heads
);
“wlr-head”
property“wlr-head” gpointer
The wlr head associated with this head.
Owner: PhoshHead
Flags: Read / Write / Construct Only