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

Factory for AutotileLayoutSource. More...

#include <phosphor-tiles/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::ILayoutSourcecreate () override
 Build a fresh source instance. Caller takes ownership.
 
- Public Member Functions inherited from PhosphorLayout::ILayoutSourceFactory
virtual ~ILayoutSourceFactory ()
 

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").

Implements PhosphorLayout::ILayoutSourceFactory.


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