FTXUI 6.1.9
C++ functional terminal UI.
Loading...
Searching...
No Matches
AnimatedColorOption Struct Reference

Option about a potentially animated color. More...

#include <component_options.hpp>

+ Collaboration diagram for AnimatedColorOption:

Public Member Functions

void Set (Color inactive, Color active, animation::Duration duration=std::chrono::milliseconds(250), animation::easing::Function function=animation::easing::QuadraticInOut)
 A color option that can be animated. @params _inactive The color when the component is inactive. @params _active The color when the component is active. @params _duration The duration of the animation. @params _function The easing function of the animation.
 

Data Fields

bool enabled = false
 
Color inactive
 
Color active
 
animation::Duration duration = std::chrono::milliseconds(250)
 
animation::easing::Function function = animation::easing::QuadraticInOut
 

Detailed Description

Option about a potentially animated color.

Definition at line 55 of file component_options.hpp.

Member Function Documentation

◆ Set()

void Set ( Color inactive,
Color active,
animation::Duration duration = std::chrono::milliseconds(250),
animation::easing::Function function = animation::easing::QuadraticInOut )

A color option that can be animated. @params _inactive The color when the component is inactive. @params _active The color when the component is active. @params _duration The duration of the animation. @params _function The easing function of the animation.

Definition at line 21 of file component_options.cpp.

Field Documentation

◆ enabled

bool enabled = false

◆ inactive

◆ active

◆ duration

animation::Duration duration = std::chrono::milliseconds(250)

Definition at line 65 of file component_options.hpp.

◆ function


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