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

The whole strip of one screen as a renderer of a strip MAP needs it: every column with its strip position and extent, the viewport's offset and size on the same axis, and the active column. More...

#include <PhosphorScrollEngine/ScrollEngineTypes.h>

Public Attributes

StripAxis axis = StripAxis::horizontal()
int viewOffsetPx = 0
 The viewport's leading edge in strip coordinates.
int viewportPx = 0
 The viewport's extent along the strip (the work area's main extent).
int stripExtentPx = 0
 Total strip extent: every non-minimized column plus the gaps between.
int activeColumn = -1
 Strip index of the active column, -1 on an empty strip.
QVector< ScrollStripModelColumn > columns

Detailed Description

The whole strip of one screen as a renderer of a strip MAP needs it: every column with its strip position and extent, the viewport's offset and size on the same axis, and the active column.

Pixels along the strip's own axis throughout, so a consumer reads axis once and lays the rest out along it. Built by ScrollStrip::stripModel from ONE relayout pass; the engine's stripModelForScreen resolves the screen's params once and hands them down, the same cost discipline visibleTilesWithRects follows.

Member Data Documentation

◆ activeColumn

int PhosphorScrollEngine::ScrollStripModel::activeColumn = -1

Strip index of the active column, -1 on an empty strip.

◆ axis

StripAxis PhosphorScrollEngine::ScrollStripModel::axis = StripAxis::horizontal()

◆ columns

QVector<ScrollStripModelColumn> PhosphorScrollEngine::ScrollStripModel::columns

◆ stripExtentPx

int PhosphorScrollEngine::ScrollStripModel::stripExtentPx = 0

Total strip extent: every non-minimized column plus the gaps between.

◆ viewOffsetPx

int PhosphorScrollEngine::ScrollStripModel::viewOffsetPx = 0

The viewport's leading edge in strip coordinates.

Can be negative or past the strip's end: the centering policy deliberately stores an anchor whose derived offset overhangs when a short strip is centred.

◆ viewportPx

int PhosphorScrollEngine::ScrollStripModel::viewportPx = 0

The viewport's extent along the strip (the work area's main extent).


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