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

Sparse style sizing; legacy min-width remains solely in minWidth. More...

#include <style_types.hpp>

Public Member Functions

constexpr bool operator== (const StyleSizing &other) const =default

Public Attributes

std::optional< StyleAxisSize > width
 Horizontal mode request.
std::optional< StyleAxisSize > height
 Vertical mode request.
std::optional< std::int32_t > maxWidth
 Inclusive nonnegative column cap.
std::optional< std::int32_t > minHeight
 Nonnegative hard row minimum.
std::optional< std::int32_t > maxHeight
 Inclusive nonnegative row cap.

Detailed Description

Sparse style sizing; legacy min-width remains solely in minWidth.

Member Function Documentation

◆ operator==()

bool portals::StyleSizing::operator== ( const StyleSizing & other) const
constexprdefault
Parameters
otherSparse constraints to compare.
Returns
Whether every leaf agrees.

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