Phosphor
Qt6 / Wayland library suite for window-management tools
Loading...
Searching...
No Matches
PhosphorSurfaceShaders::SurfaceShaderRegistry::SurfacePack Class Referencefinal

Registry entry: a discovered surface effect as a PhosphorRegistry factory. More...

#include <PhosphorSurface/SurfaceShaderRegistry.h>

Inheritance diagram for PhosphorSurfaceShaders::SurfaceShaderRegistry::SurfacePack:
[legend]

Public Member Functions

 SurfacePack (SurfaceShaderEffect effect)
QString id () const override
QString displayName () const override
const SurfaceShaderEffect & effect () const
Public Member Functions inherited from PhosphorRegistry::IFactoryBase
 IFactoryBase ()=default
virtual ~IFactoryBase ()=default
virtual QStringList capabilities () const

Detailed Description

Registry entry: a discovered surface effect as a PhosphorRegistry factory.

Registry<SurfacePack> keys on id(); displayName() is the effect's human name. Wraps the parsed SurfaceShaderEffect by value (consumers read it back via effect()). Effects carry no capability metadata, so the IFactoryBase default capabilities() ({}) applies unchanged.

Constructor & Destructor Documentation

◆ SurfacePack()

PhosphorSurfaceShaders::SurfaceShaderRegistry::SurfacePack::SurfacePack ( SurfaceShaderEffect effect)
inlineexplicit

Member Function Documentation

◆ displayName()

QString PhosphorSurfaceShaders::SurfaceShaderRegistry::SurfacePack::displayName ( ) const
inlinenodiscardoverridevirtual

◆ effect()

const SurfaceShaderEffect & PhosphorSurfaceShaders::SurfaceShaderRegistry::SurfacePack::effect ( ) const
inlinenodiscard

◆ id()

QString PhosphorSurfaceShaders::SurfaceShaderRegistry::SurfacePack::id ( ) const
inlinenodiscardoverridevirtual

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