elementary animation_view: updated doc.

frame number is more clear than frame index.
This commit is contained in:
Hermet Park 2019-01-16 10:37:49 +09:00
parent ca715ad43f
commit 83a254434a
2 changed files with 5 additions and 5 deletions

View File

@ -513,9 +513,9 @@ _elm_animation_view_keyframe_get(const Eo *obj EINA_UNUSED, Elm_Animation_View_D
}
EOLIAN static void
_elm_animation_view_frame_set(Eo *obj EINA_UNUSED, Elm_Animation_View_Data *pd, int frame)
_elm_animation_view_frame_set(Eo *obj EINA_UNUSED, Elm_Animation_View_Data *pd, int frame_num)
{
elm_animation_view_keyframe_set(obj, (double) frame / (double) (evas_object_vg_animated_frame_count_get(pd->vg) - 1));
elm_animation_view_keyframe_set(obj, (double) frame_num / (double) (evas_object_vg_animated_frame_count_get(pd->vg) - 1));
}
EOLIAN static int

View File

@ -82,16 +82,16 @@ class Elm.Animation_View (Efl.Ui.Widget, Efl.Gfx.View, Efl.Ui.Legacy, Efl.File)
}
@property frame {
//FIXME : frame_count need add '@' symbol after add eo method frame_count.
[[Index of the current frame of an animated animation view.
[[Number of current frame.
Ranges from 0 to frame_count - 1.
]]
set {
[[Set the frame to current frame of an animation view object.]]
[[Set the current frame of an animation view object.]]
}
get {}
values {
frame: int; [[The index of current frame.]]
frame_num: int; [[Current frame number.]]
}
}
play {