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

#include <PhosphorShell/ShellGlobal.h>

Inheritance diagram for PhosphorShell::ShellGlobal:
[legend]

Signals

void screensChanged ()

Public Member Functions

 ShellGlobal (const QString &wallpaperStorePath, QObject *parent=nullptr)
 Desktop wallpaper image source for shader backgrounds.
 ~ShellGlobal () override
ScreenModel * screens () const
void setScreenModel (ScreenModel *model)
WallpaperService * wallpaper () const
QObject * singleton (const QString &reloadId) const
void registerSingleton (const QString &reloadId, PersistentProperties *props)
void clearSingletons ()

Constructor & Destructor Documentation

◆ ShellGlobal()

PhosphorShell::ShellGlobal::ShellGlobal ( const QString & wallpaperStorePath,
QObject * parent = nullptr )
explicit

Desktop wallpaper image source for shader backgrounds.

CONSTANT because the service itself is constructed in ShellGlobal's ctor and lives for the engine's lifetime — only its image property changes, and that has its own NOTIFY. wallpaperStorePath is the file the wallpaper service persists its map to (WallpaperService's constructor). Empty keeps it in memory.

◆ ~ShellGlobal()

PhosphorShell::ShellGlobal::~ShellGlobal ( )
override

Member Function Documentation

◆ clearSingletons()

void PhosphorShell::ShellGlobal::clearSingletons ( )

◆ registerSingleton()

void PhosphorShell::ShellGlobal::registerSingleton ( const QString & reloadId,
PersistentProperties * props )

◆ screens()

ScreenModel * PhosphorShell::ShellGlobal::screens ( ) const
nodiscard

◆ screensChanged

void PhosphorShell::ShellGlobal::screensChanged ( )
signal

◆ setScreenModel()

void PhosphorShell::ShellGlobal::setScreenModel ( ScreenModel * model)

◆ singleton()

QObject * PhosphorShell::ShellGlobal::singleton ( const QString & reloadId) const
nodiscard

◆ wallpaper()

WallpaperService * PhosphorShell::ShellGlobal::wallpaper ( ) const
nodiscard

The documentation for this class was generated from the following file: