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

Go to the source code of this file.

Namespaces

namespace  PhosphorProtocol
 D-Bus marshalling for the shared tiling-family value types (see AutotileTypes.h; the file names predate the autotile-to-tiling generalization and are load-bearing across the build, so only the docs moved with the split).
 
namespace  PhosphorProtocol::Service
 
namespace  PhosphorProtocol::Service::Interface
 
namespace  PhosphorProtocol::Service::Error
 D-Bus error names returned via QDBusMessage::createErrorReply.
 
namespace  PhosphorProtocol::Service::SettingProperty
 Property names exposed by the Settings interface's runtime D-Bus surface (distinct from the persisted-config keys served by ConfigDefaults — these names live on the wire only).
 
namespace  PhosphorProtocol::Service::WindowMetadataKey
 Keys for the extended-window-property QVariantMap (the trailing a{sv} argument of setWindowMetadata).
 
namespace  PhosphorProtocol::Service::ScrollTabKey
 Keys of the two scrolling tab-indicator maps that cross the daemon → KWin effect boundary on org.plasmazones.Tiling: the per-screen context-rule PAINT override map (scrollTabPaintOverridesChanged / scrollTabPaintOverrides, all eleven paint keys) and the per-window rule COLOUR map (scrollTabColors / scrollTabColorsChanged, the three colour keys).
 
namespace  PhosphorProtocol::Service::ScrollBehaviourKey
 Keys of the scrolling BEHAVIOUR map that crosses the daemon → KWin effect boundary on org.plasmazones.Scrolling (scrollEffectBehaviour / scrollEffectBehaviourChanged): three already-resolved screen-id lists, the per-context focus-follows-mouse and crop-straddlers rule slots and the vertical-axis MEMBERSHIP (a screen in the list runs its strip vertically; absence means horizontal).
 
namespace  PhosphorProtocol::Service::StripPreviewKey
 Tab keys on the STRIP PREVIEW payload — the per-tile description of the tab indicator its column draws, so a preview of the strip shows a tabbed column as tabbed instead of as a plain window.
 
namespace  PhosphorProtocol::Service::Apps
 Single-instance app identities.
 
namespace  PhosphorProtocol::Service::Apps::Settings
 
namespace  PhosphorProtocol::Service::Apps::Editor
 

Functions

constexpr QLatin1String PhosphorProtocol::Service::Name ("org.plasmazones")
 D-Bus service constants shared by all compositor plugins.
 
constexpr QLatin1String PhosphorProtocol::Service::ObjectPath ("/PlasmaZones")
 
constexpr QLatin1String PhosphorProtocol::Service::Interface::Settings ("org.plasmazones.Settings")
 
constexpr QLatin1String PhosphorProtocol::Service::Interface::WindowDrag ("org.plasmazones.WindowDrag")
 
constexpr QLatin1String PhosphorProtocol::Service::Interface::WindowTracking ("org.plasmazones.WindowTracking")
 
constexpr QLatin1String PhosphorProtocol::Service::Interface::Overlay ("org.plasmazones.Overlay")
 
constexpr QLatin1String PhosphorProtocol::Service::Interface::Tiling ("org.plasmazones.Tiling")
 
constexpr QLatin1String PhosphorProtocol::Service::Interface::Autotile ("org.plasmazones.Autotile")
 
constexpr QLatin1String PhosphorProtocol::Service::Interface::Scrolling ("org.plasmazones.Scrolling")
 
constexpr QLatin1String PhosphorProtocol::Service::Interface::LayoutRegistry ("org.plasmazones.LayoutRegistry")
 
constexpr QLatin1String PhosphorProtocol::Service::Interface::Screen ("org.plasmazones.Screen")
 
constexpr QLatin1String PhosphorProtocol::Service::Interface::ZoneDetection ("org.plasmazones.ZoneDetection")
 
constexpr QLatin1String PhosphorProtocol::Service::Interface::CompositorBridge ("org.plasmazones.CompositorBridge")
 
constexpr QLatin1String PhosphorProtocol::Service::Interface::Snap ("org.plasmazones.Snap")
 
constexpr QLatin1String PhosphorProtocol::Service::Interface::Rules ("org.plasmazones.Rules")
 
constexpr QLatin1String PhosphorProtocol::Service::Interface::Control ("org.plasmazones.Control")
 
constexpr QLatin1String PhosphorProtocol::Service::Interface::Shader ("org.plasmazones.Shader")
 
constexpr QLatin1String PhosphorProtocol::Service::Error::Busy ("org.plasmazones.Error.Busy")
 
