|
TachyonUI 0.1.0
High-performance UI for building tools.
|
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 | |
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.
|
inlineconstexpr |
Transparent: no shadow.
|
defaultnoexcept |
| int16_t tachyon::BoxShadow::x = 0 |
horizontal offset in CSS px
| int16_t tachyon::BoxShadow::y = 0 |
vertical offset in CSS px
| uint16_t tachyon::BoxShadow::blur = 0 |
blur radius in CSS px
| int16_t tachyon::BoxShadow::spread = 0 |
CSS px the shadow grows by (shrinks when negative).
| color4b tachyon::BoxShadow::color {} |
transparent = no shadow
| bool tachyon::BoxShadow::inset = false |
an outline inside the border box; :focus-visible only