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

kDefault = use style value, >= 0 = override. More...

#include <gui_core/layout/gui_constraints.h>

Public Member Functions

constexpr bool HasGrow () const
constexpr bool HasShrink () const
bool operator== (const FlexOverride &) const noexcept=default

Public Attributes

int16_t grow = kDefault
 flex-grow override
int16_t shrink = kDefault
 flex-shrink override

Static Public Attributes

static constexpr int16_t kDefault = -1
 Use the style's value.

Detailed Description

kDefault = use style value, >= 0 = override.

Member Function Documentation

◆ HasGrow()

bool tachyon::FlexOverride::HasGrow ( ) const
inlineconstexpr

◆ HasShrink()

bool tachyon::FlexOverride::HasShrink ( ) const
inlineconstexpr

◆ operator==()

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

Member Data Documentation

◆ kDefault

int16_t tachyon::FlexOverride::kDefault = -1
staticconstexpr

Use the style's value.

◆ grow

int16_t tachyon::FlexOverride::grow = kDefault

flex-grow override

◆ shrink

int16_t tachyon::FlexOverride::shrink = kDefault

flex-shrink override


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