summaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
authorXavi Artigas <xavierartigas@yahoo.es>2019-12-04 17:25:45 +0100
committerXavi Artigas <xavierartigas@yahoo.es>2019-12-04 17:43:31 +0100
commitb179e397d66c29712a7c38254b8c67daa6a77dc0 (patch)
treee34a69af8c9a172e84aee4dbe70c2f573b8495f3 /src/examples
parent44b532425915aeaf97637db96053e03b2b97bfa7 (diff)
Efl.Canvas.Animation: Rename repeat_count to play_count
Summary: play_count is a tad simpler to understand, since it means the TOTAL number of times the animation will play. The default value is now 1, and 0 means INFINITE (instead of -1). This allows removing yet another constant from header files. Depends on D10799 Test Plan: Everything builds and passes tests. Elm_test Animation.Repeat has been adjusted accordingly. Reviewers: bu5hm4n Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10800
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/evas/efl-canvas-animation.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/examples/evas/efl-canvas-animation.c b/src/examples/evas/efl-canvas-animation.c
index 2cc2355956..cc24550dea 100644
--- a/src/examples/evas/efl-canvas-animation.c
+++ b/src/examples/evas/efl-canvas-animation.c
@@ -118,7 +118,7 @@ main(void)
118 efl_animation_scale_set(efl_added, EINA_VECTOR2(1.0, 1.0), EINA_VECTOR2(3.0, 3.0), scale_rect, EINA_VECTOR2(0.5, 0.5)), 118 efl_animation_scale_set(efl_added, EINA_VECTOR2(1.0, 1.0), EINA_VECTOR2(3.0, 3.0), scale_rect, EINA_VECTOR2(0.5, 0.5)),
119 efl_animation_start_delay_set(efl_added, 5.0), 119 efl_animation_start_delay_set(efl_added, 5.0),
120 efl_animation_duration_set(efl_added, 2.0), 120 efl_animation_duration_set(efl_added, 2.0),
121 efl_animation_repeat_count_set(efl_added, EFL_ANIMATION_REPEAT_INFINITE) 121 efl_animation_play_count_set(efl_added, 0)
122 ), 122 ),
123 1.0, 0.0); 123 1.0, 0.0);
124 124
@@ -128,7 +128,7 @@ main(void)
128 efl_new(EFL_CANVAS_ANIMATION_SCALE_CLASS, 128 efl_new(EFL_CANVAS_ANIMATION_SCALE_CLASS,
129 efl_animation_scale_set(efl_added, EINA_VECTOR2(1.0, 1.0), EINA_VECTOR2(3.0, 3.0), scale_rect2, EINA_VECTOR2(0.5, 0.5)), 129 efl_animation_scale_set(efl_added, EINA_VECTOR2(1.0, 1.0), EINA_VECTOR2(3.0, 3.0), scale_rect2, EINA_VECTOR2(0.5, 0.5)),
130 efl_animation_duration_set(efl_added, 2.0), 130 efl_animation_duration_set(efl_added, 2.0),
131 efl_animation_repeat_count_set(efl_added, EFL_ANIMATION_REPEAT_INFINITE), 131 efl_animation_play_count_set(efl_added, 0),
132 efl_animation_repeat_mode_set(efl_added, EFL_CANVAS_ANIMATION_REPEAT_MODE_REVERSE) 132 efl_animation_repeat_mode_set(efl_added, EFL_CANVAS_ANIMATION_REPEAT_MODE_REVERSE)
133 ), 133 ),
134 1.0, 0.0); 134 1.0, 0.0);
@@ -139,7 +139,7 @@ main(void)
139 efl_new(EFL_CANVAS_ANIMATION_SCALE_CLASS, 139 efl_new(EFL_CANVAS_ANIMATION_SCALE_CLASS,
140 efl_animation_scale_set(efl_added, EINA_VECTOR2(1.0, 1.0), EINA_VECTOR2(3.0, 3.0), scale_rect3, EINA_VECTOR2(0.5, 0.5)), 140 efl_animation_scale_set(efl_added, EINA_VECTOR2(1.0, 1.0), EINA_VECTOR2(3.0, 3.0), scale_rect3, EINA_VECTOR2(0.5, 0.5)),
141 efl_animation_duration_set(efl_added, 2.0), 141 efl_animation_duration_set(efl_added, 2.0),
142 efl_animation_repeat_count_set(efl_added, 3), 142 efl_animation_play_count_set(efl_added, 4),
143 efl_animation_repeat_mode_set(efl_added, EFL_CANVAS_ANIMATION_REPEAT_MODE_REVERSE) 143 efl_animation_repeat_mode_set(efl_added, EFL_CANVAS_ANIMATION_REPEAT_MODE_REVERSE)
144 ), 144 ),
145 1.0, 0.0); 145 1.0, 0.0);
@@ -162,7 +162,7 @@ main(void)
162 efl_new(EFL_CANVAS_ANIMATION_SCALE_CLASS, 162 efl_new(EFL_CANVAS_ANIMATION_SCALE_CLASS,
163 efl_animation_scale_set(efl_added, EINA_VECTOR2(1.0, 1.0), EINA_VECTOR2(5.0, 5.0), scale_rect5, EINA_VECTOR2(0.5, 0.5)), 163 efl_animation_scale_set(efl_added, EINA_VECTOR2(1.0, 1.0), EINA_VECTOR2(5.0, 5.0), scale_rect5, EINA_VECTOR2(0.5, 0.5)),
164 efl_animation_duration_set(efl_added, 5.0), 164 efl_animation_duration_set(efl_added, 5.0),
165 efl_animation_repeat_count_set(efl_added, EFL_ANIMATION_REPEAT_INFINITE) 165 efl_animation_play_count_set(efl_added, 0)
166 ), 166 ),
167 1.0, 0.0); 167 1.0, 0.0);
168 d.current_speed = 1.0; 168 d.current_speed = 1.0;