![]() |
ThorVG
v0.13
|
The LottieAnimation class enables control of advanced Lottie features. More...

Public Member Functions | |
| Result | override (const char *slot) noexcept |
| Override Lottie properties using slot data. More... | |
Public Member Functions inherited from Animation | |
| Result | frame (float no) noexcept |
| Specifies the current frame in the animation. More... | |
| Picture * | picture () const noexcept |
| Retrieves a picture instance associated with this animation instance. More... | |
| float | curFrame () const noexcept |
| Retrieves the current frame number of the animation. More... | |
| float | totalFrame () const noexcept |
| Retrieves the total number of frames in the animation. More... | |
| float | duration () const noexcept |
| Retrieves the duration of the animation in seconds. More... | |
Static Public Member Functions | |
| static std::unique_ptr< LottieAnimation > | gen () noexcept |
| Creates a new LottieAnimation object. More... | |
Static Public Member Functions inherited from Animation | |
| static std::unique_ptr< Animation > | gen () noexcept |
| Creates a new Animation object. More... | |
The LottieAnimation class enables control of advanced Lottie features.
This class extends the Animation and has additional interfaces.
|
staticnoexcept |
|
noexcept |
Override Lottie properties using slot data.
| [in] | slot | The Lottie slot data in JSON format to override, or nullptr to reset. |
| Result::Success | When succeed. |
| Result::InsufficientCondition | In case the animation is not loaded. |
| Result::InvalidArguments | When the given parameter is invalid. |