7#include <PhosphorProtocol/phosphorprotocoltypes_export.h>
D-Bus marshalling for the shared tiling-family value types (see AutotileTypes.h; the file names preda...
Definition AutotileMarshalling.h:19
constexpr int DragBypassReasonCount
Number of DragBypassReason values.
Definition DragTypes.h:51
PHOSPHORPROTOCOLTYPES_EXPORT DragBypassReason bypassReasonFromWireString(const QString &s)
Parse from the legacy wire-format string. Unknown values map to None.
QList< EmptyZoneEntry > EmptyZoneList
Definition ZoneTypes.h:58
PHOSPHORPROTOCOL_EXPORT QDBusArgument & operator<<(QDBusArgument &arg, const TileRequestEntry &e)
PHOSPHORPROTOCOLTYPES_EXPORT QString toWireString(DragBypassReason r)
Convert to the legacy wire-format string. Returns an empty QString for None.
DragBypassReason
Why a drag was bypassed from the canonical snap pipeline.
Definition DragTypes.h:34
@ SnappingDisabled
snap mode off globally — dead drag
Definition DragTypes.h:42
@ LayoutSuppressed
screen has no zone layout (default assignment suppressed) — dead drag
Definition DragTypes.h:44
@ EngineOwnedScreen
drag started/ended on a screen owned by a tiling-family engine (autotile or scrolling),...
Definition DragTypes.h:36
@ None
canonical snap path — drag flows through the snap pipeline
Definition DragTypes.h:35
@ ContextDisabled
monitor/desktop/activity excluded in settings — dead drag
Definition DragTypes.h:43
Drag outcome — daemon-authoritative decision about what to apply at drag end.
Definition DragTypes.h:103
int x
Definition DragTypes.h:121
QString windowId
Definition DragTypes.h:119
Action action
Typed as Action (not int) so every switch over it is exhaustiveness-checked by -Wswitch and a local m...
Definition DragTypes.h:118
int width
Definition DragTypes.h:123
EmptyZoneList emptyZones
candidate zones for snap assist (empty unless requestSnapAssist)
Definition DragTypes.h:128
bool skipAnimation
Definition DragTypes.h:126
int height
Definition DragTypes.h:124
QString targetScreenId
Definition DragTypes.h:120
bool requestSnapAssist
true → plugin should show snap-assist window picker
Definition DragTypes.h:127
Action
Definition DragTypes.h:104
@ RestoreSize
drag-out unsnap: restore original size, keep current position
Definition DragTypes.h:108
@ ApplySnap
snap path: apply snap geometry to a zone
Definition DragTypes.h:107
@ CancelSnap
snap cancelled via Escape
Definition DragTypes.h:109
@ ApplyFloat
autotile path: mark window floating at current position
Definition DragTypes.h:106
@ NoOp
drag produced no state change (e.g. cancelled with no prior snap)
Definition DragTypes.h:105
@ NotifyDragOutUnsnap
drag ended without activation trigger on a previously-snapped window
Definition DragTypes.h:110
QString zoneId
populated for ApplySnap
Definition DragTypes.h:125
QString validationError() const
Returns empty QString if valid, or a human-readable description of the invariant violation.
QRect toRect() const
Definition DragTypes.h:130
int y
Definition DragTypes.h:122
Drag policy — daemon-authoritative decision about how a drag should be handled.
Definition DragTypes.h:76
bool streamDragMoved
effect should send dragMoved D-Bus ticks
Definition DragTypes.h:77
bool operator==(const DragPolicy &) const =default
Full structural equality.
bool captureGeometry
effect should capture pre-drag geometry
Definition DragTypes.h:80
bool immediateFloatOnStart
effect should call handleDragToFloat(immediate) at drag start
Definition DragTypes.h:81
bool showOverlay
daemon will show zone overlay during this drag
Definition DragTypes.h:78
QString screenId
screen the drag started/currently is on (virtual-screen-aware)
Definition DragTypes.h:82
QString validationError() const
Returns empty QString if valid, or a human-readable description of the invariant violation.
DragBypassReason bypassReason
drag routing (None = canonical snap path)
Definition DragTypes.h:83
bool grabKeyboard
effect should grab keyboard (Escape cancel)
Definition DragTypes.h:79