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

Factory for AutotileLayoutSource. More...

#include <PhosphorTiles/AutotileLayoutSourceFactory.h>

Inheritance diagram for PhosphorTiles::AutotileLayoutSourceFactory:
[legend]

Public Member Functions

 AutotileLayoutSourceFactory (ITileAlgorithmRegistry *registry)
 registry is the tile-algorithm registry the produced source borrows.
 ~AutotileLayoutSourceFactory () override
QString name () const override
 Stable identifier for diagnostics / logging.
std::unique_ptr< PhosphorLayout::ILayoutSource > create () override
 Build a fresh source instance. Caller takes ownership.
Public Member Functions inherited from PhosphorLayout::ILayoutSourceFactory
 ~ILayoutSourceFactory () override
QString id () const override
 IFactoryBase: both the registry key and the UI label are the provider name (a layout source has a single identity).
QString displayName () const override
Public Member Functions inherited from PhosphorRegistry::IFactoryBase
 IFactoryBase ()=default
virtual ~IFactoryBase ()=default
virtual QStringList capabilities () const

Detailed Description

Factory for AutotileLayoutSource.

Composition roots register an instance with their PhosphorLayout::LayoutSourceBundle to surface autotile-algorithm previews. Symmetric with PhosphorZones::ZonesLayoutSourceFactory — both follow the per-library factory pattern that the bundle drives from one addFactory() line per provider.

Constructor & Destructor Documentation

◆ AutotileLayoutSourceFactory()

PhosphorTiles::AutotileLayoutSourceFactory::AutotileLayoutSourceFactory ( ITileAlgorithmRegistry * registry)
explicit

registry is the tile-algorithm registry the produced source borrows.

Caller owns registry and must keep it alive for the produced source's lifetime — typically the bundle's lifetime, which is owned by the same composition root.

◆ ~AutotileLayoutSourceFactory()

PhosphorTiles::AutotileLayoutSourceFactory::~AutotileLayoutSourceFactory ( )
override

Member Function Documentation

◆ create()

std::unique_ptr< PhosphorLayout::ILayoutSource > PhosphorTiles::AutotileLayoutSourceFactory::create ( )
overridevirtual

Build a fresh source instance. Caller takes ownership.

Implements PhosphorLayout::ILayoutSourceFactory.

◆ name()

QString PhosphorTiles::AutotileLayoutSourceFactory::name ( ) const
overridevirtual

Stable identifier for diagnostics / logging.

Should match the provider library name (e.g. "zones", "autotile", "scrolling"). This is also the registry key — id() returns it.

Implements PhosphorLayout::ILayoutSourceFactory.


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