Factory for ZonesLayoutSource.
More...
#include <phosphor-zones/include/PhosphorZones/ZonesLayoutSourceFactory.h>
Public Member Functions | |
| ZonesLayoutSourceFactory (IZoneLayoutRegistry *registry) | |
registry is the zone-layout registry the produced source borrows. | |
| ~ZonesLayoutSourceFactory () 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 | |
| virtual | ~ILayoutSourceFactory () |
Factory for ZonesLayoutSource.
Composition roots register an instance with their PhosphorLayout::LayoutSourceBundle to surface manual zone-layout previews. Symmetric with PhosphorTiles::AutotileLayoutSourceFactory — both follow the per-library factory pattern that the bundle drives from one addFactory() line per provider.
|
explicit |
registry is the zone-layout 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.
|
override |
|
overridevirtual |
Build a fresh source instance. Caller takes ownership.
Implements PhosphorLayout::ILayoutSourceFactory.
|
overridevirtual |
Stable identifier for diagnostics / logging.
Should match the provider library name (e.g. "zones", "autotile", "scrolling").
Implements PhosphorLayout::ILayoutSourceFactory.