6#include <phosphorzones_export.h>
12class IZoneLayoutRegistry;
33 const QSize& canvas = {});
67 const QSize& canvas = {})
override;
Abstract producer of LayoutPreview values.
Definition ILayoutSource.h:48
Enumeration + mutation surface for the in-memory zone-layout catalog.
Definition IZoneLayoutRegistry.h:43
Represents a collection of zones that form a layout.
Definition Layout.h:74
ILayoutSource adapter wrapping an IZoneLayoutRegistry.
Definition ZonesLayoutSource.h:52
QVector< PhosphorLayout::LayoutPreview > availableLayouts() const override
Enumerate every layout this source can render.
PhosphorLayout::LayoutPreview previewAt(const QString &id, int windowCount=PhosphorLayout::DefaultPreviewWindowCount, const QSize &canvas={}) override
windowCount is ignored — manual layouts have authored zones.
~ZonesLayoutSource() override
ZonesLayoutSource(PhosphorZones::IZoneLayoutRegistry *registry, QObject *parent=nullptr)
Construct over a borrowed layout registry.
constexpr int DefaultPreviewWindowCount
Reference window count used by ILayoutSource::previewAt when the caller doesn't specify one.
Definition LayoutPreview.h:20
Definition IWindowTrackingService.h:22
PHOSPHORZONES_EXPORT PhosphorLayout::LayoutPreview previewFromLayout(PhosphorZones::Layout *layout, const QSize &canvas={})
Convert a single Layout into a renderer-ready LayoutPreview.
Renderer-ready snapshot of one layout entry (manual zone layout OR autotile algorithm result).
Definition LayoutPreview.h:44