ThorVG v1.0
Loading...
Searching...
No Matches
thorvg_lottie.h
1#ifndef _THORVG_LOTTIE_H_
2#define _THORVG_LOTTIE_H_
3
4#include "thorvg.h"
5
6namespace tvg
7{
8
20class TVG_API LottieAnimation final : public Animation
21{
22public:
23 ~LottieAnimation() override;
24
43 Result segment(const char* marker) noexcept;
44
59 Result tween(float from, float to, float progress) noexcept;
60
69 uint32_t markersCnt() noexcept;
70
81 const char* marker(uint32_t idx) noexcept;
82
100 Result assign(const char* layer, uint32_t ix, const char* var, float val);
101
118 uint32_t gen(const char* slot) noexcept;
119
134 Result apply(uint32_t id) noexcept;
135
150 Result del(uint32_t id) noexcept;
151
165 Result quality(uint8_t value) noexcept;
166
174 static LottieAnimation* gen() noexcept;
175
176 _TVG_DECLARE_PRIVATE(LottieAnimation);
177};
178
179} //namespace
180
181#endif //_THORVG_LOTTIE_H_
The LottieAnimation class enables control of advanced Lottie features.
Definition thorvg_lottie.h:21
Result tween(float from, float to, float progress) noexcept
Interpolates between two frames over a specified duration.
Result segment(const char *marker) noexcept
Specifies a segment by marker.
uint32_t markersCnt() noexcept
Gets the marker count of the animation.
Result
Enumeration specifying the result from the APIs.
Definition thorvg.h:95
The Animation class enables manipulation of animatable images.
Definition thorvg.h:2320