PhoshHead
PhoshHead — An output head
|
|
Object Hierarchy
GObject
╰── PhoshHead
Description
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.
Functions
phosh_head_new_from_wlr_head ()
PhoshHead *
phosh_head_new_from_wlr_head (gpointer wlr_head
);
phosh_head_get_wlr_head ()
struct zwlr_output_head_v1 *
phosh_head_get_wlr_head (PhoshHead *self
);
Get the heads wlr_head
Returns
The wayland head.
[transfer none]
phosh_head_get_preferred_mode ()
PhoshHeadMode *
phosh_head_get_preferred_mode (PhoshHead *self
);
Get the preferred mode
Returns
The preferred mode.
[transfer none]
phosh_head_is_builtin ()
gboolean
phosh_head_is_builtin (PhoshHead *self
);
Returns
TRUE
if the head built in panel (e.g. laptop panel or
phone LCD)
phosh_head_find_mode_by_name ()
PhoshHeadMode *
phosh_head_find_mode_by_name (PhoshHead *self
,
const char *name
);
phosh_head_calculate_supported_mode_scales ()
int *
phosh_head_calculate_supported_mode_scales
(PhoshHead *head
,
PhoshHeadMode *mode
,
int *n
);
phosh_head_clear_pending ()
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.
Types and Values
PHOSH_TYPE_HEAD
#define PHOSH_TYPE_HEAD (phosh_head_get_type ())
PhoshHeadMode
typedef struct {
} PhoshHeadMode;
struct PhoshHead
struct PhoshHead;
Property Details
The “name”
property
“name” gchar *
The head's name.
Flags: Read
Default value: ""
The “wlr-head”
property
“wlr-head” gpointer
The wlr head associated with this head.
Flags: Read / Write / Construct Only