|
FTXUI 6.1.9
C++ functional terminal UI.
|
A class representing the settings for linear-gradient color effect. More...
#include <linear_gradient.hpp>
Data Structures | |
| struct | Stop |
Public Member Functions | |
| LinearGradient () | |
| Build the "empty" gradient. This is often followed by calls to LinearGradient::Angle() and LinearGradient::Stop(). Example: | |
| LinearGradient (Color begin, Color end) | |
| Build a gradient with two colors. | |
| LinearGradient (float angle, Color begin, Color end) | |
| Build a gradient with two colors and an angle. | |
| LinearGradient & | Angle (float angle) |
| Set the angle of the gradient. | |
| LinearGradient & | Stop (Color color, float position) |
| Add a color stop to the gradient. | |
| LinearGradient & | Stop (Color color) |
| Add a color stop to the gradient. | |
Data Fields | |
| float | angle = 0.f |
| std::vector< Stop > | stops |
A class representing the settings for linear-gradient color effect.
Example:
There are also shorthand constructors:
Definition at line 30 of file linear_gradient.hpp.
|
default |
Build the "empty" gradient. This is often followed by calls to LinearGradient::Angle() and LinearGradient::Stop(). Example:
| LinearGradient | ( | Color | begin, |
| Color | end ) |
Build a gradient with two colors.
| begin | The color at the beginning of the gradient. |
| end | The color at the end of the gradient. |
Definition at line 199 of file src/ftxui/dom/linear_gradient.cpp.
| LinearGradient | ( | float | a, |
| Color | begin, | ||
| Color | end ) |
Build a gradient with two colors and an angle.
| a | The angle of the gradient. |
| begin | The color at the beginning of the gradient. |
| end | The color at the end of the gradient. |
Definition at line 207 of file src/ftxui/dom/linear_gradient.cpp.
| LinearGradient & Angle | ( | float | a | ) |
Set the angle of the gradient.
| a | The angle of the gradient. |
Definition at line 216 of file src/ftxui/dom/linear_gradient.cpp.
| LinearGradient & Stop | ( | Color | c, |
| float | p ) |
Add a color stop to the gradient.
| c | The color of the stop. |
| p | The position of the stop. |
Definition at line 225 of file src/ftxui/dom/linear_gradient.cpp.
| LinearGradient & Stop | ( | Color | c | ) |
Add a color stop to the gradient.
| c | The color of the stop. |
Definition at line 235 of file src/ftxui/dom/linear_gradient.cpp.
| float angle = 0.f |
Definition at line 31 of file linear_gradient.hpp.
| std::vector<Stop> stops |
Definition at line 36 of file linear_gradient.hpp.