Color fluent builder (Tween / lerp only). 更多...
#include <MotionBuilder.h>
Public 成员函数 | |
| MotionColorBuilder (MotionRuntime &runtime, MotionColor from, MotionColor to, float duration) | |
| Motion color builder. | |
| MotionColorBuilder & | ease (std::string kind) |
| Ease. | |
| MotionColorBuilder & | delay (float seconds) |
| Delay. | |
| MotionColorBuilder & | loops (int count, MotionLoopMode mode=MotionLoopMode::Restart) |
| Loops. | |
| MotionColorBuilder & | onUpdate (MotionRuntime::ColorCallback cb) |
| On update. | |
| MotionColorBuilder & | onComplete (MotionRuntime::VoidCallback cb) |
| On complete. | |
| MotionColorBuilder & | onCancel (MotionRuntime::VoidCallback cb) |
| On cancel. | |
| MotionColorBuilder & | cancelOnError (bool enabled) |
| Cancel on error. | |
| MotionColorBuilder & | to (IMotionColorSink &sink) |
| To. | |
| eve::Result< MotionHandle > | run () |
| Run. | |
| eve::Result< MotionHandle > | bind (IMotionColorSink &sink) |
| Binds . | |
| MotionRuntime & | runtime () noexcept |
| Runtime. | |
| const MotionRuntime & | runtime () const noexcept |
| Runtime. | |
| eve::Result< MotionRuntime::ColorDesc > | takeDesc () |
| Take desc. | |
详细描述
Color fluent builder (Tween / lerp only).
在文件 MotionBuilder.h 第 190 行定义.
构造及析构函数说明
◆ MotionColorBuilder()
| eve::animation::MotionColorBuilder::MotionColorBuilder | ( | MotionRuntime & | runtime, |
| MotionColor | from, | ||
| MotionColor | to, | ||
| float | duration | ||
| ) |
Motion color builder.
在文件 MotionBuilder.cpp 第 277 行定义.
引用了 duration, eve::animation::MotionRuntime::ColorDesc::duration, eve::animation::MotionRuntime::ColorDesc::from, from, eve::animation::MotionRuntime::ColorDesc::to , 以及 to.
成员函数说明
◆ bind()
| eve::Result< MotionHandle > eve::animation::MotionColorBuilder::bind | ( | IMotionColorSink & | sink | ) |
Binds .
在文件 MotionBuilder.cpp 第 323 行定义.
引用了 eve::Result< T >::failure(), eve::animation::MotionRuntime::ColorDesc::sink , 以及 eve::animation::MotionRuntime::spawnColor().
◆ cancelOnError()
| MotionColorBuilder & eve::animation::MotionColorBuilder::cancelOnError | ( | bool | enabled | ) |
Cancel on error.
在文件 MotionBuilder.cpp 第 309 行定义.
引用了 eve::animation::MotionRuntime::ColorDesc::cancelOnError , 以及 enabled.
◆ delay()
| MotionColorBuilder & eve::animation::MotionColorBuilder::delay | ( | float | seconds | ) |
◆ ease()
| MotionColorBuilder & eve::animation::MotionColorBuilder::ease | ( | std::string | kind | ) |
Ease.
在文件 MotionBuilder.cpp 第 284 行定义.
引用了 eve::animation::MotionRuntime::ColorDesc::ease , 以及 kind.
◆ loops()
| MotionColorBuilder & eve::animation::MotionColorBuilder::loops | ( | int | count, |
| MotionLoopMode | mode = MotionLoopMode::Restart |
||
| ) |
Loops.
在文件 MotionBuilder.cpp 第 292 行定义.
引用了 count, eve::animation::MotionRuntime::ColorDesc::loopMode , 以及 eve::animation::MotionRuntime::ColorDesc::loops.
◆ onCancel()
| MotionColorBuilder & eve::animation::MotionColorBuilder::onCancel | ( | MotionRuntime::VoidCallback | cb | ) |
◆ onComplete()
| MotionColorBuilder & eve::animation::MotionColorBuilder::onComplete | ( | MotionRuntime::VoidCallback | cb | ) |
On complete.
在文件 MotionBuilder.cpp 第 301 行定义.
◆ onUpdate()
| MotionColorBuilder & eve::animation::MotionColorBuilder::onUpdate | ( | MotionRuntime::ColorCallback | cb | ) |
◆ run()
| eve::Result< MotionHandle > eve::animation::MotionColorBuilder::run | ( | ) |
◆ runtime() [1/2]
|
inlinenoexcept |
在文件 MotionBuilder.h 第 220 行定义.
◆ runtime() [2/2]
|
inlinenoexcept |
在文件 MotionBuilder.h 第 218 行定义.
◆ takeDesc()
| eve::Result< MotionRuntime::ColorDesc > eve::animation::MotionColorBuilder::takeDesc | ( | ) |
Take desc.
在文件 MotionBuilder.cpp 第 329 行定义.
引用了 eve::Result< T >::failure() , 以及 eve::Result< T >::success().
◆ to()
| MotionColorBuilder & eve::animation::MotionColorBuilder::to | ( | IMotionColorSink & | sink | ) |
该类的文档由以下文件生成:
- src/modules/animation/MotionBuilder.h
- src/modules/animation/MotionBuilder.cpp