FTXUI 6.1.9
C++ functional terminal UI.
载入中...
搜索中...
未找到
linear_gradient.cpp 文件参考

浏览该文件的源代码.

命名空间

namespace  ftxui
 #include "ftxui/component/component_base.hpp" // 用于 ComponentBase
 

函数

Element color (const LinearGradient &gradient, Element child)
 使用线性渐变效果设置元素的前景色。
 
Element bgcolor (const LinearGradient &gradient, Element child)
 使用线性渐变效果设置元素的背景色。
 
Decorator color (const LinearGradient &gradient)
 使用线性渐变效果装饰前景色。
 
Decorator bgcolor (const LinearGradient &gradient)
 使用线性渐变效果装饰背景色。
 

变量说明

◆ angle

float angle = 0.F

◆ colors

std::vector<Color> colors

在文件 src/ftxui/dom/linear_gradient.cpp23 行定义.

◆ positions

std::vector<float> positions

在文件 src/ftxui/dom/linear_gradient.cpp24 行定义.