|
TachyonUI 0.1.0
High-performance UI for building tools.
|
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) | |
A resolved CSS custom property (:root { --name: value; }): a color, 1..4 numbers or a box-shadow.
| color4b tachyon::CustomProperty::color {} |
the value as a solid color
| ColorStyle tachyon::CustomProperty::colorStyle {} |
the full value, which may be a gradient
| bool tachyon::CustomProperty::hasColor = false |
color / colorStyle are set
| 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.
| uint8_t tachyon::CustomProperty::dimCount = 0 |
number of values in dims, 0 = not numeric
| float tachyon::CustomProperty::number = 0.0f |
== dims[0] when dimCount >= 1
| bool tachyon::CustomProperty::hasNumber = false |
dimCount >= 1
| BoxShadow tachyon::CustomProperty::shadows[kMaxBoxShadows] {} |
A box-shadow value (--shadow: 0 8px 20px rgba(0,0,0,0.35);, or none).
see hasShadow
| bool tachyon::CustomProperty::hasShadow = false |
shadows is set (all-empty for none)