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

Owning resolved presentation; no actions or model state are encoded. More...

#include <style_types.hpp>

Public Member Functions

bool operator== (const ComputedStyle &other) const noexcept

Public Attributes

CellStyle normal
 Ordinary text and fill.
CellStyle focused
 Focused control text and fill.
CellStyle disabled
 Disabled control text and fill.
CellStyle selected
 Selected list/table row or editor range.
CellStyle header
 Fixed table heading.
CellStyle caret
 Editor software caret.
std::int32_t minWidth {}
 Nonnegative hard column minimum; zero adds no style constraint.
std::array< FrameAppearance, 6 > frame {}
 Parts in normal/focused/disabled/selected/header/caret order.
std::array< ScrollbarAppearance, 6 > scrollbar {}
 Parts in normal/focused/disabled/selected/header/caret order.
std::optional< std::array< ScrollbarThumbAppearance, 6 > > scrollbarThumbSegments {}
 Optional complete segment values in normal/focused/disabled/selected/header/caret order. Engaged only for matching segment declarations or explicit widget defaults. Inline ownership keeps resolution and copies allocation-free; absence retains the common thumb and avoids segment resolution.
std::optional< std::array< SliderAppearance, 6 > > sliderParts {}
 Complete Slider paints in normal/focused/disabled/selected/header/caret order. Engaged only for matching part declarations or explicit widget defaults. Inline ownership keeps resolution and copying allocation-free; an absent value retains the ordinary control paint.
std::array< GlyphAppearance, 6 > glyphs {}
std::optional< StyleSizing > sizing {}
 Inline scratch constraints; resolution and copying never allocate.

Detailed Description

Owning resolved presentation; no actions or model state are encoded.

Member Function Documentation

◆ operator==()

bool portals::ComputedStyle::operator== ( const ComputedStyle & other) const
noexcept
Parameters
otherOwning value to compare.
Returns
True when every paint value and metric agrees.

Member Data Documentation

◆ glyphs

std::array<GlyphAppearance, 6> portals::ComputedStyle::glyphs {}

Logical maps in normal/focused/disabled/selected/header/caret order.


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