summaryrefslogtreecommitdiff
path: root/src/lib/evas/canvas/efl_canvas_animation_private.h
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/lib/evas/canvas/efl_canvas_animation_private.h
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/lib/evas/canvas/efl_canvas_animation_private.h')
-rw-r--r--src/lib/evas/canvas/efl_canvas_animation_private.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/efl_canvas_animation_private.h b/src/lib/evas/canvas/efl_canvas_animation_private.h
index c8f0609103..9995d23589 100644
--- a/src/lib/evas/canvas/efl_canvas_animation_private.h
+++ b/src/lib/evas/canvas/efl_canvas_animation_private.h
@@ -10,7 +10,7 @@ typedef struct _Efl_Canvas_Animation_Data
10 double start_delay_time; 10 double start_delay_time;
11 11
12 Efl_Canvas_Animation_Repeat_Mode repeat_mode; 12 Efl_Canvas_Animation_Repeat_Mode repeat_mode;
13 int repeat_count; 13 int play_count;
14 14
15 Efl_Interpolator *interpolator; 15 Efl_Interpolator *interpolator;
16 16
@@ -25,4 +25,4 @@ typedef struct _Efl_Canvas_Animation_Data
25 25
26#define FINAL_STATE_IS_REVERSE(anim) \ 26#define FINAL_STATE_IS_REVERSE(anim) \
27 ((efl_animation_repeat_mode_get(anim) == EFL_CANVAS_ANIMATION_REPEAT_MODE_REVERSE) && \ 27 ((efl_animation_repeat_mode_get(anim) == EFL_CANVAS_ANIMATION_REPEAT_MODE_REVERSE) && \
28 (efl_animation_repeat_count_get(anim) & 1)) 28 (efl_animation_play_count_get(anim) & 1))