Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
AutotilePreviewRender.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 fuddlesworth
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
6#include <phosphortiles_export.h>
7
9
10#include <QSize>
11#include <QString>
12
13namespace PhosphorTiles {
14class ITileAlgorithmRegistry;
15class TilingAlgorithm;
16} // namespace PhosphorTiles
17
18namespace PhosphorTiles {
19
49PHOSPHORTILES_EXPORT PhosphorLayout::LayoutPreview
50previewFromAlgorithm(const QString& algorithmId, PhosphorTiles::TilingAlgorithm* algorithm, int windowCount,
51 PhosphorTiles::ITileAlgorithmRegistry* registry, QSize canvasSize = {});
52
61 int windowCount,
63 QSize canvasSize = {});
64
65} // namespace PhosphorTiles
Abstract contract for a tiling-algorithm registry.
Definition ITileAlgorithmRegistry.h:41
Abstract base class for tiling algorithms.
Definition TilingAlgorithm.h:56
Definition AutotileEngine.h:71
PHOSPHORTILES_EXPORT PhosphorLayout::LayoutPreview previewFromAlgorithm(const QString &algorithmId, PhosphorTiles::TilingAlgorithm *algorithm, int windowCount, PhosphorTiles::ITileAlgorithmRegistry *registry, QSize canvasSize={})
Convert a single TilingAlgorithm into a renderer-ready LayoutPreview.
Renderer-ready snapshot of one layout entry (manual zone layout OR autotile algorithm result).
Definition LayoutPreview.h:44