[access] move mouse postion if an object has a highlight by highlight_cycle(); not...
[framework/uifw/elementary.git] / src / examples / layout_example.edc
1 collections {
2
3    group {
4       name: "example/mylayout";
5
6       data {
7          item: "title" "Layout Example 01";
8       }
9
10       parts {
11          part {
12             name: "example/title";
13             type: TEXT;
14
15             description {
16                state: "default" 0.0;
17                color: 0 0 0 255;
18                rel1 {
19                   relative: 0.0 0.0;
20                   offset: 0 0;
21                }
22                rel2 {
23                   relative: 1.0 0.2;
24                   offset: -1 -1;
25                }
26                text {
27                   text: "bla";
28                   size: 16;
29                   font: "sans";
30                   min: 1 1;
31                }
32             }
33          }
34
35          part {
36             name: "example/custom";
37             type: SWALLOW;
38
39             description {
40                state: "default" 0.0;
41                fixed: 1 1;
42
43                rel1 {
44                   relative: 0.25 0.8;
45                   offset: 0 0;
46                }
47                rel2 {
48                   relative: 0.75 0.9;
49                   offset: -1 -1;
50                }
51             }
52          } // example/custom
53
54          part {
55             name: "example/box";
56             type: BOX;
57
58             description {
59                state: "default" 0.0;
60
61                box {
62                   layout: "horizontal_flow";
63                   padding: 2 2;
64                   align: 0.5 0.5;
65                   min: 1 1;
66                }
67                rel1 {
68                   relative: 0.0 0.2;
69                   offset: 0 0;
70                }
71                rel2 {
72                   relative: 1.0 0.5;
73                   offset: -1 -1;
74                }
75             }
76          } // example/box
77
78          part {
79             name: "example/table";
80             type: TABLE;
81
82             description {
83                state: "default" 0.0;
84
85                table {
86                   homogeneous: NONE;
87                   padding: 2 2;
88                   align: 0.5 0.5;
89                   min: 1 1;
90                }
91                rel1 {
92                   relative: 0.0 0.5;
93                   offset: 0 0;
94                }
95                rel2 {
96                   relative: 1.0 0.7;
97                   offset: -1 -1;
98                }
99             }
100          } // example/table
101       }
102    }
103
104    group {
105       name: "example/mylayout3";
106
107       data {
108          item: "title" "Layout Example 03";
109       }
110
111       parts {
112          part {
113             name: "example/title";
114             type: TEXT;
115
116                description {
117                state: "default" 0.0;
118                color: 0 0 0 255;
119                rel1 {
120                   relative: 0.0 0.0;
121                   offset: 0 0;
122                }
123                rel2 {
124                   relative: 1.0 0.2;
125                   offset: -1 -1;
126                }
127                text {
128                   text: "bla";
129                   size: 16;
130                   font: "sans";
131                   min: 1 1;
132                }
133             }
134          }
135
136          part {
137             name: "example/custom";
138             type: SWALLOW;
139
140             description {
141                state: "default" 0.0;
142                min: 160 50;
143                max: 160 50;
144                align: 0.5 1.0;
145             }
146             description {
147                state: "big" 0.0;
148                inherit: "default" 0.0;
149                min: 320 100;
150                max: 320 100;
151             }
152          } // example/custom
153
154          programs {
155             program {
156                name: "swallow,grow";
157                signal: "button,enlarge";
158                action: STATE_SET "big" 0.0;
159                transition: LINEAR 0.5;
160                target: "example/custom";
161                after: "emit,changed";
162             }
163             program {
164                name: "swallow,shrink";
165                signal: "button,reduce";
166                action: STATE_SET "default" 0.0;
167                transition: LINEAR 0.5;
168                target: "example/custom";
169                after: "emit,changed";
170             }
171             program {
172                name: "emit,changed";
173                action: SIGNAL_EMIT "size,changed" "";
174             }
175          }
176       }
177    }
178 }