Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
PhosphorSnapEngine::SpanTargetResult Struct Reference

Result of a span (grow/shrink) target computation. More...

#include <phosphor-snap-engine/include/PhosphorSnapEngine/snapnavigationtargets.h>

Public Attributes

bool success = false
 
QString reason
 
QStringList zoneIds
 The window's full NEW span set, primary zone first.
 
QRect geometry
 Union rect of the new span's zone geometries.
 
QString sourceZoneId
 Primary zone before the change (empty when the window was unsnapped).
 
QString screenName
 
bool grew = false
 true when the span grew into new zone(s), false when it retracted.
 

Detailed Description

Result of a span (grow/shrink) target computation.

Resolver-local rather than a PhosphorProtocol type: span is driven only by the daemon's shortcut path and never crosses D-Bus, so the zone list can stay a QStringList.

Member Data Documentation

◆ geometry

QRect PhosphorSnapEngine::SpanTargetResult::geometry

Union rect of the new span's zone geometries.

◆ grew

bool PhosphorSnapEngine::SpanTargetResult::grew = false

true when the span grew into new zone(s), false when it retracted.

◆ reason

QString PhosphorSnapEngine::SpanTargetResult::reason

◆ screenName

QString PhosphorSnapEngine::SpanTargetResult::screenName

◆ sourceZoneId

QString PhosphorSnapEngine::SpanTargetResult::sourceZoneId

Primary zone before the change (empty when the window was unsnapped).

◆ success

bool PhosphorSnapEngine::SpanTargetResult::success = false

◆ zoneIds

QStringList PhosphorSnapEngine::SpanTargetResult::zoneIds

The window's full NEW span set, primary zone first.

On a grow this is the old set plus every zone the extension band swept up; on a shrink it is the old set minus the retracted edge band. When the old primary itself sits in the retracted band, the first surviving member is promoted, so the primary is not stable across shrinks.


The documentation for this struct was generated from the following file: