21 return QStringLiteral(
"shell");
25 return QStringLiteral(
"shell.panel");
29 return QStringLiteral(
"shell.appletPopup");
39 return QStringLiteral(
"window.tiled");
43 return QStringLiteral(
"window.snapped");
47 return QStringLiteral(
"window.floating");
56 return QStringLiteral(
"osd");
60 return QStringLiteral(
"popup.layoutPicker");
64 return QStringLiteral(
"popup.zoneSelector");
68 return QStringLiteral(
"popup.cheatsheet");
72 return QStringLiteral(
"popup.snapAssist");
84 return QStringLiteral(
"shell.phosphor");
88 return QStringLiteral(
"shell.phosphor.bar");
92 return QStringLiteral(
"shell.phosphor.popout");
96 return QStringLiteral(
"shell.phosphor.osd");
100 return QStringLiteral(
"shell.phosphor.notification");
104 return QStringLiteral(
"shell.phosphor.picker");
108 return QStringLiteral(
"shell.phosphor.lock");
122 return QStringLiteral(
"pointer");
187 const int dotIdx = path.lastIndexOf(QLatin1Char(
'.'));
188 return (dotIdx < 0) ? QString() : path.left(dotIdx);
206 for (
const QString& leaf : leaves) {
207 QString cursor = leaf;
208 while (!cursor.isEmpty()) {
209 if (!seen.contains(cursor)) {
241 if (path == pointer || path.startsWith(pointer + QLatin1Char(
'.'))) {
245 return path == root || path.startsWith(root + QLatin1Char(
'.'));
254 static const QSet<QString> kSupported = []() {
256 return QSet<QString>(list.cbegin(), list.cend());
258 return kSupported.contains(path);
Definition DecorationProfile.h:31
QString decorationPointerPath()
The mouse pointer.
Definition DecorationSupportedPaths.h:120
QString decorationShellRootPath()
The root of the plasmashell surface subtree and its two leaves.
Definition DecorationSupportedPaths.h:19
QString decorationWindowTiledPath()
The three per-placement window decoration paths.
Definition DecorationSupportedPaths.h:37
QStringList decorationSupportedSurfacePaths()
Single source of truth for "which surface paths can carry a decorationprofile".
Definition DecorationSupportedPaths.h:201
QString decorationPopupSnapAssistPath()
Definition DecorationSupportedPaths.h:70
bool decorationPathIsBaselineIsolated(const QString &path)
Roots whose subtree does NOT inherit the tree baseline.
Definition DecorationSupportedPaths.h:235
QString decorationShellPhosphorLockPath()
Definition DecorationSupportedPaths.h:106
QString decorationOsdPath()
The OSD surface and the four transient overlays invoked by user action.
Definition DecorationSupportedPaths.h:54
QStringList decorationShellPhosphorLeafPaths()
Definition DecorationSupportedPaths.h:110
QString decorationShellPanelPath()
Definition DecorationSupportedPaths.h:23
bool decorationSurfaceSupported(const QString &path)
Convenience predicate: does path name a surface that can carry a decoration profile (a leaf or an anc...
Definition DecorationSupportedPaths.h:252
QString decorationShellPhosphorBarPath()
Definition DecorationSupportedPaths.h:86
QString decorationParentPath(const QString &path)
Walk path up one level in the dot-hierarchy ("window.floating" -> "window" -> "").
Definition DecorationSupportedPaths.h:183
QString decorationPopupZoneSelectorPath()
Definition DecorationSupportedPaths.h:62
QString decorationShellPhosphorRootPath()
The Phosphor shell's own surfaces, a family under shell beside the plasmashell leaves.
Definition DecorationSupportedPaths.h:82
QString decorationShellPhosphorPickerPath()
Definition DecorationSupportedPaths.h:102
QString decorationShellAppletPopupPath()
Definition DecorationSupportedPaths.h:27
QString decorationShellPhosphorOsdPath()
Definition DecorationSupportedPaths.h:94
QString decorationShellPhosphorNotificationPath()
Definition DecorationSupportedPaths.h:98
QString decorationWindowFloatingPath()
Definition DecorationSupportedPaths.h:45
QString decorationPopupLayoutPickerPath()
Definition DecorationSupportedPaths.h:58
QString decorationPopupCheatsheetPath()
Definition DecorationSupportedPaths.h:66
QStringList decorationLeafSurfacePaths()
Leaf surface paths a per-surface decoration profile actually resolves against.
Definition DecorationSupportedPaths.h:140
QString decorationWindowSnappedPath()
Definition DecorationSupportedPaths.h:41
QString decorationShellPhosphorPopoutPath()
Definition DecorationSupportedPaths.h:90