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

One CSS box-shadow layer, outside the border box. More...

#include <gui_core/style/gui_style.h>

Public Member Functions

constexpr bool IsNone () const
 Transparent: no shadow.
bool operator== (const BoxShadow &) const noexcept=default

Public Attributes

int16_t x = 0
 horizontal offset in CSS px
int16_t y = 0
 vertical offset in CSS px
uint16_t blur = 0
 blur radius in CSS px
int16_t spread = 0
 CSS px the shadow grows by (shrinks when negative).
color4b color {}
 transparent = no shadow
bool inset = false
 an outline inside the border box; :focus-visible only

Detailed Description

One CSS box-shadow layer, outside the border box.

A transparent color is no shadow. Inset is for the focus ring only: an outline spread wide inside the border box.

Member Function Documentation

◆ IsNone()

bool tachyon::BoxShadow::IsNone ( ) const
inlineconstexpr

Transparent: no shadow.

◆ operator==()

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

Member Data Documentation

◆ x

int16_t tachyon::BoxShadow::x = 0

horizontal offset in CSS px

◆ y

int16_t tachyon::BoxShadow::y = 0

vertical offset in CSS px

◆ blur

uint16_t tachyon::BoxShadow::blur = 0

blur radius in CSS px

◆ spread

int16_t tachyon::BoxShadow::spread = 0

CSS px the shadow grows by (shrinks when negative).

◆ color

color4b tachyon::BoxShadow::color {}

transparent = no shadow

◆ inset

bool tachyon::BoxShadow::inset = false

an outline inside the border box; :focus-visible only


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