summaryrefslogtreecommitdiff
path: root/src/examples/edje
diff options
context:
space:
mode:
authorkumar navneet <k.navneet@samsung.com>2015-05-19 12:37:13 +0200
committerCedric BAIL <cedric@osg.samsung.com>2015-05-19 14:17:00 +0200
commitacc481336587e362e095e61702078289bd978dcd (patch)
tree2575589e526fa6f114b2a82228245226e6ed0f57 /src/examples/edje
parentb9cd26c906970d3ccdd7508e2a903a89ef5c630e (diff)
edje: add cubic bezier transition example.
Summary: Example was missing for cubic bezier transition, hence added the same. Signed-Off By: Shilpa Singh <shilpa.singh@samsung.com> Test Plan: bezier-transition-example.edc added Reviewers: shilpasingh, cedric Subscribers: poornima.srinivasan, cedric Differential Revision: https://phab.enlightenment.org/D2533 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/examples/edje')
-rw-r--r--src/examples/edje/Makefile.am4
-rw-r--r--src/examples/edje/bezier-transition-example.edc52
2 files changed, 55 insertions, 1 deletions
diff --git a/src/examples/edje/Makefile.am b/src/examples/edje/Makefile.am
index 6b8e3cbee0..cdf1ac316b 100644
--- a/src/examples/edje/Makefile.am
+++ b/src/examples/edje/Makefile.am
@@ -47,7 +47,9 @@ table.edc \
47text.edc \ 47text.edc \
48toggle_using_filter.edc \ 48toggle_using_filter.edc \
49box_example.edc \ 49box_example.edc \
50embryo_tween_anim.edc 50embryo_tween_anim.edc \
51embryo_set_state_anim.edc \
52bezier-transition-example.edc
51 53
52DIST_EDCS = $(EDCS) 54DIST_EDCS = $(EDCS)
53 55
diff --git a/src/examples/edje/bezier-transition-example.edc b/src/examples/edje/bezier-transition-example.edc
new file mode 100644
index 0000000000..b07fc28829
--- /dev/null
+++ b/src/examples/edje/bezier-transition-example.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, CUBIC_BEZIER, pos, 0.27, 1.29, 1, -0.25);
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(5.5, "test", 1);
48 }
49 }
50 }
51 }
52}