#include <lottie_animation.hpp>
|
| static bool | supported () noexcept |
| | True when Lottie support is compiled in (PULP_HAS_LOTTIE).
|
◆ LottieAnimation() [1/3]
| pulp::canvas::LottieAnimation::LottieAnimation |
( |
| ) |
|
◆ ~LottieAnimation()
| pulp::canvas::LottieAnimation::~LottieAnimation |
( |
| ) |
|
◆ LottieAnimation() [2/3]
| pulp::canvas::LottieAnimation::LottieAnimation |
( |
LottieAnimation && | | ) |
|
|
noexcept |
◆ LottieAnimation() [3/3]
| pulp::canvas::LottieAnimation::LottieAnimation |
( |
const LottieAnimation & | | ) |
|
|
delete |
◆ duration_seconds()
| double pulp::canvas::LottieAnimation::duration_seconds |
( |
| ) |
const |
|
noexcept |
◆ frame_rate()
| double pulp::canvas::LottieAnimation::frame_rate |
( |
| ) |
const |
|
noexcept |
◆ intrinsic_height()
| float pulp::canvas::LottieAnimation::intrinsic_height |
( |
| ) |
const |
|
noexcept |
Authored composition height.
◆ intrinsic_width()
| float pulp::canvas::LottieAnimation::intrinsic_width |
( |
| ) |
const |
|
noexcept |
Authored composition width.
◆ load_file()
| bool pulp::canvas::LottieAnimation::load_file |
( |
const std::string & | path | ) |
|
Load a Lottie animation from a .json file path.
◆ load_json()
| bool pulp::canvas::LottieAnimation::load_json |
( |
const std::string & | json | ) |
|
Load a Lottie animation from a JSON string.
Returns false on parse failure or when support is not compiled in.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ render()
| void pulp::canvas::LottieAnimation::render |
( |
Canvas & | canvas, |
|
|
double | t_seconds, |
|
|
float | x, |
|
|
float | y, |
|
|
float | w, |
|
|
float | h ) |
Render the frame at t_seconds (clamped to [0, duration]) into the rectangle (x, y, w, h) on canvas.
No-op when invalid, when w/h are non-positive, or when the canvas has no image pipeline.
◆ supported()
| bool pulp::canvas::LottieAnimation::supported |
( |
| ) |
|
|
staticnoexcept |
True when Lottie support is compiled in (PULP_HAS_LOTTIE).
◆ valid()
| bool pulp::canvas::LottieAnimation::valid |
( |
| ) |
const |
|
noexcept |
The documentation for this class was generated from the following file: