summaryrefslogtreecommitdiff
path: root/src/examples/edje
diff options
context:
space:
mode:
authorCedric Bail <cedric.bail@samsung.com>2013-07-19 15:39:49 +0900
committerCedric Bail <cedric.bail@samsung.com>2013-07-19 15:40:11 +0900
commitcf9b0180d62ffc2341364499ea3a0b756bc2675a (patch)
tree150e6f4610d97a36ad2e3ee3736bf7349ac2c4af /src/examples/edje
parente7862929e4aa5217b634f08dc7ea387781e157ea (diff)
edje: add threshold to draggable part.
Diffstat (limited to 'src/examples/edje')
-rw-r--r--src/examples/edje/Makefile.am1
-rw-r--r--src/examples/edje/edje-threshold.edc87
2 files changed, 88 insertions, 0 deletions
diff --git a/src/examples/edje/Makefile.am b/src/examples/edje/Makefile.am
index fc3ec351b1..5d5dfa8589 100644
--- a/src/examples/edje/Makefile.am
+++ b/src/examples/edje/Makefile.am
@@ -11,6 +11,7 @@ endif
11 11
12#put here all EDCs one needs to the examples 12#put here all EDCs one needs to the examples
13EDCS = \ 13EDCS = \
14edje-threshold.edc \
14animations2.edc \ 15animations2.edc \
15animations.edc \ 16animations.edc \
16basic2.edc \ 17basic2.edc \
diff --git a/src/examples/edje/edje-threshold.edc b/src/examples/edje/edje-threshold.edc
new file mode 100644
index 0000000000..1216c2bbdd
--- /dev/null
+++ b/src/examples/edje/edje-threshold.edc
@@ -0,0 +1,87 @@
1collections {
2 group {
3 name: "main";
4 parts {
5 part {
6 type: RECT;
7 name: background;
8 mouse_events: 0;
9 description {
10 color: 0 0 0 255;
11 }
12 }
13 part {
14 type: RECT;
15 name: "area/vertical";
16 mouse_events: 0;
17 description {
18 color: 255 0 0 255;
19 align: 0.5 0;
20 min: 20 30;
21 max: 20 -1;
22 }
23 }
24 part {
25 type: RECT;
26 name: "area/horizontal";
27 mouse_events: 0;
28 description {
29 color: 255 0 0 255;
30 align: 0 0.5;
31 min: 30 20;
32 max: -1 20;
33 }
34 }
35 part {
36 type: RECT;
37 name: "threshold/horizontal";
38 mouse_events: 0;
39 description {
40 color: 0 0 255 255;
41 rel1 {
42 to: "drag/horizontal";
43 offset: -13 -13;
44 }
45 rel2 {
46 to: "drag/horizontal";
47 offset: +12 +12;
48 }
49 }
50 }
51 part {
52 type: RECT;
53 name: "drag/horizontal";
54 mouse_events: 1;
55 dragable {
56 confine: "area/horizontal";
57 threshold: "threshold/horizontal";
58 x: 1 1 0;
59 y: 0 0 0;
60 }
61 description {
62 aspect: 1 1;
63 color: 0 255 0 255;
64 min: 20 20;
65 max: 20 20;
66 }
67 }
68 part {
69 type: RECT;
70 name: "drag/vertical";
71 mouse_events: 1;
72 dragable {
73 confine: "area/vertical";
74 threshold: "threshold/horizontal";
75 x: 0 0 0;
76 y: 1 1 0;
77 }
78 description {
79 aspect: 1 1;
80 color: 0 255 255 255;
81 min: 20 20;
82 max: 20 20;
83 }
84 }
85 }
86 }
87}