|
TachyonUI 0.1.0
High-performance UI for building tools.
|
The box part of one state of a registered Style, in pixels; uploaded to the GPU as is (32 bytes). More...
#include <gui_core/style/gui_style.h>
Public Member Functions | |
| uint64_t | GetHashCode () const noexcept |
| Hash for deduplication. | |
| bool | operator== (const VisualBoxStyle &other) const noexcept |
Public Attributes | |
| BoxEdges | borderWidths {} |
| pixels | |
| BoxCorners | borderRadius {} |
| pixels | |
| VisualColorStyleIndex | borderColorIndex [4] |
| Per-edge border colors: [0]=top, [1]=right, [2]=bottom, [3]=left. | |
| VisualColorStyleIndex | backgroundColorIndex = VisualColorStyleIndex::Invalid |
| background color | |
| uint16_t | borderDashSize = 0 |
| dash length in pixels; 0 = solid | |
| uint16_t | borderDashOffset = 0 |
| offset into the dash pattern, pixels | |
| uint16_t | shadowIndex = 0 |
| 1-based index of the state's VisualShadowStyle (shadows, opacity), 0 = none; read on the CPU only. | |
The box part of one state of a registered Style, in pixels; uploaded to the GPU as is (32 bytes).
|
inlinenoexcept |
Hash for deduplication.
|
inlinenoexcept |
| BoxEdges tachyon::VisualBoxStyle::borderWidths {} |
pixels
| BoxCorners tachyon::VisualBoxStyle::borderRadius {} |
pixels
| VisualColorStyleIndex tachyon::VisualBoxStyle::borderColorIndex[4] |
Per-edge border colors: [0]=top, [1]=right, [2]=bottom, [3]=left.
| VisualColorStyleIndex tachyon::VisualBoxStyle::backgroundColorIndex = VisualColorStyleIndex::Invalid |
background color
| uint16_t tachyon::VisualBoxStyle::borderDashSize = 0 |
dash length in pixels; 0 = solid
| uint16_t tachyon::VisualBoxStyle::borderDashOffset = 0 |
offset into the dash pattern, pixels
| uint16_t tachyon::VisualBoxStyle::shadowIndex = 0 |
1-based index of the state's VisualShadowStyle (shadows, opacity), 0 = none; read on the CPU only.