Namespace

Phoc – 0

Phone Compositor

Version0.13.1
AuthorsPurism SPC
LicenseGPL-3-or-later
Websitehttps://world.pages.gitlab.gnome.org/Phosh/phoc
Sourcehttps://gitlab.gnome.org/World/Phosh/phoc/

Build

C headers
pkg-config filesphoc-0

Dependencies

GObject—2.0 The base type system library
Browse documentation

Additional documentation

Classes

Cursor
Desktop

Desktop singleton.

Input

PhocInput handles new input devices and seats.

InputDevice

Abstract base class for input device like pointers or touch.

Keybindings

Keybindings stored in gsettings.

Keyboard

A keyboard input device.

LayerSurface

A Layer surface backed by the wlr-layer-surface wayland protocol.

Output

The output region of a compositor (typically a monitor).

PhoshPrivate

Private protocol to interface with phosh.

Pointer

A pointer input device.

Renderer

The renderer.

Seat

Represents a seat.

Server

The server singleton.

Tablet

A tablet input device.

Touch

A touch input device.

View

A PhocView represents a toplevel like an xdg-toplevel or a xwayland window.

XdgSurface

An xdg surface.

XWaylandSurface

An XWayland Surface.

Structs

Config
DragIcon
GtkShell

A minimal implementeation of gtk_shell1 protocol.

GtkSurface
InputMethodRelay

The relay structure manages the relationship between text-input and input_method interfaces on a given seat.

KeyCombo

A combination of modifiers and a key describing a keyboard shortcut.

OutputConfig
OutputModeConfig
PointerConstraint
SeatView
TabletPad
TabletTool
ViewChild

A child of a PhocView, e.g. a popup or subsurface.

Callbacks

Functions

ease_in_cubic

Ease in using cubic interpolation.

ease_out_cubic

Ease out using cubic interpolation.

handle_virtual_keyboard
handle_virtual_pointer
layer_shell_arrange
layer_shell_update_focus
maybe_set_cursor
utils_fix_transform
utils_rotate_child_position

Rotate a child’s position relative to a parent. The parent size is (pw, ph), the child position is (sx, sy) and its size is (sw, sh).

xdg_activation_v1_handle_request_activate

Function Macros

PRIV_CONTAINER

Returns a pointer to the instance containing the instance private data p.

PRIV_CONTAINER_P

Returns an untyped pointer to the instance containing the instance private data p.