forked from enlightenment/efl
Elm_Animation_View: Add elm_animation_view_frame_count_get api
Summary: elm_animation_view_frame_count_get is return to the total number of frames of vector. Test Plan: N/A Reviewers: Hermet Subscribers: cedric, #reviewers, #committers, smohanty, SanghyeonLee Tags: #efl Differential Revision: https://phab.enlightenment.org/D7616
This commit is contained in:
parent
845c0f8908
commit
0d3591b21c
|
@ -562,6 +562,14 @@ elm_animation_view_is_playing_back(const Elm_Animation_View *obj)
|
|||
return pd->play_back;
|
||||
}
|
||||
|
||||
EAPI int
|
||||
elm_animation_view_frame_count_get(const Elm_Animation_View *obj)
|
||||
{
|
||||
ELM_ANIMATION_VIEW_DATA_GET(obj, pd);
|
||||
if (!pd) return 0;
|
||||
return evas_object_vg_animated_frame_count_get(pd->vg);
|
||||
}
|
||||
|
||||
/* Internal EO APIs and hidden overrides */
|
||||
|
||||
#define ELM_ANIMATION_VIEW_EXTRA_OPS \
|
||||
|
|
|
@ -68,4 +68,15 @@ EAPI Elm_Animation_View_State elm_animation_view_state_get(const Elm_Animation_V
|
|||
*/
|
||||
EAPI Eina_Bool elm_animation_view_is_playing_back(const Elm_Animation_View *obj);
|
||||
|
||||
/**
|
||||
* @brief Get the total number of frames of the animation view, if it's animated.
|
||||
*
|
||||
* @return The number of frames. 0, if it's not animated.
|
||||
*
|
||||
* @ingroup Elm_Animation_View
|
||||
*
|
||||
* @since 1.22
|
||||
*/
|
||||
EAPI int elm_animation_view_frame_count_get(const Elm_Animation_View *obj);
|
||||
|
||||
#include "elm_animation_view.eo.legacy.h"
|
||||
|
|
Loading…
Reference in New Issue