diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2026-05-06 13:56:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-06 13:56:12 +0100 |
| commit | 1681bea42dd2f11ba3fe6df05560d0b231de3c76 (patch) | |
| tree | 899103dbddf675a01758c7cdd379224c9c81a7fb /src/layout/algorithm/TiledAlgorithm.hpp | |
| parent | 5f1350f522d3fe3af78cbe30a98311763b3509d5 (diff) | |
config/lua: add simple layout API (#14258)
Adds a simple layout lua api
Diffstat (limited to 'src/layout/algorithm/TiledAlgorithm.hpp')
| -rw-r--r-- | src/layout/algorithm/TiledAlgorithm.hpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/layout/algorithm/TiledAlgorithm.hpp b/src/layout/algorithm/TiledAlgorithm.hpp index 99d1bd99..6905ac74 100644 --- a/src/layout/algorithm/TiledAlgorithm.hpp +++ b/src/layout/algorithm/TiledAlgorithm.hpp @@ -5,6 +5,9 @@ #include "ModeAlgorithm.hpp" +#include <optional> +#include <string> + namespace Layout { class ITarget; @@ -16,6 +19,12 @@ namespace Layout { virtual SP<ITarget> getNextCandidate(SP<ITarget> old) = 0; + // Optional runtime layout name. Useful for generic adapter classes where + // typeid alone cannot identify the selected layout instance. + virtual std::optional<std::string> layoutName() const { + return std::nullopt; + } + protected: ITiledAlgorithm() = default; @@ -23,4 +32,4 @@ namespace Layout { friend class Layout::CAlgorithm; }; -}
\ No newline at end of file +} |
