Definition AlgorithmMetadata.h:10
AspectRatioClass
Screen aspect-ratio classification.
Definition AspectRatioClass.h:21
@ Any
Suitable for all aspect ratios (default)
constexpr int DefaultPreviewWindowCount
Reference window count used by ILayoutSource::previewAt when the caller doesn't specify one.
Definition LayoutPreview.h:20
Renderer-ready snapshot of one layout entry (manual zone layout OR autotile algorithm result).
Definition LayoutPreview.h:44
AspectRatioClass aspectRatioClass
Aspect-ratio class hint propagated up from the layout source.
Definition LayoutPreview.h:101
QString description
Optional longer description shown in tooltips / detail views.
Definition LayoutPreview.h:62
int zoneCount
Number of zones in the preview.
Definition LayoutPreview.h:80
bool isSystem
True when the layout is "system-owned" and should render with a lock badge in the picker.
Definition LayoutPreview.h:126
bool isValid() const noexcept
Structural consistency check.
Definition LayoutPreview.h:156
QString sectionKey
Section-grouping metadata for the picker UI.
Definition LayoutPreview.h:106
int sectionOrder
Definition LayoutPreview.h:108
bool autoAssign
True when new windows should auto-fill the first empty zone (manual layouts only — the autotile equiv...
Definition LayoutPreview.h:113
qreal referenceAspectRatio
For fixed-geometry manual layouts: the reference aspect ratio the zones were authored for.
Definition LayoutPreview.h:95
QString sectionLabel
Definition LayoutPreview.h:107
std::optional< AlgorithmMetadata > algorithm
Optional autotile algorithm metadata.
Definition LayoutPreview.h:133
QVector< int > zoneNumbers
Per-zone display label.
Definition LayoutPreview.h:72
static constexpr int UnlimitedZoneCount
Sentinel for zoneCount meaning "no hard limit on window count" (typical for unlimited autotile algori...
Definition LayoutPreview.h:50
bool isAutotile() const noexcept
True when this preview backs an autotile algorithm (equivalent to algorithm.has_value()).
Definition LayoutPreview.h:140
QString displayName
Human-readable name for the picker UI (i18n'd by the source).
Definition LayoutPreview.h:59
QVector< QRectF > zones
Zone rectangles in 0.0–1.0 relative coordinates.
Definition LayoutPreview.h:66
bool recommended
True when the layout matches the rendering canvas's aspect ratio well enough to be a "recommended" pi...
Definition LayoutPreview.h:88
QString id
Stable identifier for this layout entry.
Definition LayoutPreview.h:56