PhoshMonitor

PhoshMonitor — A monitor

Functions

Properties

PhoshMonitorPowerSaveMode power-mode Read
gpointer wl-output Read / Write / Construct Only

Signals

void configured Run Last

Types and Values

Object Hierarchy

    GEnum
    ├── PhoshMonitorConnectorType
    ╰── PhoshMonitorPowerSaveMode
    GObject
    ╰── PhoshMonitor

Description

A rectangualar area in the compositor space, usally corresponds to a enabled physical monitor.

Functions

phosh_monitor_new_from_wl_output ()

PhoshMonitor *
phosh_monitor_new_from_wl_output (gpointer wl_output);

phosh_monitor_get_current_mode ()

PhoshMonitorMode *
phosh_monitor_get_current_mode (PhoshMonitor *monitor);

phosh_monitor_is_configured ()

gboolean
phosh_monitor_is_configured (PhoshMonitor *monitor);

Is the monitor fully configured (did we receive all data from the compositor)?


phosh_monitor_is_builtin ()

gboolean
phosh_monitor_is_builtin (PhoshMonitor *monitor);

Is the monitor built in panel (e.g. laptop panel or phone LCD)


phosh_monitor_is_flipped ()

gboolean
phosh_monitor_is_flipped (PhoshMonitor *monitor);

Is the monitor's output flipped


phosh_monitor_get_rotation ()

guint
phosh_monitor_get_rotation (PhoshMonitor *monitor);

Get the monitor's rotation in degrees


phosh_monitor_set_power_save_mode ()

void
phosh_monitor_set_power_save_mode (PhoshMonitor *self,
                                   PhoshMonitorPowerSaveMode mode);

Types and Values

enum PhoshMonitorConnectorType

Members

PHOSH_MONITOR_CONNECTOR_TYPE_Unknown

   

PHOSH_MONITOR_CONNECTOR_TYPE_VGA

   

PHOSH_MONITOR_CONNECTOR_TYPE_DVII

   

PHOSH_MONITOR_CONNECTOR_TYPE_DVID

   

PHOSH_MONITOR_CONNECTOR_TYPE_DVIA

   

PHOSH_MONITOR_CONNECTOR_TYPE_Composite

   

PHOSH_MONITOR_CONNECTOR_TYPE_SVIDEO

   

PHOSH_MONITOR_CONNECTOR_TYPE_LVDS

   

PHOSH_MONITOR_CONNECTOR_TYPE_Component

   

PHOSH_MONITOR_CONNECTOR_TYPE_9PinDIN

   

PHOSH_MONITOR_CONNECTOR_TYPE_DisplayPort

   

PHOSH_MONITOR_CONNECTOR_TYPE_HDMIA

   

PHOSH_MONITOR_CONNECTOR_TYPE_HDMIB

   

PHOSH_MONITOR_CONNECTOR_TYPE_TV

   

PHOSH_MONITOR_CONNECTOR_TYPE_eDP

   

PHOSH_MONITOR_CONNECTOR_TYPE_VIRTUAL

   

PHOSH_MONITOR_CONNECTOR_TYPE_DSI

   

enum PhoshMonitorPowerSaveMode

Members

PHOSH_MONITOR_POWER_SAVE_MODE_OFF

   

PHOSH_MONITOR_POWER_SAVE_MODE_ON

   

PHOSH_TYPE_MONITOR

#define PHOSH_TYPE_MONITOR                 (phosh_monitor_get_type ())

PhoshMonitor

typedef struct _PhoshMonitor PhoshMonitor;

Property Details

The “power-mode” property

  “power-mode”               PhoshMonitorPowerSaveMode

The wayland power mode for this monitor.

Flags: Read

Default value: PHOSH_MONITOR_POWER_SAVE_MODE_OFF


The “wl-output” property

  “wl-output”                gpointer

The wayland output associated with this monitor.

Flags: Read / Write / Construct Only

Signal Details

The “configured” signal

void
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).

Parameters

monitor

The PhoshMonitor emitting the signal.

 

user_data

user data set when the signal handler was connected.

 

Flags: Run Last