载入中...
搜索中...
未找到
eve::animation::MotionColorBuilder类 参考

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 
)

成员函数说明

◆ bind()

eve::Result< MotionHandle > eve::animation::MotionColorBuilder::bind ( IMotionColorSink &  sink)

◆ 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)

Delay.

在文件 MotionBuilder.cpp 第 288 行定义.

引用了 eve::animation::MotionRuntime::ColorDesc::delay.

◆ 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 
)

◆ onCancel()

MotionColorBuilder & eve::animation::MotionColorBuilder::onCancel ( MotionRuntime::VoidCallback  cb)

On cancel.

在文件 MotionBuilder.cpp 第 305 行定义.

引用了 eve::animation::MotionRuntime::ColorDesc::onCancel.

◆ onComplete()

MotionColorBuilder & eve::animation::MotionColorBuilder::onComplete ( MotionRuntime::VoidCallback  cb)

On complete.

在文件 MotionBuilder.cpp 第 301 行定义.

引用了 eve::animation::MotionRuntime::ColorDesc::onComplete.

◆ onUpdate()

MotionColorBuilder & eve::animation::MotionColorBuilder::onUpdate ( MotionRuntime::ColorCallback  cb)

On update.

在文件 MotionBuilder.cpp 第 297 行定义.

引用了 eve::animation::MotionRuntime::ColorDesc::onUpdate.

◆ run()

eve::Result< MotionHandle > eve::animation::MotionColorBuilder::run ( )

◆ runtime() [1/2]

const MotionRuntime & eve::animation::MotionColorBuilder::runtime ( ) const
inlinenoexcept

Runtime.

在文件 MotionBuilder.h 第 220 行定义.

◆ runtime() [2/2]

MotionRuntime & eve::animation::MotionColorBuilder::runtime ( )
inlinenoexcept

Runtime.

在文件 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)

To.

在文件 MotionBuilder.cpp 第 313 行定义.

引用了 eve::animation::MotionRuntime::ColorDesc::sink.


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