7#include <QLatin1String>
22inline constexpr QLatin1String
Name(
"org.phosphor_works.Placement");
23inline constexpr QLatin1String
ObjectPath(
"/org/phosphor_works/Placement");
36inline constexpr QLatin1String
HostApi(
"placement");
71inline constexpr QLatin1String
Settings(
"org.phosphor_works.Placement.Settings");
72inline constexpr QLatin1String
WindowDrag(
"org.phosphor_works.Placement.WindowDrag");
73inline constexpr QLatin1String
WindowTracking(
"org.phosphor_works.Placement.WindowTracking");
74inline constexpr QLatin1String
Overlay(
"org.phosphor_works.Placement.Overlay");
81inline constexpr QLatin1String
Tiling(
"org.phosphor_works.Placement.Tiling");
86inline constexpr QLatin1String
Autotile(
"org.phosphor_works.Placement.Autotile");
87inline constexpr QLatin1String
Scrolling(
"org.phosphor_works.Placement.Scrolling");
88inline constexpr QLatin1String
LayoutRegistry(
"org.phosphor_works.Placement.LayoutRegistry");
89inline constexpr QLatin1String
Screen(
"org.phosphor_works.Placement.Screen");
90inline constexpr QLatin1String
ZoneDetection(
"org.phosphor_works.Placement.ZoneDetection");
91inline constexpr QLatin1String
CompositorBridge(
"org.phosphor_works.Placement.CompositorBridge");
92inline constexpr QLatin1String
Snap(
"org.phosphor_works.Placement.Snap");
93inline constexpr QLatin1String
Rules(
"org.phosphor_works.Placement.Rules");
94inline constexpr QLatin1String
Control(
"org.phosphor_works.Placement.Control");
95inline constexpr QLatin1String
Shader(
"org.phosphor_works.Placement.Shader");
102inline constexpr QLatin1String
Busy(
"org.phosphor_works.Placement.Error.Busy");
103inline constexpr QLatin1String
Shutdown(
"org.phosphor_works.Placement.Error.Shutdown");
133inline constexpr QLatin1String
InnerGap(
"innerGap");
134inline constexpr QLatin1String
OuterGap(
"outerGap");
160inline constexpr QLatin1String
IsSticky(
"isSticky");
171inline constexpr QLatin1String
IsModal(
"isModal");
176inline constexpr QLatin1String
Width(
"width");
177inline constexpr QLatin1String
Height(
"height");
203inline constexpr QLatin1String
TabStyle(
"tabStyle");
285inline constexpr QLatin1String
TabCount(
"tabCount");
317inline constexpr QLatin1String
Axis(
"axis");
328inline constexpr QLatin1String
Columns(
"columns");
330inline constexpr QLatin1String
Index(
"index");
334inline constexpr QLatin1String
ExtentPx(
"extentPx");
337inline constexpr QLatin1String
Display(
"display");
343inline constexpr QLatin1String
Tiles(
"tiles");
345inline constexpr QLatin1String
WindowId(
"windowId");
347inline constexpr QLatin1String
CrossPx(
"crossPx");
366inline constexpr QLatin1String
Rect(
"rect");
368inline constexpr QLatin1String
Cells(
"cells");
371inline constexpr QLatin1String
Id(
"id");
379inline constexpr QLatin1String
ServiceName(
"org.phosphor_works.Facet");
380inline constexpr QLatin1String
ObjectPath(
"/org/phosphor_works/Facet");
381inline constexpr QLatin1String
Interface(
"org.phosphor_works.Facet");
384inline constexpr QLatin1String
ServiceName(
"org.phosphor_works.PlasmaZones.Editor");
385inline constexpr QLatin1String
ObjectPath(
"/org/phosphor_works/PlasmaZones/Editor");
386inline constexpr QLatin1String
Interface(
"org.phosphor_works.PlasmaZones.Editor");
1001 const double cardScale =
SnapAssistCardScaleBase / std::max(1.0, std::sqrt(
double(std::max(1, candidateCount))));
1002 const double iconLogical =
1009 const double boxPx =
1026 if (!qEnvironmentVariableIsSet(name)) {
1029 return qgetenv(name).trimmed() !=
"0";
1038 if (!qEnvironmentVariableIsSet(name)) {
1041 return qgetenv(name).trimmed() !=
"0";
Definition ServiceConstants.h:383
constexpr QLatin1String ServiceName("org.phosphor_works.PlasmaZones.Editor")
constexpr QLatin1String Interface("org.phosphor_works.PlasmaZones.Editor")
constexpr QLatin1String ObjectPath("/org/phosphor_works/PlasmaZones/Editor")
Definition ServiceConstants.h:378
constexpr QLatin1String Interface("org.phosphor_works.Facet")
constexpr QLatin1String ObjectPath("/org/phosphor_works/Facet")
constexpr QLatin1String ServiceName("org.phosphor_works.Facet")
Single-instance app identities.
Definition ServiceConstants.h:377
Keys of the drop-proxy JSON a shell registers on org.phosphor_works.Placement.WindowDrag (registerDro...
Definition ServiceConstants.h:363
constexpr QLatin1String Cells("cells")
Array of cells, one per drawn zone, each {id, rect}.
constexpr QLatin1String Rect("rect")
The miniature's bounding rect on its screen.
constexpr QLatin1String Id("id")
A cell's target: the snapping zone id, braces included, as the layout interfaces spell it.
D-Bus error names returned via QDBusMessage::createErrorReply.
Definition ServiceConstants.h:101
constexpr QLatin1String Shutdown("org.phosphor_works.Placement.Error.Shutdown")
constexpr QLatin1String Busy("org.phosphor_works.Placement.Error.Busy")
Definition ServiceConstants.h:70
constexpr QLatin1String LayoutRegistry("org.phosphor_works.Placement.LayoutRegistry")
constexpr QLatin1String Autotile("org.phosphor_works.Placement.Autotile")
constexpr QLatin1String Shader("org.phosphor_works.Placement.Shader")
constexpr QLatin1String WindowDrag("org.phosphor_works.Placement.WindowDrag")
constexpr QLatin1String Tiling("org.phosphor_works.Placement.Tiling")
constexpr QLatin1String Control("org.phosphor_works.Placement.Control")
constexpr QLatin1String Scrolling("org.phosphor_works.Placement.Scrolling")
constexpr QLatin1String CompositorBridge("org.phosphor_works.Placement.CompositorBridge")
constexpr QLatin1String Snap("org.phosphor_works.Placement.Snap")
constexpr QLatin1String Settings("org.phosphor_works.Placement.Settings")
constexpr QLatin1String Screen("org.phosphor_works.Placement.Screen")
constexpr QLatin1String ZoneDetection("org.phosphor_works.Placement.ZoneDetection")
constexpr QLatin1String WindowTracking("org.phosphor_works.Placement.WindowTracking")
constexpr QLatin1String Overlay("org.phosphor_works.Placement.Overlay")
constexpr QLatin1String Rules("org.phosphor_works.Placement.Rules")
Property names exposed by the Settings interface's runtime D-Bus surface (distinct from the persisted...
Definition ServiceConstants.h:112
constexpr QLatin1String OuterGapLeft("outerGapLeft")
constexpr QLatin1String OuterGapBottom("outerGapBottom")
constexpr QLatin1String AnimationShaderSearchPaths("animationShaderSearchPaths")
constexpr QLatin1String OuterGap("outerGap")
constexpr QLatin1String OuterGapTop("outerGapTop")
constexpr QLatin1String DecorationProfileTree("decorationProfileTree")
constexpr QLatin1String UsePerSideOuterGap("usePerSideOuterGap")
constexpr QLatin1String ShaderProfileTree("shaderProfileTree")
constexpr QLatin1String DecorationBlurScaleMultiplier("decorationBlurScaleMultiplier")
The user's decoration blur-quality tier.
constexpr QLatin1String MotionProfileTree("motionProfileTree")
constexpr QLatin1String InnerGap("innerGap")
constexpr QLatin1String OuterGapRight("outerGapRight")
constexpr QLatin1String OverlayShaderTree("overlayShaderTree")
Keys of the STRIP MODEL payload, org.phosphor_works.Placement.Scrolling.stripModelJson: the whole str...
Definition ServiceConstants.h:314
constexpr QLatin1String StripPosPx("stripPosPx")
A column's leading edge in strip coordinates.
constexpr QLatin1String Minimized("minimized")
Whether the tile is minimized (kept in the stack order, laid out nowhere).
constexpr QLatin1String WindowId("windowId")
A tile's window id.
constexpr QLatin1String ActiveTile("activeTile")
Index into the column's tiles of its active tile.
constexpr QLatin1String StripExtentPx("stripExtentPx")
The strip's total extent: every non-minimized column plus the gaps.
constexpr QLatin1String Index("index")
A column's strip index, which is also what focusColumnAt takes.
constexpr QLatin1String Display("display")
A column's display as a PhosphorScrollEngine::ColumnDisplay underlying value (0 Normal,...
constexpr QLatin1String ViewOffsetPx("viewOffsetPx")
The viewport's leading edge in strip coordinates.
constexpr QLatin1String Maximized("maximized")
The column's declared maximize-to-edges state.
constexpr QLatin1String ViewportPx("viewportPx")
The viewport's extent along the strip (the work area's main extent).
constexpr QLatin1String ActiveColumn("activeColumn")
Strip index of the active column, -1 on an empty strip.
constexpr QLatin1String Columns("columns")
The column array, in strip order.
constexpr QLatin1String Axis("axis")
0 for a horizontal strip, 1 for a vertical one.
constexpr QLatin1String Tiles("tiles")
The column's tile array, in stack order, minimized tiles included.
constexpr QLatin1String ExtentPx("extentPx")
A column's extent along the strip; 0 for a fully minimized column.
constexpr QLatin1String CrossPx("crossPx")
A tile's resolved extent across the strip; 0 for a minimized tile.
Tab keys on the STRIP PREVIEW payload — the per-tile description of the tab indicator its column draw...
Definition ServiceConstants.h:281
constexpr QLatin1String ActiveTab("activeTab")
The tile's own 0-based tab within that count.
constexpr QLatin1String TabCount("tabCount")
How many tabs the tile's column shows, and absent or 0 when it draws no indicator — the single "no in...
constexpr QLatin1String TabPosition("tabPosition")
Which edge the indicator runs along, as a PhosphorScrollEngine:: TabIndicatorPosition underlying valu...
constexpr QLatin1String TabLength("tabLength")
How much of that edge the indicator covers, 0.0 to 1.0, centered on it.
Definition ServiceConstants.h:12
constexpr int CommittedSizeTolerancePx
Definition ServiceConstants.h:919
constexpr QLatin1String ObjectPath("/org/phosphor_works/Placement")
constexpr int MinPeerApiVersion
Definition ServiceConstants.h:900
constexpr int SyncCallTimeoutMs
Definition ServiceConstants.h:935
constexpr int SnapAssistThumbnailCacheCapacity
Definition ServiceConstants.h:970
constexpr double SnapAssistIconSizeRatio
Definition ServiceConstants.h:995
constexpr int QuickLayoutSlotCount
Quick-layout slots are numbered 1..QuickLayoutSlotCount.
Definition ServiceConstants.h:60
constexpr int ApiVersion
Definition ServiceConstants.h:899
constexpr int SnapAssistThumbnailMaxDimension
Definition ServiceConstants.h:982
constexpr double SnapAssistCardScaleBase
Definition ServiceConstants.h:994
constexpr int SnapAssistMinIconLogicalPx
Definition ServiceConstants.h:996
constexpr double SnapAssistThumbnailHeadroom
Definition ServiceConstants.h:997
constexpr QLatin1String Name("org.phosphor_works.Placement")
The placement service's D-Bus identity.
int snapAssistThumbnailBoxPx(int zoneMinAxisLogicalPx, int candidateCount, double outputScale)
Definition ServiceConstants.h:999
bool envSwitchEnabledByDefault(const char *name)
Definition ServiceConstants.h:1036
constexpr int MaxRunningWindowsPayloadBytes
The largest running-windows payload (Settings.provideRunningWindows) the daemon relays,...
Definition ServiceConstants.h:68
bool snapAssistThumbnailTraceEnabled()
Definition ServiceConstants.h:1073
bool snapAssistDmabufThumbnailsEnabled()
Definition ServiceConstants.h:1060
bool envSwitchEnabled(const char *name)
Definition ServiceConstants.h:1024
constexpr int SnapAssistThumbnailPostTimeoutMs
Definition ServiceConstants.h:953
constexpr int DaemonReadyProbeTimeoutMs
Definition ServiceConstants.h:944
constexpr QLatin1String HostApi("placement")
Not a D-Bus name.