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

One window's CommittedMainExtent per strip orientation, the value type of ScrollEngine::m_committedExtents. More...

#include <PhosphorScrollEngine/ScrollStashTypes.h>

Public Member Functions

bool isEmpty () const

Public Attributes

CommittedMainExtent horizontal
CommittedMainExtent vertical
CommittedCrossExtent horizontalCross = {}
 The cross-axis floors, per strip orientation like the two above and kept apart from them: horizontalCross is the floor a HORIZONTAL strip reads across itself (a height), so a height learned across a horizontal strip never reads as a vertical strip's floor along it.
CommittedCrossExtent verticalCross = {}

Detailed Description

One window's CommittedMainExtent per strip orientation, the value type of ScrollEngine::m_committedExtents.

Kept per orientation because a window on several desktops can sit in a horizontal strip on one and a vertical strip on another, and what its client said about its width says nothing about its height.

Member Function Documentation

◆ isEmpty()

bool PhosphorScrollEngine::CommittedExtent::isEmpty ( ) const
inline

Member Data Documentation

◆ horizontal

CommittedMainExtent PhosphorScrollEngine::CommittedExtent::horizontal

◆ horizontalCross

CommittedCrossExtent PhosphorScrollEngine::CommittedExtent::horizontalCross = {}

The cross-axis floors, per strip orientation like the two above and kept apart from them: horizontalCross is the floor a HORIZONTAL strip reads across itself (a height), so a height learned across a horizontal strip never reads as a vertical strip's floor along it.

Every leave and carry path moves or forgets the whole value, these with it.

◆ vertical

CommittedMainExtent PhosphorScrollEngine::CommittedExtent::vertical

◆ verticalCross

CommittedCrossExtent PhosphorScrollEngine::CommittedExtent::verticalCross = {}

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