6#include <PhosphorLayer/phosphorlayer_export.h>
19Q_NAMESPACE_EXPORT(PHOSPHORLAYER_EXPORT)
41Q_DECLARE_FLAGS(Anchors,
Anchor)
76struct PHOSPHORLAYER_EXPORT
Role
113Q_DECLARE_OPERATORS_FOR_FLAGS(PhosphorLayer::Anchors)
Definition SurfaceAnimator.h:26
constexpr Anchors AnchorAll
Definition Role.h:48
KeyboardInteractivity
Keyboard focus policy (wlr-layer-shell v4 adds OnDemand).
Definition Role.h:51
@ Exclusive
Surface takes exclusive keyboard focus (modals).
Definition Role.h:53
@ OnDemand
Surface receives focus when clicked (panels).
Definition Role.h:54
@ None
Surface never receives keyboard focus (click-through).
Definition Role.h:52
Layer
Meta-object context for namespace-level enums so QML and QMetaEnum can stringify them.
Definition Role.h:24
@ Bottom
Above background, below windows (live wallpapers).
Definition Role.h:26
@ Overlay
Above everything including fullscreen (HUDs, OSDs).
Definition Role.h:28
@ Top
Above windows (panels, docks).
Definition Role.h:27
@ Background
Behind windows (wallpapers).
Definition Role.h:25
constexpr Anchors AnchorNone
Definition Role.h:47
Anchor
Edge anchors.
Definition Role.h:34
@ Bottom
Definition Role.h:37
@ None
Definition Role.h:35
@ Right
Definition Role.h:39
@ Left
Definition Role.h:38
@ Top
Definition Role.h:36
Value type describing a surface's protocol-level configuration.
Definition Role.h:77
Layer layer
Definition Role.h:78
Role withExclusiveZone(int z) const
Role withKeyboard(KeyboardInteractivity k) const
friend bool operator==(const Role &a, const Role &b)=default
int exclusiveZone
-1 = ignore other surfaces' zones
Definition Role.h:80
Role withLayer(Layer l) const
Role withScopePrefix(QString prefix) const
bool isValid() const
True if this Role is a semantically valid wlr-layer-shell configuration.
Role withMargins(QMargins m) const
QMargins defaultMargins
Definition Role.h:82
Role withAnchors(Anchors a) const
QString scopePrefix
Namespace for this role's surfaces (wl_surface scope).
Definition Role.h:83
Anchors anchors
Definition Role.h:79
KeyboardInteractivity keyboard
Definition Role.h:81