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

Vec2 fluent builder. 更多...

#include <MotionBuilder.h>

Public 成员函数

 MotionVec2Builder (MotionRuntime &runtime, MotionVec2 from, MotionVec2 to, float duration)
 Motion vec 2 builder.
 
MotionVec2Builder & ease (std::string kind)
 Ease.
 
MotionVec2Builder & delay (float seconds)
 Delay.
 
MotionVec2Builder & loops (int count, MotionLoopMode mode=MotionLoopMode::Restart)
 Loops.
 
MotionVec2Builder & onUpdate (MotionRuntime::Vec2Callback cb)
 On update.
 
MotionVec2Builder & onComplete (MotionRuntime::VoidCallback cb)
 On complete.
 
MotionVec2Builder & onCancel (MotionRuntime::VoidCallback cb)
 On cancel.
 
MotionVec2Builder & cancelOnError (bool enabled)
 Cancel on error.
 
MotionVec2Builder & style (MotionStyle style)
 Select Tween / Punch / Shake evaluation.
 
MotionVec2Builder & frequency (int count)
 Oscillation count for Punch/Shake (default 10).
 
MotionVec2Builder & dampingRatio (float ratio)
 Damping ratio for Punch/Shake (0 = none, 1 = full).
 
MotionVec2Builder & seed (std::uint32_t value)
 Deterministic seed for Shake signs.
 
MotionVec2Builder & to (IMotionVec2Sink &sink)
 To.
 
eve::Result< MotionHandle > run ()
 Run.
 
eve::Result< MotionHandle > bind (IMotionVec2Sink &sink)
 Binds .
 
MotionRuntime & runtime () noexcept
 Runtime.
 
const MotionRuntime & runtime () const noexcept
 Runtime.
 
eve::Result< MotionRuntime::Vec2Desc > takeDesc ()
 Take desc.
 

友元

class MotionSequence
 

详细描述

Vec2 fluent builder.

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

构造及析构函数说明

◆ MotionVec2Builder()

eve::animation::MotionVec2Builder::MotionVec2Builder ( MotionRuntime &  runtime,
MotionVec2  from,
MotionVec2  to,
float  duration 
)

成员函数说明

◆ bind()

eve::Result< MotionHandle > eve::animation::MotionVec2Builder::bind ( IMotionVec2Sink &  sink)

◆ cancelOnError()

MotionVec2Builder & eve::animation::MotionVec2Builder::cancelOnError ( bool  enabled)

Cancel on error.

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

引用了 eve::animation::MotionRuntime::Vec2Desc::cancelOnError , 以及 enabled.

◆ dampingRatio()

MotionVec2Builder & eve::animation::MotionVec2Builder::dampingRatio ( float  ratio)

Damping ratio for Punch/Shake (0 = none, 1 = full).

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

引用了 eve::animation::MotionRuntime::Vec2Desc::dampingRatio.

◆ delay()

MotionVec2Builder & eve::animation::MotionVec2Builder::delay ( float  seconds)

Delay.

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

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

◆ ease()

MotionVec2Builder & eve::animation::MotionVec2Builder::ease ( std::string  kind)

Ease.

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

引用了 eve::animation::MotionRuntime::Vec2Desc::ease , 以及 kind.

◆ frequency()

MotionVec2Builder & eve::animation::MotionVec2Builder::frequency ( int  count)

Oscillation count for Punch/Shake (default 10).

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

引用了 count , 以及 eve::animation::MotionRuntime::Vec2Desc::frequency.

◆ loops()

MotionVec2Builder & eve::animation::MotionVec2Builder::loops ( int  count,
MotionLoopMode  mode = MotionLoopMode::Restart 
)

◆ onCancel()

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

On cancel.

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

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

◆ onComplete()

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

On complete.

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

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

◆ onUpdate()

MotionVec2Builder & eve::animation::MotionVec2Builder::onUpdate ( MotionRuntime::Vec2Callback  cb)

On update.

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

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

◆ run()

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

◆ runtime() [1/2]

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

Runtime.

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

◆ runtime() [2/2]

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

Runtime.

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

◆ seed()

MotionVec2Builder & eve::animation::MotionVec2Builder::seed ( std::uint32_t  value)

Deterministic seed for Shake signs.

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

引用了 eve::animation::MotionRuntime::Vec2Desc::seed , 以及 value.

◆ style()

MotionVec2Builder & eve::animation::MotionVec2Builder::style ( MotionStyle  style)

Select Tween / Punch / Shake evaluation.

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

引用了 style() , 以及 eve::animation::MotionRuntime::Vec2Desc::style.

被这些函数引用 eve::animation::Animation::punchVec2(), eve::animation::Animation::shakeVec2() , 以及 style().

◆ takeDesc()

eve::Result< MotionRuntime::Vec2Desc > eve::animation::MotionVec2Builder::takeDesc ( )

Take desc.

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

引用了 eve::Result< T >::failure() , 以及 eve::Result< T >::success().

◆ to()

MotionVec2Builder & eve::animation::MotionVec2Builder::to ( IMotionVec2Sink &  sink)

To.

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

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

友元及相关函数文档

◆ MotionSequence

friend class MotionSequence
friend

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


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