Column width INTENT — the source of truth the strip stores. More...
#include <PhosphorScrollEngine/ScrollTypes.h>
Public Types | |
| enum | Kind : int { Proportion = 0 , Fixed = 1 , Preset = 2 } |
Public Member Functions | |
| bool | operator== (const ColumnWidth &other) const |
Static Public Member Functions | |
| static constexpr ColumnWidth | makeProportion (qreal p) |
| static constexpr ColumnWidth | makeFixed (int px) |
| static constexpr ColumnWidth | makePreset (qreal fraction) |
Public Attributes | |
| Kind | kind = Proportion |
| qreal | proportion = 0.5 |
| Kind::Proportion. | |
| int | fixedPx = 0 |
| Kind::Fixed. | |
| qreal | presetFraction = 0.5 |
| Kind::Preset. | |
Column width INTENT — the source of truth the strip stores.
Pixel rects are recomputed from this on every relayout against the current work area; pixels are never authoritative.
| enum PhosphorScrollEngine::ColumnWidth::Kind : int |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inlinestaticconstexpr |
|
inline |
| int PhosphorScrollEngine::ColumnWidth::fixedPx = 0 |
| Kind PhosphorScrollEngine::ColumnWidth::kind = Proportion |
| qreal PhosphorScrollEngine::ColumnWidth::presetFraction = 0.5 |
| qreal PhosphorScrollEngine::ColumnWidth::proportion = 0.5 |