4 #ifndef EFL_BETA_API_SUPPORT
5 #define EFL_BETA_API_SUPPORT
8 #ifndef EFL_EO_API_SUPPORT
9 #define EFL_EO_API_SUPPORT
16 #include <Ecore_Evas.h>
17 #include"lottieplayer.h"
22 enum class RepeatMode {
26 LottieView(Evas *evas, bool renderMode = true, bool asyncRender = true);
28 void setSize(int w, int h);
29 void setPos(int x, int y);
30 void setFilePath(const char *filePath);
34 void setSpeed(float speed) { mSpeed = speed;}
35 void setRepeatCount(int count);
36 void setRepeatMode(LottieView::RepeatMode mode);
45 void createVgNode(LOTNode *node, Efl_VG *parent);
46 void update(const std::vector<LOTNode *> &);
55 LottieView::RepeatMode mRepeatMode;
56 lotplayer::LOTPlayer *mPlayer;
57 Ecore_Animator *mAnimator{nullptr};
68 std::future<bool> mRenderTask;