summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorkumar navneet <k.navneet@samsung.com>2015-05-18 15:22:00 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-05-18 15:22:02 +0900
commitc38e477364081c81c3edb05e78ca2962314e015c (patch)
treebbef5d2d91cdd637de99f8a5a103238427edeee6 /data
parentf3c78cd69ec28793fcbc8b5e8bf626b15eafe096 (diff)
set_tween_state_anim API added.
Summary: Issue: Current embryo script do not provide any mechanism to set transition type in animation, by default supports only linear e.g: set_tween_state API Solution: To not break backward compatibility, a new API set_tween_state_anim is added in which we can even specify type of transition required. Signed-Off by: Kumar Navneet <k.navneet@samsung.com> Signed-Off by: Shilpa Singh <shilpa.singh@samsung.com> Test Plan: A test edc (embryo_tween_anim.edc) is added to edje examples to test set_tween_state_anim API. Reviewers: raster, cedric, shilpasingh, Hermet Reviewed By: shilpasingh Subscribers: poornima.srinivasan, SubodhKumar, rajeshps, cedric, govi Differential Revision: https://phab.enlightenment.org/D2344
Diffstat (limited to 'data')
-rw-r--r--data/edje/include/edje.inc25
1 files changed, 25 insertions, 0 deletions
diff --git a/data/edje/include/edje.inc b/data/edje/include/edje.inc
index 5758cc39b0..6842db51ba 100644
--- a/data/edje/include/edje.inc
+++ b/data/edje/include/edje.inc
@@ -290,3 +290,28 @@ native physics_stop (part_id);
290 290
291native physics_set_rotation (part_id, Float:w, Float:x, Float:y, Float:z); 291native physics_set_rotation (part_id, Float:w, Float:x, Float:y, Float:z);
292native physics_get_rotation (part_id, &Float:w, &Float:x, &Float:y, &Float:z); 292native physics_get_rotation (part_id, &Float:w, &Float:x, &Float:y, &Float:z);
293
294enum Anim_Param
295{
296 LIN = 1,
297 LINEAR = 1,
298 SIN = 2,
299 SINUSOIDAL = 2,
300 ACCEL = 3,
301 ACCELERATE = 3,
302 DECEL = 4,
303 DECELERATE = 4,
304 ACCEL_FAC = 5,
305 ACCELERATE_FACTOR = 5,
306 DECEL_FAC = 6,
307 DECELERATE_FACTOR = 6,
308 SIN_FAC = 7,
309 SINUSOIDAL_FACTOR = 7,
310 DIVIS = 8,
311 DIVISOR_INTERP = 8,
312 BOUNCE = 9,
313 SPRING = 10,
314 CUBIC_BEZIER = 11,
315};
316
317native set_tween_state_anim (part_id, state1[], Float:state1_val, state2[], Float:state2_val, Anim_Param:p, Float:tween, ...);