aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/edje/src/examples/box.edc
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/edje/src/examples/box.edc')
-rw-r--r--libraries/edje/src/examples/box.edc142
1 files changed, 142 insertions, 0 deletions
diff --git a/libraries/edje/src/examples/box.edc b/libraries/edje/src/examples/box.edc
new file mode 100644
index 0000000..79d04a8
--- /dev/null
+++ b/libraries/edje/src/examples/box.edc
@@ -0,0 +1,142 @@
1collections {
2
3 group {
4 name: "example/group";
5
6 parts {
7 part {
8 name: "bg";
9 type: RECT;
10
11 description {
12 state: "default" 0.0;
13 color: 128 128 128 255;
14 rel1.offset: 20 20;
15 rel2.offset: -21 -21;
16 }
17 }
18
19 part {
20 name: "example/title";
21 type: TEXT;
22
23 description {
24 state: "default" 0.0;
25 color: 0 0 0 255;
26 rel1 {
27 relative: 0.0 0.0;
28 offset: 0 0;
29 to: "bg";
30 }
31 rel2 {
32 relative: 1.0 0.2;
33 offset: -1 -1;
34 to: "bg";
35 }
36 text {
37 text: "Box Example";
38 size: 16;
39 font: "sans";
40 min: 1 1;
41 }
42 }
43 }
44
45 part {
46 name: "example/box";
47 type: BOX;
48
49 description {
50 state: "default" 0.0;
51
52 box {
53 layout: "horizontal_flow";
54 padding: 2 2;
55 align: 0.5 0.5;
56 min: 1 1;
57 }
58 rel1 {
59 relative: 0.0 0.2;
60 offset: 0 0;
61 to: "bg";
62 }
63 rel2 {
64 relative: 1.0 1.0;
65 offset: -1 -61;
66 to: "bg";
67 }
68 }
69 } // example/box
70 }
71 }
72
73 group {
74 name: "example/group2";
75
76 parts {
77 part {
78 name: "bg";
79 type: RECT;
80
81 description {
82 state: "default" 0.0;
83 color: 128 128 128 255;
84 rel1.offset: 20 20;
85 rel2.offset: -21 -21;
86 }
87 }
88
89 part {
90 name: "example/title";
91 type: TEXT;
92
93 description {
94 state: "default" 0.0;
95 color: 0 0 0 255;
96 rel1 {
97 relative: 0.0 0.0;
98 offset: 0 0;
99 to: "bg";
100 }
101 rel2 {
102 relative: 1.0 0.2;
103 offset: -1 -1;
104 to: "bg";
105 }
106 text {
107 text: "Box Example 2";
108 size: 16;
109 font: "sans";
110 min: 1 1;
111 }
112 }
113 }
114
115 part {
116 name: "example/box";
117 type: BOX;
118
119 description {
120 state: "default" 0.0;
121
122 box {
123 layout: "custom_layout";
124 padding: 2 2;
125 align: 0.5 0.5;
126 min: 1 1;
127 }
128 rel1 {
129 relative: 0.0 0.2;
130 offset: 0 0;
131 to: "bg";
132 }
133 rel2 {
134 relative: 1.0 1.0;
135 offset: -1 -61;
136 to: "bg";
137 }
138 }
139 } // example/box
140 }
141 }
142}