PhoshHead

PhoshHead — An output head

Functions

Properties

gchar * name Read
gpointer wlr-head Read / Write / Construct Only

Signals

Types and Values

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

Parameters

self

The PhoshHead

 

Returns

The wayland head.

[transfer none]


phosh_head_get_enabled ()

gboolean
phosh_head_get_enabled (PhoshHead *self);

phosh_head_get_preferred_mode ()

PhoshHeadMode *
phosh_head_get_preferred_mode (PhoshHead *self);

Get the preferred mode

Parameters

self

The PhoshHead

 

Returns

The preferred mode.

[transfer none]

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

Signal Details

The “head-finished” signal

void
user_function (PhoshHead *phoshhead,
               gpointer   user_data)

Flags: Run Last