dl
dl::ActionColor类 参考

变色 更多...

#include <dl_action_def.h>

继承自 dl::Action .

Public 类型

using Func = std::function<void(ActionColor*)>
 

Public 成员函数

 ActionColor (FloatTime t, Func func)
 
virtual void Update () override
 
void SetColor (const std::array< Color, 2 > &col)
 设置颜色插值
 
Color GetColor ()
 返回当前插值颜色
 
- Public 成员函数 继承自 dl::Action
bool IsFinish ()
 
FloatTime GetK ()
 返回进度0-1
 

额外继承的成员函数

- Protected 成员函数 继承自 dl::Action
 Action (FloatTime t)
 
virtual ~Action ()
 

详细描述

变色

在文件 dl_action_def.h67 行定义.

成员类型定义说明

◆ Func

using dl::ActionColor::Func = std::function<void(ActionColor*)>

在文件 dl_action_def.h70 行定义.

构造及析构函数说明

◆ ActionColor()

dl::ActionColor::ActionColor ( FloatTime t,
Func func )
inline

在文件 dl_action_def.h71 行定义.

成员函数说明

◆ GetColor()

Color dl::ActionColor::GetColor ( )
inline

返回当前插值颜色

在文件 dl_action_def.h86 行定义.

◆ SetColor()

void dl::ActionColor::SetColor ( const std::array< Color, 2 > & col)
inline

设置颜色插值

在文件 dl_action_def.h81 行定义.

◆ Update()

virtual void dl::ActionColor::Update ( )
inlineoverridevirtual

实现了 dl::Action.

在文件 dl_action_def.h76 行定义.


该类的文档由以下文件生成: