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

What a state draws on the CPU only: its shadows and its opacity. More...

#include <gui_core/style/gui_style.h>

Public Member Functions

bool operator== (const VisualShadowStyle &) const noexcept=default

Public Attributes

VisualShadow layers [kMaxBoxShadows] {}
 the state's box-shadow layers
VisualShadow ring {}
 the focus ring (Style::focusRing)
uint32_t insetRing = 0
 1 + flat GPU index of the outline's box style, 0 = none
float opacity = -1.0f
 StyleState::opacity; below 0 = not set.

Detailed Description

What a state draws on the CPU only: its shadows and its opacity.

The ring is drawn only while focus is from the keyboard, outside the box or, for an inset ring, as a border-only box style over it.

Member Function Documentation

◆ operator==()

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

Member Data Documentation

◆ layers

VisualShadow tachyon::VisualShadowStyle::layers[kMaxBoxShadows] {}

the state's box-shadow layers

◆ ring

VisualShadow tachyon::VisualShadowStyle::ring {}

the focus ring (Style::focusRing)

◆ insetRing

uint32_t tachyon::VisualShadowStyle::insetRing = 0

1 + flat GPU index of the outline's box style, 0 = none

◆ opacity

float tachyon::VisualShadowStyle::opacity = -1.0f

StyleState::opacity; below 0 = not set.


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