Class

PhoshHead

Description [src]

class Phosh.Head : GObject.Object
{
  name: gchar*,
  description: gchar*,
  vendor: gchar*,
  product: gchar*,
  serial: gchar*,
  enabled: gboolean,
  phys: PhoshPhysicalSize,
  x: int32_t,
  y: int32_t,
  transform: wl_output_transform,
  scale: double,
  mode: PhoshHeadMode*,
  modes: GPtrArray*,
  pending: PhoshHeadStatePending,
  conn_type: PhoshMonitorConnectorType,
  wlr_head: zwlr_output_head_v1*
}

An output head

A output head (usually a monitor). Only enabled heads correspond to a wl_output and PhoshMonitor. PhoshHead should be considered an implementation detail of PhoshMonitorManager and not be used outside of it.

Ancestors

Constructors

phosh_head_new_from_wlr_head
No description available.

Instance methods

phosh_head_calculate_supported_mode_scales
No description available.

phosh_head_clear_pending

Clear all pending state. This can be used if e.g. pending state was set but the output configuration not submitted.

phosh_head_find_mode_by_name

Look up the given mode by its name.

phosh_head_get_enabled
No description available.

phosh_head_get_preferred_mode

Get the preferred mode.

phosh_head_get_wlr_head

Get the heads wlr_head.

phosh_head_is_builtin

Checks whether the given head is a builtin display.

phosh_head_set_pending_enabled

Sets a head to pending enabled. This will become active after the next call to #phosh_monitor_manager_apply_monitor_config().

phosh_head_set_pending_transform

Set the heads pending transform. Move pending positions of heads to the right and below self around to avoid gaps and overlaps in the layout.

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Properties

Phosh.Head:name
No description available.

Phosh.Head:wlr-head
No description available.

Signals

Phosh.Head::head-finished
No description available.

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.

Class structure

struct PhoshHeadClass {
  GObjectClass parent_class;
  
}

No description available.

Class members
parent_class: GObjectClass

No description available.