Playback handle for a sequence's child motions. 更多...
#include <MotionSequence.h>
Public 成员函数 | |
| MotionSequenceHandle ()=default | |
| Motion sequence handle. | |
| MotionSequenceHandle (MotionRuntime *runtime, std::vector< MotionHandle > children) | |
| Motion sequence handle. | |
| bool | isActive () const noexcept |
| True when active. | |
| int | childCount () const noexcept |
| Child count. | |
| MotionHandle | child (int index) const |
| Child. | |
| eve::Result< void > | complete () |
| Complete every still-active child (fires onComplete). | |
| eve::Result< void > | cancel () |
| Cancel every still-active child (fires onCancel). | |
详细描述
Playback handle for a sequence's child motions.
@ownership Does not own the runtime; borrows Animation's MotionRuntime. @thread Main-thread animation API only.
在文件 MotionSequence.h 第 25 行定义.
构造及析构函数说明
◆ MotionSequenceHandle() [1/2]
|
default |
Motion sequence handle.
◆ MotionSequenceHandle() [2/2]
| eve::animation::MotionSequenceHandle::MotionSequenceHandle | ( | MotionRuntime * | runtime, |
| std::vector< MotionHandle > | children | ||
| ) |
Motion sequence handle.
在文件 MotionSequence.cpp 第 27 行定义.
成员函数说明
◆ cancel()
| eve::Result< void > eve::animation::MotionSequenceHandle::cancel | ( | ) |
Cancel every still-active child (fires onCancel).
在文件 MotionSequence.cpp 第 53 行定义.
引用了 eve::animation::MotionRuntime::cancel(), eve::Result< T >::failure(), h, eve::animation::MotionRuntime::isActive() , 以及 r.
◆ child()
| MotionHandle eve::animation::MotionSequenceHandle::child | ( | int | index | ) | const |
◆ childCount()
|
inlinenoexcept |
Child count.
在文件 MotionSequence.h 第 35 行定义.
◆ complete()
| eve::Result< void > eve::animation::MotionSequenceHandle::complete | ( | ) |
Complete every still-active child (fires onComplete).
在文件 MotionSequence.cpp 第 43 行定义.
引用了 eve::animation::MotionRuntime::complete(), eve::Result< T >::failure(), h, eve::animation::MotionRuntime::isActive() , 以及 r.
◆ isActive()
|
noexcept |
True when active.
在文件 MotionSequence.cpp 第 30 行定义.
引用了 h , 以及 eve::animation::MotionRuntime::isActive().
该类的文档由以下文件生成:
- src/modules/animation/MotionSequence.h
- src/modules/animation/MotionSequence.cpp