summaryrefslogtreecommitdiff
path: root/src/examples/evas/evas-vg-json.c
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2019-01-30 12:27:52 +0900
committerHermet Park <hermetpark@gmail.com>2019-01-30 12:27:52 +0900
commitf74bdf5ee333abee1a187273d4da7bef26e96fed (patch)
tree51617a8c826c12102aa6f24f5b5a8c8b8128a89e /src/examples/evas/evas-vg-json.c
parent05e0fa5459bebad3a78131d44d54eb2e4798bbea (diff)
efl_gfx_image_animation_controller: Rename '*.Image_Animation_*' to '*.Frame_*'
Summary: Efl.Gfx.Image_Animation_Controller name refers to the control of an animatable image. However, the method we use is closer to controlling the frame. We can change the name to Efl.Gfx.Frame_Controller and enhance the functionality of the frame control. efl_gfx_image_animation_controller: Applies name changed history Applies the change history changed from Efl.Gfx.Image_Animation_Controller to Efl.Gfx.Frame_Controller (409dcfb560e2c3006756787676c86160a226255c) Test Plan: N/A Reviewers: Hermet Reviewed By: Hermet Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D7820
Diffstat (limited to '')
-rw-r--r--src/examples/evas/evas-vg-json.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/examples/evas/evas-vg-json.c b/src/examples/evas/evas-vg-json.c
index 476b5e6689..bcce053719 100644
--- a/src/examples/evas/evas-vg-json.c
+++ b/src/examples/evas/evas-vg-json.c
@@ -41,9 +41,9 @@ running_cb(void *data EINA_UNUSED, const Efl_Event *event)
41 int i; 41 int i;
42 for (i = 0; i < 4; i++) 42 for (i = 0; i < 4; i++)
43 { 43 {
44 double frameCnt = (double) efl_gfx_image_animated_frame_get(gvg[i]); 44 double frameCnt = (double) efl_gfx_frame_controller_frame_get(gvg[i]);
45 int frame = (int) (frameCnt * (progress / 1)); 45 int frame = (int) (frameCnt * (progress / 1));
46 efl_gfx_image_animated_frame_set(gvg[i], frame); 46 efl_gfx_frame_controller_frame_set(gvg[i], frame);
47 } 47 }
48} 48}
49 49
@@ -109,7 +109,7 @@ main(void)
109 109
110 //Play custom animation 110 //Play custom animation
111 Eo *anim = efl_add(EFL_CANVAS_ANIMATION_CLASS, evas); 111 Eo *anim = efl_add(EFL_CANVAS_ANIMATION_CLASS, evas);
112 efl_animation_duration_set(anim, efl_gfx_image_animated_frame_duration_get(vg, 0, 0)); 112 efl_animation_duration_set(anim, efl_gfx_frame_controller_frame_duration_get(vg, 0, 0));
113 113
114 Eo *player = efl_add(EFL_CANVAS_ANIMATION_PLAYER_CLASS, evas); 114 Eo *player = efl_add(EFL_CANVAS_ANIMATION_PLAYER_CLASS, evas);
115 efl_animation_player_animation_set(player, anim); 115 efl_animation_player_animation_set(player, anim);