Lines Matching refs:animation
831 TVG_API Tvg_Result tvg_animation_set_frame(Tvg_Animation* animation, float no) in tvg_animation_set_frame() argument
833 if (!animation) return TVG_RESULT_INVALID_ARGUMENT; in tvg_animation_set_frame()
834 return (Tvg_Result) reinterpret_cast<Animation*>(animation)->frame(no); in tvg_animation_set_frame()
838 TVG_API Tvg_Result tvg_animation_get_frame(Tvg_Animation* animation, float* no) in tvg_animation_get_frame() argument
840 if (!animation || !no) return TVG_RESULT_INVALID_ARGUMENT; in tvg_animation_get_frame()
841 *no = reinterpret_cast<Animation*>(animation)->curFrame(); in tvg_animation_get_frame()
846 TVG_API Tvg_Result tvg_animation_get_total_frame(Tvg_Animation* animation, float* cnt) in tvg_animation_get_total_frame() argument
848 if (!animation || !cnt) return TVG_RESULT_INVALID_ARGUMENT; in tvg_animation_get_total_frame()
849 *cnt = reinterpret_cast<Animation*>(animation)->totalFrame(); in tvg_animation_get_total_frame()
854 TVG_API Tvg_Paint* tvg_animation_get_picture(Tvg_Animation* animation) in tvg_animation_get_picture() argument
856 if (!animation) return nullptr; in tvg_animation_get_picture()
857 return (Tvg_Paint*) reinterpret_cast<Animation*>(animation)->picture(); in tvg_animation_get_picture()
861 TVG_API Tvg_Result tvg_animation_get_duration(Tvg_Animation* animation, float* duration) in tvg_animation_get_duration() argument
863 if (!animation || !duration) return TVG_RESULT_INVALID_ARGUMENT; in tvg_animation_get_duration()
864 *duration = reinterpret_cast<Animation*>(animation)->duration(); in tvg_animation_get_duration()
869 TVG_API Tvg_Result tvg_animation_set_segment(Tvg_Animation* animation, float start, float end) in tvg_animation_set_segment() argument
871 if (!animation) return TVG_RESULT_INVALID_ARGUMENT; in tvg_animation_set_segment()
872 return (Tvg_Result) reinterpret_cast<Animation*>(animation)->segment(start, end); in tvg_animation_set_segment()
876 TVG_API Tvg_Result tvg_animation_get_segment(Tvg_Animation* animation, float* start, float* end) in tvg_animation_get_segment() argument
878 if (!animation) return TVG_RESULT_INVALID_ARGUMENT; in tvg_animation_get_segment()
879 return (Tvg_Result) reinterpret_cast<Animation*>(animation)->segment(start, end); in tvg_animation_get_segment()
883 TVG_API Tvg_Result tvg_animation_del(Tvg_Animation* animation) in tvg_animation_del() argument
885 if (!animation) return TVG_RESULT_INVALID_ARGUMENT; in tvg_animation_del()
886 delete(reinterpret_cast<Animation*>(animation)); in tvg_animation_del()
914 TVG_API Tvg_Result tvg_lottie_animation_override(Tvg_Animation* animation, const char* slot) in tvg_lottie_animation_override() argument
917 if (!animation) return TVG_RESULT_INVALID_ARGUMENT; in tvg_lottie_animation_override()
918 return (Tvg_Result) reinterpret_cast<LottieAnimation*>(animation)->override(slot); in tvg_lottie_animation_override()
924 TVG_API Tvg_Result tvg_lottie_animation_set_marker(Tvg_Animation* animation, const char* marker) in tvg_lottie_animation_set_marker() argument
927 if (!animation) return TVG_RESULT_INVALID_ARGUMENT; in tvg_lottie_animation_set_marker()
928 return (Tvg_Result) reinterpret_cast<LottieAnimation*>(animation)->segment(marker); in tvg_lottie_animation_set_marker()
934 TVG_API Tvg_Result tvg_lottie_animation_get_markers_cnt(Tvg_Animation* animation, uint32_t* cnt) in tvg_lottie_animation_get_markers_cnt() argument
937 if (!animation || !cnt) return TVG_RESULT_INVALID_ARGUMENT; in tvg_lottie_animation_get_markers_cnt()
938 *cnt = reinterpret_cast<LottieAnimation*>(animation)->markersCnt(); in tvg_lottie_animation_get_markers_cnt()
945 TVG_API Tvg_Result tvg_lottie_animation_get_marker(Tvg_Animation* animation, uint32_t idx, const ch… in tvg_lottie_animation_get_marker() argument
948 if (!animation || !name) return TVG_RESULT_INVALID_ARGUMENT; in tvg_lottie_animation_get_marker()
949 *name = reinterpret_cast<LottieAnimation*>(animation)->marker(idx); in tvg_lottie_animation_get_marker()