This theme file contains two groups.

Each of them is a different theme, and can be used by an Elementary Layout widget. A theme can be used more than once by many different Elementary Layout widgets too.


\begin{DoxyCodeInclude}
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                   ellipsis: -1;
32                \}
33             \}
34          \}
35 
36          part \{
37             name: "example/custom";
38             type: SWALLOW;
39 
40             description \{
41                state: "default" 0.0;
42                fixed: 1 1;
43 
44                rel1 \{
45                   relative: 0.25 0.8;
46                   offset: 0 0;
47                \}
48                rel2 \{
49                   relative: 0.75 0.9;
50                   offset: -1 -1;
51                \}
52             \}
53          \} // example/custom
54 
55          part \{
56             name: "example/box";
57             type: BOX;
58 
59             description \{
60                state: "default" 0.0;
61 
62                box \{
63                   layout: "horizontal\_flow";
64                   padding: 2 2;
65                   align: 0.5 0.5;
66                   min: 1 1;
67                \}
68                rel1 \{
69                   relative: 0.0 0.2;
70                   offset: 0 0;
71                \}
72                rel2 \{
73                   relative: 1.0 0.5;
74                   offset: -1 -1;
75                \}
76             \}
77          \} // example/box
78 
79          part \{
80             name: "example/table";
81             type: TABLE;
82 
83             description \{
84                state: "default" 0.0;
85 
86                table \{
87                   homogeneous: NONE;
88                   padding: 2 2;
89                   align: 0.5 0.5;
90                   min: 1 1;
91                \}
92                rel1 \{
93                   relative: 0.0 0.5;
94                   offset: 0 0;
95                \}
96                rel2 \{
97                   relative: 1.0 0.7;
98                   offset: -1 -1;
99                \}
100             \}
101          \} // example/table
102       \}
103    \}
104 
105    group \{
106       name: "example/mylayout3";
107 
108       data \{
109          item: "title" "Layout Example 03";
110       \}
111 
112       parts \{
113          part \{
114             name: "example/title";
115             type: TEXT;
116 
117                description \{
118                state: "default" 0.0;
119                color: 0 0 0 255;
120                rel1 \{
121                   relative: 0.0 0.0;
122                   offset: 0 0;
123                \}
124                rel2 \{
125                   relative: 1.0 0.2;
126                   offset: -1 -1;
127                \}
128                text \{
129                   text: "bla";
130                   size: 16;
131                   font: "sans";
132                   min: 1 1;
133                   ellipsis: -1;
134                \}
135             \}
136          \}
137 
138          part \{
139             name: "example/custom";
140             type: SWALLOW;
141 
142             description \{
143                state: "default" 0.0;
144                min: 160 50;
145                max: 160 50;
146                align: 0.5 1.0;
147             \}
148             description \{
149                state: "big" 0.0;
150                inherit: "default" 0.0;
151                min: 320 100;
152                max: 320 100;
153             \}
154          \} // example/custom
155 
156          programs \{
157             program \{
158                name: "swallow,grow";
159                signal: "button,enlarge";
160                action: STATE\_SET "big" 0.0;
161                transition: LINEAR 0.5;
162                target: "example/custom";
163                after: "emit,changed";
164             \}
165             program \{
166                name: "swallow,shrink";
167                signal: "button,reduce";
168                action: STATE\_SET "default" 0.0;
169                transition: LINEAR 0.5;
170                target: "example/custom";
171                after: "emit,changed";
172             \}
173             program \{
174                name: "emit,changed";
175                action: SIGNAL\_EMIT "size,changed" "";
176             \}
177          \}
178       \}
179    \}
180 \}
\end{DoxyCodeInclude}
 