Efl.Ui.Animation_View: Implement sector playing feature
authorJunsuChoi <jsuya.choi@samsung.com>
Tue, 12 Nov 2019 05:30:25 +0000 (14:30 +0900)
committerJongmin Lee <jm105.lee@samsung.com>
Wed, 13 Nov 2019 21:13:02 +0000 (06:13 +0900)
commitc7fb6dd74f88d4ae2f5d024be59f8e648269269f
treeea469998d77c2f151feaca8b23224200769ceb4f
parentfab8f99097547ae74cccac2a0de56412f0d0a912
Efl.Ui.Animation_View: Implement sector playing feature

Summary:
play_sector method is API for playing section.
If the animation object has section information, user can play the section.
Get the start and end section name and get the frame of each section.
And set and play the min and max frames of the current animation object.

Depends on D10506

Test Plan:
For example. Animation objects have "first","second" and "third" sectors.
And sector "second" has duration information.

User can use it like this:
efl_ui_animation_view_play_sector(anim_view, "first", "second");
efl_ui_animation_view_play_sector(anim_view, "second", NULL);
efl_ui_animation_view_play_sector(anim_view, "first", NULL); // first sector ~ end frame of animation object.
efl_ui_animation_view_play_sector(anim_view, "second", "third");
efl_ui_animation_view_play_sector(anim_view, "second", "wrong name");

Reviewers: Hermet, smohanty, kimcinoo

Reviewed By: Hermet

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10507
src/lib/elementary/efl_ui_animation_view.c
src/lib/elementary/efl_ui_animation_view.eo