Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorShell Namespace Reference

Namespaces

namespace  PlacementMapParser

Classes

class  Environment
class  FileView
class  FloatingWindow
class  LazyLoader
class  PanelWindow
class  PerScreenPanels
 Instantiates one panel per screen, parented so ShellEngine can find it. More...
class  PersistentProperties
class  PlacementMapScreen
 One screen's view of the placement engine, in work-area fractions. More...
class  PlacementMap
 QML singleton: the placement engine's geometry per screen. More...
class  PopupWindow
class  Process
class  ScreenModel
class  ShellEngine
class  ShellGlobal
class  ShellLoader
 Finds the shell.qml an app runs. More...
class  SystemClock
 Real-time clock for status bar widgets. More...
class  SystemStats
class  SystemStatsReader
class  SystemUsage
 CPU and memory utilisation for status bar widgets. More...
class  ToplevelListModel
 QAbstractListModel view of the live toplevel set. More...
class  Toplevels
 QML singleton exposing the live list of toplevel windows for taskbars. More...
class  Variants
class  WallpaperService
 The shell's own wallpaper: which image each output shows. More...
class  WorkspaceListModel
 Incrementally-updating model of the compositor's workspaces. More...
class  Workspaces
 QML singleton exposing the compositor's workspaces. More...

Functions

PHOSPHORSHELL_EXPORT void registerQmlTypes ()
 Register every PhosphorShell QML type under the Phosphor.Shell module at version 1.0.

Function Documentation

◆ registerQmlTypes()

PHOSPHORSHELL_EXPORT void PhosphorShell::registerQmlTypes ( )

Register every PhosphorShell QML type under the Phosphor.Shell module at version 1.0.

Idempotent on repeat calls: internally guarded by std::call_once, because Qt's type registry is process-global rather than per-engine, so several ShellEngines in one process (sequential tests, a future multi-shell daemon) must not trip the duplicate-registration warning.

ShellEngine::load() calls this, so a shell built the ordinary way needs nothing. It is exposed for the same reason every phosphor-service library exposes one: a consumer that drives a bare QQmlEngine — a QtQuickTest runner, a tool — can register the types without standing up a whole ShellEngine and the screen provider it depends on. Call it before any engine loads a .qml file.