constexpr QLatin1String PhosphorProtocol::Service::Error::Shutdown ("org.plasmazones.Error.Shutdown")
 
constexpr QLatin1String PhosphorProtocol::Service::SettingProperty::ShaderProfileTree ("shaderProfileTree")
 
constexpr QLatin1String PhosphorProtocol::Service::SettingProperty::MotionProfileTree ("motionProfileTree")
 
constexpr QLatin1String PhosphorProtocol::Service::SettingProperty::AnimationShaderSearchPaths ("animationShaderSearchPaths")
 
constexpr QLatin1String PhosphorProtocol::Service::SettingProperty::DecorationProfileTree ("decorationProfileTree")
 
constexpr QLatin1String PhosphorProtocol::Service::WindowMetadataKey::IsMinimized ("isMinimized")
 
constexpr QLatin1String PhosphorProtocol::Service::WindowMetadataKey::IsDemandingAttention ("isDemandingAttention")
 Urgency (KWin's demandsAttention).
 
constexpr QLatin1String PhosphorProtocol::Service::WindowMetadataKey::IsFullscreen ("isFullscreen")
 
constexpr QLatin1String PhosphorProtocol::Service::WindowMetadataKey::IsSticky ("isSticky")
 
constexpr QLatin1String PhosphorProtocol::Service::WindowMetadataKey::IsMaximized ("isMaximized")
 
constexpr QLatin1String PhosphorProtocol::Service::WindowMetadataKey::IsFocused ("isFocused")
 
constexpr QLatin1String PhosphorProtocol::Service::WindowMetadataKey::IsTransient ("isTransient")
 
constexpr QLatin1String PhosphorProtocol::Service::WindowMetadataKey::IsNotification ("isNotification")
 
constexpr QLatin1String PhosphorProtocol::Service::WindowMetadataKey::KeepAbove ("keepAbove")
 
constexpr QLatin1String PhosphorProtocol::Service::WindowMetadataKey::KeepBelow ("keepBelow")
 
constexpr QLatin1String PhosphorProtocol::Service::WindowMetadataKey::SkipTaskbar ("skipTaskbar")
 
constexpr QLatin1String PhosphorProtocol::Service::WindowMetadataKey::SkipPager ("skipPager")
 
constexpr QLatin1String PhosphorProtocol::Service::WindowMetadataKey::SkipSwitcher ("skipSwitcher")
 
constexpr QLatin1String PhosphorProtocol::Service::WindowMetadataKey::IsModal ("isModal")
 
constexpr QLatin1String PhosphorProtocol::Service::WindowMetadataKey::HasDecoration ("hasDecoration")
 
constexpr QLatin1String PhosphorProtocol::Service::WindowMetadataKey::IsResizable ("isResizable")
 
constexpr QLatin1String PhosphorProtocol::Service::WindowMetadataKey::IsMovable ("isMovable")
 
constexpr QLatin1String PhosphorProtocol::Service::WindowMetadataKey::IsMaximizable ("isMaximizable")
 
constexpr QLatin1String PhosphorProtocol::Service::WindowMetadataKey::Width ("width")
 
constexpr QLatin1String PhosphorProtocol::Service::WindowMetadataKey::Height ("height")
 
constexpr QLatin1String PhosphorProtocol::Service::WindowMetadataKey::PositionX ("positionX")
 
constexpr QLatin1String PhosphorProtocol::Service::WindowMetadataKey::PositionY ("positionY")
 
constexpr QLatin1String PhosphorProtocol::Service::WindowMetadataKey::CaptionNormal ("captionNormal")
 
constexpr QLatin1String PhosphorProtocol::Service::WindowMetadataKey::VirtualDesktops ("virtualDesktops")
 Full 1-based desktop-number list for a window on SEVERAL (but not all) virtual desktops.
 
constexpr QLatin1String PhosphorProtocol::Service::ScrollTabKey::TabStyle ("tabStyle")
 
constexpr QLatin1String PhosphorProtocol::Service::ScrollTabKey::GapsBetweenTabs ("gapsBetweenTabs")
 
constexpr QLatin1String PhosphorProtocol::Service::ScrollTabKey::CornerRadius ("cornerRadius")
 
constexpr QLatin1String PhosphorProtocol::Service::ScrollTabKey::ActiveColor ("activeColor")
 
constexpr QLatin1String PhosphorProtocol::Service::ScrollTabKey::InactiveColor ("inactiveColor")
 
constexpr QLatin1String PhosphorProtocol::Service::ScrollTabKey::UrgentColor ("urgentColor")
 
constexpr QLatin1String PhosphorProtocol::Service::ScrollTabKey::FontFamily ("fontFamily")
 
constexpr QLatin1String PhosphorProtocol::Service::ScrollTabKey::FontWeight ("fontWeight")
 
constexpr QLatin1String PhosphorProtocol::Service::ScrollTabKey::FontItalic ("fontItalic")
 
constexpr QLatin1String PhosphorProtocol::Service::ScrollTabKey::FontUnderline ("fontUnderline")
 
constexpr QLatin1String PhosphorProtocol::Service::ScrollTabKey::FontStrikeout ("fontStrikeout")
 
constexpr QLatin1String PhosphorProtocol::Service::ScrollBehaviourKey::FocusFollowsMouse ("focusFollowsMouse")
 
constexpr QLatin1String PhosphorProtocol::Service::ScrollBehaviourKey::CropStraddlers ("cropStraddlers")
 
constexpr QLatin1String PhosphorProtocol::Service::ScrollBehaviourKey::VerticalAxis ("verticalAxis")
 
constexpr QLatin1String PhosphorProtocol::Service::StripPreviewKey::TabCount ("tabCount")
 How many tabs the tile's column shows, and absent or 0 when it draws no indicator — the single "no indicator here" gate on this payload, as the null rect is on the compositor's.
 
constexpr QLatin1String PhosphorProtocol::Service::StripPreviewKey::ActiveTab ("activeTab")
 The tile's own 0-based tab within that count.
 
constexpr QLatin1String PhosphorProtocol::Service::StripPreviewKey::TabPosition ("tabPosition")
 Which edge the indicator runs along, as a PhosphorScrollEngine:: TabIndicatorPosition underlying value (0 Left, 1 Right, 2 Top, 3 Bottom).
 
constexpr QLatin1String PhosphorProtocol::Service::StripPreviewKey::TabLength ("tabLength")
 How much of that edge the indicator covers, 0.0 to 1.0, centered on it.
 
constexpr QLatin1String PhosphorProtocol::Service::Apps::Settings::ServiceName ("org.plasmazones.Settings.App")
 
constexpr QLatin1String PhosphorProtocol::Service::Apps::Settings::ObjectPath ("/SettingsApp")
 
constexpr QLatin1String PhosphorProtocol::Service::Apps::Settings::Interface ("org.plasmazones.SettingsController")
 
constexpr QLatin1String PhosphorProtocol::Service::Apps::Editor::ServiceName ("org.plasmazones.Editor.App")
 
constexpr QLatin1String PhosphorProtocol::Service::Apps::Editor::ObjectPath ("/EditorApp")
 
constexpr QLatin1String PhosphorProtocol::Service::Apps::Editor::Interface ("org.plasmazones.EditorController")
 
int PhosphorProtocol::Service::snapAssistThumbnailBoxPx (int zoneMinAxisLogicalPx, int candidateCount, double outputScale)
 
bool PhosphorProtocol::Service::envSwitchEnabled (const char *name)
 
bool PhosphorProtocol::Service::envSwitchEnabledByDefault (const char *name)
 
bool PhosphorProtocol::Service::snapAssistDmabufThumbnailsEnabled ()
 
bool PhosphorProtocol::Service::snapAssistThumbnailTraceEnabled ()
 

Variables

constexpr int PhosphorProtocol::Service::QuickLayoutSlotCount = 9
 Quick-layout slots are numbered 1..QuickLayoutSlotCount.
 
constexpr int PhosphorProtocol::Service::ApiVersion = 5
 
constexpr int PhosphorProtocol::Service::MinPeerApiVersion = 5
 
constexpr int PhosphorProtocol::Service::SyncCallTimeoutMs = 500
 
constexpr int PhosphorProtocol::Service::DaemonReadyProbeTimeoutMs = 3000
 
constexpr int PhosphorProtocol::Service::SnapAssistThumbnailPostTimeoutMs = 2000
 
constexpr int PhosphorProtocol::Service::SnapAssistThumbnailCacheCapacity = 24
 
constexpr int PhosphorProtocol::Service::SnapAssistThumbnailMaxDimension = 1024
 
constexpr double PhosphorProtocol::Service::SnapAssistCardScaleBase = 0.35
 
constexpr double PhosphorProtocol::Service::SnapAssistIconSizeRatio = 0.6
 
constexpr int PhosphorProtocol::Service::SnapAssistMinIconLogicalPx = 16
 
constexpr double PhosphorProtocol::Service::SnapAssistThumbnailHeadroom = 1.25