summaryrefslogtreecommitdiff
path: root/src/examples/edje
diff options
context:
space:
mode:
authorkumar navneet <k.navneet@samsung.com>2015-05-18 11:01:24 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-05-18 11:04:11 +0200
commit4db130a680b01960d0f1a5f4fcbdb355b13185f5 (patch)
tree062d869a8d7480baf7861535002c2ff6a0e4a912 /src/examples/edje
parentbe5eb3f2dead798da7bfb7a4a02a7065cf9ab550 (diff)
edje: add set_state_anim API to embryo script.
Summary: Issue: Current embryo script do not provide any mechanism to set transition type in animation Solution: A new API set_state_anim is added. Signed-Off by: Kumar Navneet <k.navneet@samsung.com> Signed-Off by: Shilpa Singh <shilpa.singh@samsung.com> Test Plan: A test edc (embryo_set_state_anim.edc) is added to edje examples to test set_state_anim API. Reviewers: shilpasingh, raster, cedric Reviewed By: cedric Subscribers: poornima.srinivasan, cedric Differential Revision: https://phab.enlightenment.org/D2470 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/examples/edje')
-rw-r--r--src/examples/edje/embryo_set_state_anim.edc52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/examples/edje/embryo_set_state_anim.edc b/src/examples/edje/embryo_set_state_anim.edc
new file mode 100644
index 0000000000..a302ef677e
--- /dev/null
+++ b/src/examples/edje/embryo_set_state_anim.edc
@@ -0,0 +1,52 @@
1collections {
2 group { name: "main";
3 script{
4 public test(val, Float:pos)
5 {
6 set_state_anim(PART:"red_rect", "default", 1.0, ACCELERATE, pos);
7 }
8 }
9 parts {
10 part { name: "bg";
11 type: RECT;
12 description { state: "default" 0.0;
13 color: 255 255 255 255;
14 }
15 }
16 part { name: "label";
17 type: TEXT;
18 description { state: "default" 0.0;
19 color: 0 0 0 255;
20 text {
21 text: "Click me.";
22 font: "Sans";
23 size: 12;
24 align: 0.0 0.7;
25 }
26 }
27 }
28 part { name: "red_rect";
29 type: RECT;
30 description { state: "default" 0.0;
31 color: 0 0 255 255;
32 max: 30 30;
33 align: 0.1 0.2;
34 }
35 description { state: "default" 1.0;
36 inherit: "default" 0.0;
37 color: 0 0 255 255;
38 align: 0.9 0.2;
39 }
40 }
41 }
42 programs {
43 program {
44 signal: "mouse,down,1";
45 source: "label";
46 script {
47 anim(0.9, "test", 1);
48 }
49 }
50 }
51 }
52}