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

Owning per-axis bounds; preferred=-1 or CONTENT uses intrinsic measurement. More...

#include <layout.hpp>

Public Member Functions

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

Public Attributes

std::int32_t minimum {}
 Nonnegative hard minimum.
std::int32_t preferred {INTRINSIC_EXTENT}
 Intrinsic when -1, otherwise requested size.
std::int32_t maximum {std::numeric_limits<std::int32_t>::max()}
 Inclusive cap.
SizeMode mode {SizeMode::AUTOMATIC}
 Fixed does not shrink; flex shares spare cells.
std::uint32_t weight {1}
 Positive flex weight.

Detailed Description

Owning per-axis bounds; preferred=-1 or CONTENT uses intrinsic measurement.

Member Function Documentation

◆ operator==()

bool portals::AxisSize::operator== ( const AxisSize & other) const
constexprdefault
Parameters
otherOwning axis value to compare.
Returns
Whether every bound and allocation setting agrees.

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