diff options
author | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
commit | dd7595a3475407a7fa96a97393bae8c5220e8762 (patch) | |
tree | e341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/edje/src/examples/drag.edc | |
parent | Add the skeleton. (diff) | |
download | SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2 SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz |
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to '')
-rw-r--r-- | libraries/edje/src/examples/drag.edc | 89 |
1 files changed, 89 insertions, 0 deletions
diff --git a/libraries/edje/src/examples/drag.edc b/libraries/edje/src/examples/drag.edc new file mode 100644 index 0000000..b9247ec --- /dev/null +++ b/libraries/edje/src/examples/drag.edc | |||
@@ -0,0 +1,89 @@ | |||
1 | collections { | ||
2 | group { | ||
3 | name: "example/group"; | ||
4 | |||
5 | min: 160 160; | ||
6 | |||
7 | parts { | ||
8 | part { | ||
9 | name: "bg"; | ||
10 | type: RECT; | ||
11 | |||
12 | mouse_events: 0; | ||
13 | |||
14 | description { | ||
15 | state: "default" 0.0; | ||
16 | } | ||
17 | } // bg | ||
18 | |||
19 | part { | ||
20 | name: "title"; | ||
21 | type: TEXT; | ||
22 | mouse_events: 0; | ||
23 | |||
24 | description { | ||
25 | state: "default" 0.0; | ||
26 | color: 0 0 0 255; | ||
27 | rel1 { | ||
28 | relative: 0.0 0.0; | ||
29 | offset: 0 0; | ||
30 | to: "bg"; | ||
31 | } | ||
32 | rel2 { | ||
33 | relative: 1.0 0.2; | ||
34 | offset: -1 -1; | ||
35 | to: "bg"; | ||
36 | } | ||
37 | text { | ||
38 | text: "Drag Example"; | ||
39 | size: 16; | ||
40 | font: "sans"; | ||
41 | min: 1 1; | ||
42 | } | ||
43 | } | ||
44 | } | ||
45 | |||
46 | part { | ||
47 | name: "drag_area"; | ||
48 | type: RECT; | ||
49 | |||
50 | mouse_events: 0; | ||
51 | |||
52 | description { | ||
53 | state: "default" 0.0; | ||
54 | color: 0 0 0 255; | ||
55 | rel1 { | ||
56 | relative: 0.5 0.3; | ||
57 | offset: -5 0; | ||
58 | } | ||
59 | |||
60 | rel2 { | ||
61 | relative: 0.5 0.9; | ||
62 | offset: 4 0; | ||
63 | } | ||
64 | } | ||
65 | } // drag_area | ||
66 | |||
67 | part { | ||
68 | name: "example/knob"; | ||
69 | type: RECT; | ||
70 | |||
71 | mouse_events: 1; | ||
72 | |||
73 | dragable { | ||
74 | confine: "drag_area"; | ||
75 | x: 0 0 0; | ||
76 | y: 1 1 0; | ||
77 | } | ||
78 | |||
79 | description { | ||
80 | state: "default" 0.0; | ||
81 | |||
82 | color: 255 0 0 200; | ||
83 | |||
84 | } | ||
85 | } // example/knob | ||
86 | |||
87 | } | ||
88 | } | ||
89 | } | ||