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

A resolved CSS custom property (:root { --name: value; }): a color, 1..4 numbers or a box-shadow. More...

#include <gui_core/style/gui_style_sheet.h>

Public Attributes

color4b color {}
 the value as a solid color
ColorStyle colorStyle {}
 the full value, which may be a gradient
bool hasColor = false
 color / colorStyle are set
uint16_t dims [4] {}
 1..4 numeric values (--border-first: 2px 2px 2px 2px;), for shorthands such as border-width and border-radius.
uint8_t dimCount = 0
 number of values in dims, 0 = not numeric
float number = 0.0f
 == dims[0] when dimCount >= 1
bool hasNumber = false
 dimCount >= 1
BoxShadow shadows [kMaxBoxShadows] {}
 A box-shadow value (--shadow: 0 8px 20px rgba(0,0,0,0.35);, or none).
bool hasShadow = false
 shadows is set (all-empty for none)

Detailed Description

A resolved CSS custom property (:root { --name: value; }): a color, 1..4 numbers or a box-shadow.

Member Data Documentation

◆ color

color4b tachyon::CustomProperty::color {}

the value as a solid color

◆ colorStyle

ColorStyle tachyon::CustomProperty::colorStyle {}

the full value, which may be a gradient

◆ hasColor

bool tachyon::CustomProperty::hasColor = false

color / colorStyle are set

◆ dims

uint16_t tachyon::CustomProperty::dims[4] {}

1..4 numeric values (--border-first: 2px 2px 2px 2px;), for shorthands such as border-width and border-radius.

◆ dimCount

uint8_t tachyon::CustomProperty::dimCount = 0

number of values in dims, 0 = not numeric

◆ number

float tachyon::CustomProperty::number = 0.0f

== dims[0] when dimCount >= 1

◆ hasNumber

bool tachyon::CustomProperty::hasNumber = false

dimCount >= 1

◆ shadows

BoxShadow tachyon::CustomProperty::shadows[kMaxBoxShadows] {}

A box-shadow value (--shadow: 0 8px 20px rgba(0,0,0,0.35);, or none).

see hasShadow

◆ hasShadow

bool tachyon::CustomProperty::hasShadow = false

shadows is set (all-empty for none)


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