|
TachyonUI 0.1.0
High-performance UI for building tools.
|
Color stops for gradients. More...
#include <gui_core/style/gui_style_gradient.h>
Public Member Functions | |
| bool | operator== (const ColorStop &other) const noexcept=default |
| ColorStop & | SetColor (color4b newColor) |
| ColorStop & | SetColor (color4f newColor) |
| Clamps each channel to 0..1 and stores it as 8 bits. | |
| ColorStop & | SetOffset (float newOffset) |
| Position along the gradient, 0..1 (clamped); stored as 16 bits. | |
| float | GetOffset () const |
| Position along the gradient, 0..1. | |
| color4f | GetColor4f () const |
| The color as 0..1 floats. | |
| color4b | GetColor4b () const |
Color stops for gradients.
|
defaultnoexcept |
Clamps each channel to 0..1 and stores it as 8 bits.
|
inline |
Position along the gradient, 0..1 (clamped); stored as 16 bits.
|
inline |
Position along the gradient, 0..1.
|
inline |
The color as 0..1 floats.
|
inline |