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

Tile height INTENT within a column (its extent ACROSS the strip). More...

#include <PhosphorScrollEngine/ScrollTypes.h>

Public Types

enum  Kind : int { Auto = 0 , Fixed = 1 , Preset = 2 }

Public Member Functions

bool operator== (const WindowHeight &other) const

Static Public Member Functions

static constexpr WindowHeight makeAuto (qreal w=1.0)
static constexpr WindowHeight makeFixed (int px)
static constexpr WindowHeight makePreset (qreal fraction)

Public Attributes

Kind kind = Auto
qreal weight = 1.0
 Kind::Auto.
int fixedPx = 0
 Kind::Fixed.
qreal presetFraction = 0.5
 Kind::Preset.

Detailed Description

Tile height INTENT within a column (its extent ACROSS the strip).

Same pixels-are-derived contract as ColumnWidth.

Member Enumeration Documentation

◆ Kind

Enumerator
Auto 

Share the column's CROSS extent left over after Fixed/Preset tiles, proportionally to weight (the default even split at weight 1).

Fixed 

Absolute pixel CROSS extent.

Preset 

Fraction anchor snapped to the nearest entry of the effective preset list at relayout — same value-anchored contract as ColumnWidth::Preset.

Member Function Documentation

◆ makeAuto()

constexpr WindowHeight PhosphorScrollEngine::WindowHeight::makeAuto ( qreal w = 1.0)
inlinestaticconstexpr

◆ makeFixed()

constexpr WindowHeight PhosphorScrollEngine::WindowHeight::makeFixed ( int px)
inlinestaticconstexpr

◆ makePreset()

constexpr WindowHeight PhosphorScrollEngine::WindowHeight::makePreset ( qreal fraction)
inlinestaticconstexpr

◆ operator==()

bool PhosphorScrollEngine::WindowHeight::operator== ( const WindowHeight & other) const
inline

Member Data Documentation

◆ fixedPx

int PhosphorScrollEngine::WindowHeight::fixedPx = 0

◆ kind

Kind PhosphorScrollEngine::WindowHeight::kind = Auto

◆ presetFraction

qreal PhosphorScrollEngine::WindowHeight::presetFraction = 0.5

◆ weight

qreal PhosphorScrollEngine::WindowHeight::weight = 1.0

The documentation for this struct was generated from the following file:
  • phosphor-scroll-engine/include/PhosphorScrollEngine/ScrollTypes.h