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. | |
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.
| QRect PhosphorSnapEngine::SpanTargetResult::geometry |
Union rect of the new span's zone geometries.
| bool PhosphorSnapEngine::SpanTargetResult::grew = false |
true when the span grew into new zone(s), false when it retracted.
| QString PhosphorSnapEngine::SpanTargetResult::reason |
| QString PhosphorSnapEngine::SpanTargetResult::screenName |
| QString PhosphorSnapEngine::SpanTargetResult::sourceZoneId |
Primary zone before the change (empty when the window was unsnapped).
| bool PhosphorSnapEngine::SpanTargetResult::success = false |
| 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.