summaryrefslogtreecommitdiff
path: root/src/examples/evas
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2020-01-20 12:53:09 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2020-01-20 12:53:10 +0900
commit40b73758a05d159086b286f26ebd4d1da19da4f9 (patch)
tree3a5afd95af618378362bf36038c6f8f268a31aa4 /src/examples/evas
parentad633751997324274303176696cbfc14e1ecba5d (diff)
efl_canvas_animation: rename Animation_XXX to XXX_Animation
Summary: In animation classes, "Animation" is not used as a namespace but it is used as a prefix in the class names. e.g. Efl.Canvas.Animation_Alpha However, those classes are basically animation classes with different features. Therefore, "Animation" should be used as a postfix in the class names. e.g. Efl.Canvas.Animation_Alpha -> Efl.Canvas.Alpha_Animation However, for the easier usage of C APIs, c_prefix of animation classes are remained to be "efl_animation_xxx". Reviewers: segfaultxavi, bu5hm4n, zmike, Hermet, jsuya Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11108
Diffstat (limited to 'src/examples/evas')
-rw-r--r--src/examples/evas/efl-canvas-animation.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/examples/evas/efl-canvas-animation.c b/src/examples/evas/efl-canvas-animation.c
index cc24550dea..a9058c50d6 100644
--- a/src/examples/evas/efl-canvas-animation.c
+++ b/src/examples/evas/efl-canvas-animation.c
@@ -114,7 +114,7 @@ main(void)
114 Evas_Object *scale_rect = _new_rectangle_add(d.evas); 114 Evas_Object *scale_rect = _new_rectangle_add(d.evas);
115 efl_gfx_entity_geometry_set(scale_rect, EINA_RECT(50, 50, 50, 50)); 115 efl_gfx_entity_geometry_set(scale_rect, EINA_RECT(50, 50, 50, 50));
116 efl_canvas_object_animation_start(scale_rect, 116 efl_canvas_object_animation_start(scale_rect,
117 efl_new(EFL_CANVAS_ANIMATION_SCALE_CLASS, 117 efl_new(EFL_CANVAS_SCALE_ANIMATION_CLASS,
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),
@@ -125,7 +125,7 @@ main(void)
125 Evas_Object *scale_rect2 = _new_rectangle_add(d.evas); 125 Evas_Object *scale_rect2 = _new_rectangle_add(d.evas);
126 efl_gfx_entity_geometry_set(scale_rect2, EINA_RECT(50, 200, 50, 50)); 126 efl_gfx_entity_geometry_set(scale_rect2, EINA_RECT(50, 200, 50, 50));
127 efl_canvas_object_animation_start(scale_rect2, 127 efl_canvas_object_animation_start(scale_rect2,
128 efl_new(EFL_CANVAS_ANIMATION_SCALE_CLASS, 128 efl_new(EFL_CANVAS_SCALE_ANIMATION_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_play_count_set(efl_added, 0), 131 efl_animation_play_count_set(efl_added, 0),
@@ -136,7 +136,7 @@ main(void)
136 Evas_Object *scale_rect3 = _new_rectangle_add(d.evas); 136 Evas_Object *scale_rect3 = _new_rectangle_add(d.evas);
137 efl_gfx_entity_geometry_set(scale_rect3, EINA_RECT(50, 350, 50, 50)); 137 efl_gfx_entity_geometry_set(scale_rect3, EINA_RECT(50, 350, 50, 50));
138 efl_canvas_object_animation_start(scale_rect3, 138 efl_canvas_object_animation_start(scale_rect3,
139 efl_new(EFL_CANVAS_ANIMATION_SCALE_CLASS, 139 efl_new(EFL_CANVAS_SCALE_ANIMATION_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_play_count_set(efl_added, 4), 142 efl_animation_play_count_set(efl_added, 4),
@@ -147,7 +147,7 @@ main(void)
147 Evas_Object *scale_rect4 = _new_rectangle_add(d.evas); 147 Evas_Object *scale_rect4 = _new_rectangle_add(d.evas);
148 efl_gfx_entity_geometry_set(scale_rect4, EINA_RECT(200, 50, 50, 50)); 148 efl_gfx_entity_geometry_set(scale_rect4, EINA_RECT(200, 50, 50, 50));
149 efl_canvas_object_animation_start(scale_rect4, 149 efl_canvas_object_animation_start(scale_rect4,
150 efl_new(EFL_CANVAS_ANIMATION_SCALE_CLASS, 150 efl_new(EFL_CANVAS_SCALE_ANIMATION_CLASS,
151 efl_animation_scale_set(efl_added, EINA_VECTOR2(1.0, 1.0), EINA_VECTOR2(3.0, 3.0), scale_rect4, EINA_VECTOR2(0.5, 0.5)), 151 efl_animation_scale_set(efl_added, EINA_VECTOR2(1.0, 1.0), EINA_VECTOR2(3.0, 3.0), scale_rect4, EINA_VECTOR2(0.5, 0.5)),
152 efl_animation_duration_set(efl_added, 2.0), 152 efl_animation_duration_set(efl_added, 2.0),
153 efl_animation_final_state_keep_set(efl_added, EINA_TRUE) 153 efl_animation_final_state_keep_set(efl_added, EINA_TRUE)
@@ -159,7 +159,7 @@ main(void)
159 efl_gfx_color_set(scale_rect5, 255, 0, 0, 255); 159 efl_gfx_color_set(scale_rect5, 255, 0, 0, 255);
160 efl_gfx_entity_geometry_set(scale_rect5, EINA_RECT(200, 200, 50, 50)); 160 efl_gfx_entity_geometry_set(scale_rect5, EINA_RECT(200, 200, 50, 50));
161 efl_canvas_object_animation_start(scale_rect5, 161 efl_canvas_object_animation_start(scale_rect5,
162 efl_new(EFL_CANVAS_ANIMATION_SCALE_CLASS, 162 efl_new(EFL_CANVAS_SCALE_ANIMATION_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_play_count_set(efl_added, 0) 165 efl_animation_play_count_set(efl_added, 0)