Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::ui::ScrollbarPartModifier Struct Reference

Independent scrollbar appearance stage; omitted parts keep their sources. More...

#include <ui_layout.hpp>

Public Attributes

std::optional< ScrollbarPattern > trackPattern {}
 Selected track source, preserving siblings.
std::optional< ScrollbarThumbPattern > thumbPattern {}
 Selected thumb source, preserving siblings.
std::optional< ScrollbarArrowPattern > arrowPattern {}
 Selected arrow source, preserving behavior.

Friends

template<class T>
requires (std::same_as<T, ScrollArea> || std::same_as<T, ScrollBar>)
Description< T > operator| (Description< T > &&description, ScrollbarPartModifier modifier)

Detailed Description

Independent scrollbar appearance stage; omitted parts keep their sources.

◆ operator|

template<class T>
requires (std::same_as<T, ScrollArea> || std::same_as<T, ScrollBar>)
Description< T > operator| ( Description< T > && description,
ScrollbarPartModifier modifier )
friend
Template Parameters
TExactly ScrollArea or ScrollBar.
Parameters
descriptionConsumed scroll recipe.
modifierOwning sparse preset settings.
Returns
Consumed area/bar with only the selected part changed.

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