A column-aware strip snapshot for drag-popup renderers. More...
#include <PhosphorScrollEngine/ScrollEngineTypes.h>
Public Attributes | |
| QVector< ScrollStripSnapshotColumn > | columns |
| int | activeColumnIndex = -1 |
| Snapshot position of the strip's active column. | |
| bool | valid = false |
| False when the screen has no strip state or no valid work area — distinct from a valid, empty strip (zero columns). | |
A column-aware strip snapshot for drag-popup renderers.
INDEX CONTRACT: column positions in columns and tile positions in each column are the indices a DragInsertTarget built from this snapshot must carry — they name slots in the strip AS A COMMIT WILL SEE IT (the dragged window detached). When a drag-insert preview is live the resolve already runs against the preview's detached strip; when it is not, the accessor's excludeWindowId emulates the detach (tile removed, an emptied column dropped, later positions renumbered). GEOMETRY is pre-detach on the emulated path: widthFraction and the relRects come from the strip's relayout WITH the drag window still in it (its column previews the survivor at half height, siblings keep pre-detach widths) — the honest "what you are dragging out of" picture; only STRUCTURE (indices) is post-detach. The shipped consumer builds targets only from the column endpoints (tile 0 / append -1); per-tile indices are carried so richer targets stay expressible.
| int PhosphorScrollEngine::ScrollStripSnapshot::activeColumnIndex = -1 |
Snapshot position of the strip's active column.
When the exclusion empties the active column, this re-points to the column that takes its place (the right neighbour, or the new last column), matching the real detach; -1 only when the snapshot ends up with no columns.
| QVector<ScrollStripSnapshotColumn> PhosphorScrollEngine::ScrollStripSnapshot::columns |
| bool PhosphorScrollEngine::ScrollStripSnapshot::valid = false |
False when the screen has no strip state or no valid work area — distinct from a valid, empty strip (zero columns).
A test / introspection seam: the daemon's serializer collapses both states to an empty card list, which the popup renders identically on purpose.