Size of one grid column or row (CSS: -tachyon-grid-column-track / -row-track).
More...
#include <gui_core/style/gui_style.h>
|
| Type | type = Type::Auto |
| float | value = 1.0f |
| | Meaning depends on type: pixels for Fixed, fraction for Fractional.
|
| float | minPx = 0.0f |
| | Fractional tracks only: size = max(minPx, content) + fractional share of free space.
|
Size of one grid column or row (CSS: -tachyon-grid-column-track / -row-track).
◆ Type
How value is read.
| Enumerator |
|---|
| Fixed | value is in pixels (e.g., 100.0f)
|
| Fractional | fractional unit (e.g., 1.0f = 1fr)
|
| Auto | fits content
|
| Default | defers to the element's style (only valid in LayoutOverride)
|
◆ Auto()
| constexpr GridTrack tachyon::GridTrack::Auto |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ Fixed()
| constexpr GridTrack tachyon::GridTrack::Fixed |
( |
float | value | ) |
|
|
inlinestaticconstexpr |
◆ Fractional()
| constexpr GridTrack tachyon::GridTrack::Fractional |
( |
float | value, |
|
|
float | minPx = 0.0f ) |
|
inlinestaticconstexpr |
value fr of the free space, on top of max(minPx, content).
◆ Default()
| constexpr GridTrack tachyon::GridTrack::Default |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ operator==()
| bool tachyon::GridTrack::operator== |
( |
const GridTrack & | other | ) |
const |
|
defaultnoexcept |
◆ type
◆ value
| float tachyon::GridTrack::value = 1.0f |
Meaning depends on type: pixels for Fixed, fraction for Fractional.
◆ minPx
| float tachyon::GridTrack::minPx = 0.0f |
Fractional tracks only: size = max(minPx, content) + fractional share of free space.
The documentation for this struct was generated from the following file: