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

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.

Detailed Description

The box part of one state of a registered Style, in pixels; uploaded to the GPU as is (32 bytes).

Member Function Documentation

◆ GetHashCode()

uint64_t tachyon::VisualBoxStyle::GetHashCode ( ) const
inlinenoexcept

Hash for deduplication.

◆ operator==()

bool tachyon::VisualBoxStyle::operator== ( const VisualBoxStyle & other) const
inlinenoexcept

Member Data Documentation

◆ borderWidths

BoxEdges tachyon::VisualBoxStyle::borderWidths {}

pixels

◆ borderRadius

BoxCorners tachyon::VisualBoxStyle::borderRadius {}

pixels

◆ borderColorIndex

VisualColorStyleIndex tachyon::VisualBoxStyle::borderColorIndex[4]
Initial value:

Per-edge border colors: [0]=top, [1]=right, [2]=bottom, [3]=left.

◆ backgroundColorIndex

VisualColorStyleIndex tachyon::VisualBoxStyle::backgroundColorIndex = VisualColorStyleIndex::Invalid

background color

◆ borderDashSize

uint16_t tachyon::VisualBoxStyle::borderDashSize = 0

dash length in pixels; 0 = solid

◆ borderDashOffset

uint16_t tachyon::VisualBoxStyle::borderDashOffset = 0

offset into the dash pattern, pixels

◆ shadowIndex

uint16_t tachyon::VisualBoxStyle::shadowIndex = 0

1-based index of the state's VisualShadowStyle (shadows, opacity), 0 = none; read on the CPU only.


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