Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
LayoutId.h File Reference
#include <QLatin1String>
#include <QString>
#include <QtGlobal>

Go to the source code of this file.

Namespaces

namespace  PhosphorLayout
 
namespace  PhosphorLayout::LayoutId
 LayoutPreview::id namespace utilities.
 

Functions

bool PhosphorLayout::LayoutId::isAutotile (const QString &id)
 
bool PhosphorLayout::LayoutId::isScrolling (const QString &id)
 
QString PhosphorLayout::LayoutId::extractAlgorithmId (const QString &id)
 Extract the algorithm id portion from an autotile preview id.
 
QString PhosphorLayout::LayoutId::makeAutotileId (const QString &algorithmId)
 
bool PhosphorLayout::LayoutId::isScrollingFamily (const QString &id)
 Prefix test over the whole scrolling family: the bare sentinel AND the prefixed template stamp.
 
QString PhosphorLayout::LayoutId::makeScrollingId (const QString &templateLayoutId)
 Build the rules-visible template stamp.
 
QString PhosphorLayout::LayoutId::extractTemplateId (const QString &id)
 Extract the template layout UUID from a scrolling-family id.
 

Variables

constexpr QLatin1String PhosphorLayout::LayoutId::AutotilePrefix {"autotile:"}
 
constexpr QLatin1String PhosphorLayout::LayoutId::ScrollingId {"scrolling:"}
 Scrolling has no layout entity, so its whole id is the bare sentinel — it exists so a mode-only Scrolling assignment carries a NON-EMPTY activeLayoutId() and survives the assignment cascade's non-empty-id visitors (exactly like the bare "autotile:" shape the KCM writes).