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

A stop of a GradientF. More...

#include <gui_core/style/gui_style_gradient.h>

Public Member Functions

bool operator== (const GradientStop &) const =default

Public Attributes

float offset = 0.0f
 along the gradient, 0..1
color4f color {}
 alpha not premultiplied; red, green and blue may pass 1 (HDR)
StopInterpolation interpolation = StopInterpolation::Linear
 from this stop to the next

Detailed Description

A stop of a GradientF.

Member Function Documentation

◆ operator==()

bool tachyon::GradientStop::operator== ( const GradientStop & ) const
default

Member Data Documentation

◆ offset

float tachyon::GradientStop::offset = 0.0f

along the gradient, 0..1

◆ color

color4f tachyon::GradientStop::color {}

alpha not premultiplied; red, green and blue may pass 1 (HDR)

◆ interpolation

StopInterpolation tachyon::GradientStop::interpolation = StopInterpolation::Linear

from this stop to the next


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