PhoshShell

PhoshShell — The shell singleton

Functions

Properties

gboolean locked Read / Write
PhoshMonitor * primary-monitor Read / Write
guint rotation Read

Types and Values

Object Hierarchy

    GObject
    ╰── PhoshShell

Description

Phosh shell is responsible for instantiating the GUI parts of the shellPhoshPanel, PhoshHome,… and the managers that interface with DBus PhoshMonitorManager, PhoshFeedbackManager, … and coordinates between them.

Functions

phosh_shell_get_default ()

PhoshShell *
phosh_shell_get_default (void);

phosh_shell_rotate_display ()

void
phosh_shell_rotate_display (PhoshShell *self,
                            guint degrees);

phosh_shell_get_rotation ()

int
phosh_shell_get_rotation (PhoshShell *self);

phosh_shell_get_usable_area ()

void
phosh_shell_get_usable_area (PhoshShell *self,
                             gint *x,
                             gint *y,
                             gint *width,
                             gint *height);

phosh_shell_set_locked ()

void
phosh_shell_set_locked (PhoshShell *self,
                        gboolean locked);

Lock the shell. We proxy to lockscreen-manager to avoid that other parts of the shell need to care about this abstraction.


phosh_shell_lock ()

void
phosh_shell_lock (PhoshShell *self);

phosh_shell_unlock ()

void
phosh_shell_unlock (PhoshShell *self);

phosh_shell_set_primary_monitor ()

void
phosh_shell_set_primary_monitor (PhoshShell *self,
                                 PhoshMonitor *monitor);

phosh_shell_get_primary_monitor ()

PhoshMonitor *
phosh_shell_get_primary_monitor (PhoshShell *self);

phosh_shell_get_builtin_monitor ()

PhoshMonitor *
phosh_shell_get_builtin_monitor (PhoshShell *self);

phosh_shell_get_lockscreen_manager ()

PhoshLockscreenManager *
phosh_shell_get_lockscreen_manager (PhoshShell *self);

phosh_shell_get_monitor_manager ()

PhoshMonitorManager *
phosh_shell_get_monitor_manager (PhoshShell *self);

phosh_shell_get_osk_manager ()

PhoshOskManager *
phosh_shell_get_osk_manager (PhoshShell *self);

phosh_shell_get_toplevel_manager ()

PhoshToplevelManager *
phosh_shell_get_toplevel_manager (PhoshShell *self);

phosh_shell_get_wifi_manager ()

PhoshWifiManager *
phosh_shell_get_wifi_manager (PhoshShell *self);

phosh_shell_get_feedback_manager ()

PhoshFeedbackManager *
phosh_shell_get_feedback_manager (PhoshShell *self);

phosh_shell_fade_out ()

void
phosh_shell_fade_out (PhoshShell *self,
                      guint timeout);

phosh_shell_enable_power_save ()

void
phosh_shell_enable_power_save (PhoshShell *self,
                               gboolean enable);

phosh_shell_started_by_display_manager ()

gboolean
phosh_shell_started_by_display_manager
                               (PhoshShell *self);

returns TRUE if we were started from a display manager. FALSE otherwise.


phosh_shell_is_startup_finished ()

gboolean
phosh_shell_is_startup_finished (PhoshShell *self);

returns TRUE if the shell finished startup. FALSE otherwise.

Types and Values

PHOSH_APP_ID

#define PHOSH_APP_ID "sm.puri.Phosh"

PHOSH_TYPE_SHELL

#define PHOSH_TYPE_SHELL phosh_shell_get_type()

PhoshShell

typedef struct _PhoshShell PhoshShell;

Property Details

The “locked” property

  “locked”                   gboolean

Whether the screen is locked.

Flags: Read / Write

Default value: FALSE


The “primary-monitor” property

  “primary-monitor”          PhoshMonitor *

The primary monitor.

Flags: Read / Write


The “rotation” property

  “rotation”                 guint

Clockwise display rotation in degree.

Flags: Read

Allowed values: <= 360

Default value: 0