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

Factory for ZonesLayoutSource. More...

#include <phosphor-zones/include/PhosphorZones/ZonesLayoutSourceFactory.h>

Inheritance diagram for PhosphorZones::ZonesLayoutSourceFactory:
[legend]

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ ZonesLayoutSourceFactory()

PhosphorZones::ZonesLayoutSourceFactory::ZonesLayoutSourceFactory ( IZoneLayoutRegistry registry)
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.

◆ ~ZonesLayoutSourceFactory()

PhosphorZones::ZonesLayoutSourceFactory::~ZonesLayoutSourceFactory ( )
override

Member Function Documentation

◆ create()

std::unique_ptr< PhosphorLayout::ILayoutSource > PhosphorZones::ZonesLayoutSourceFactory::create ( )
overridevirtual

Build a fresh source instance. Caller takes ownership.

Implements PhosphorLayout::ILayoutSourceFactory.

◆ name()

QString PhosphorZones::ZonesLayoutSourceFactory::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: