TachyonUI 0.1.0
High-performance UI for building tools.
Loading...
Searching...
No Matches
tachyon::GridAxisProperties Struct Reference

A grid item's placement and track request along one axis, plus the container's gap. More...

#include <gui_core/style/gui_style.h>

Public Member Functions

bool operator== (const GridAxisProperties &) const noexcept=default

Public Attributes

GridTrack track = GridTrack::Default()
 Size the item asks for its column / row; across the items in a track, Fixed beats Fractional beats Auto, and the larger value wins.
int16_t start { kAuto }
 first track the item covers; kAuto = auto-place
int16_t span { 1 }
 tracks the item covers
int16_t gap { 0 }
 container: space between tracks (CSS: column-gap / row-gap)

Static Public Attributes

static constexpr int16_t kAuto = -1
 start: auto-place

Detailed Description

A grid item's placement and track request along one axis, plus the container's gap.

Member Function Documentation

◆ operator==()

bool tachyon::GridAxisProperties::operator== ( const GridAxisProperties & ) const
defaultnoexcept

Member Data Documentation

◆ kAuto

int16_t tachyon::GridAxisProperties::kAuto = -1
staticconstexpr

start: auto-place

◆ track

GridTrack tachyon::GridAxisProperties::track = GridTrack::Default()

Size the item asks for its column / row; across the items in a track, Fixed beats Fractional beats Auto, and the larger value wins.

◆ start

int16_t tachyon::GridAxisProperties::start { kAuto }

first track the item covers; kAuto = auto-place

◆ span

int16_t tachyon::GridAxisProperties::span { 1 }

tracks the item covers

◆ gap

int16_t tachyon::GridAxisProperties::gap { 0 }

container: space between tracks (CSS: column-gap / row-gap)


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