1 /** 2 * @file lv_lottie_private.h 3 * 4 */ 5 6 #ifndef LV_LOTTIE_PRIVATE_H 7 #define LV_LOTTIE_PRIVATE_H 8 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 13 /********************* 14 * INCLUDES 15 *********************/ 16 17 #include "../../lv_conf_internal.h" 18 #if LV_USE_LOTTIE 19 20 #include "lv_lottie.h" 21 #include "../canvas/lv_canvas_private.h" 22 23 /********************* 24 * DEFINES 25 *********************/ 26 27 /********************** 28 * TYPEDEFS 29 **********************/ 30 31 #if LV_USE_THORVG_EXTERNAL 32 #include <thorvg_capi.h> 33 #else 34 #include "../../libs/thorvg/thorvg_capi.h" 35 #endif 36 37 typedef struct { 38 lv_canvas_t canvas; 39 Tvg_Paint * tvg_paint; 40 Tvg_Canvas * tvg_canvas; 41 Tvg_Animation * tvg_anim; 42 lv_anim_t * anim; 43 int32_t last_rendered_time; 44 } lv_lottie_t; 45 46 /********************** 47 * GLOBAL PROTOTYPES 48 **********************/ 49 50 /********************** 51 * MACROS 52 **********************/ 53 54 #endif /*LV_LOTTIE_H*/ 55 56 #ifdef __cplusplus 57 } /*extern "C"*/ 58 #endif 59 60 #endif /*LV_LOTTIE_PRIVATE_H*/ 61