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

A key: a time where the curve has a value, its slopes on either side, and how the curve runs on to the next key. More...

#include <gui_controls/gui_curve_types.h>

Public Member Functions

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

Public Attributes

ID stableID = ID::Invalid()
 assigned once on creation, for its selection
float time = 0.0f
float value = 0.0f
float inSlope = 0.0f
 the slope arriving, value per time
float outSlope = 0.0f
 the slope leaving
CurveTangentMode tangents = CurveTangentMode::Auto
CurveInterpolation interpolation = CurveInterpolation::Bezier
 to the next key

Detailed Description

A key: a time where the curve has a value, its slopes on either side, and how the curve runs on to the next key.

Member Function Documentation

◆ operator==()

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

Member Data Documentation

◆ stableID

ID tachyon::CurveKey::stableID = ID::Invalid()

assigned once on creation, for its selection

◆ time

float tachyon::CurveKey::time = 0.0f

◆ value

float tachyon::CurveKey::value = 0.0f

◆ inSlope

float tachyon::CurveKey::inSlope = 0.0f

the slope arriving, value per time

◆ outSlope

float tachyon::CurveKey::outSlope = 0.0f

the slope leaving

◆ tangents

CurveTangentMode tachyon::CurveKey::tangents = CurveTangentMode::Auto

◆ interpolation

CurveInterpolation tachyon::CurveKey::interpolation = CurveInterpolation::Bezier

to the next key


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