]> Pileus Git - ~andy/gtk/blob - gtk/gtkbuilder.rng
stylecontext: Do invalidation on first resize container
[~andy/gtk] / gtk / gtkbuilder.rng
1 <?xml version="1.0"?>
2 <grammar xmlns="http://relaxng.org/ns/structure/1.0" ns="">
3   <start>
4     <element name="interface">
5       <optional>
6         <attribute name="domain">
7           <text/>
8         </attribute>
9       </optional>
10       <zeroOrMore>
11         <choice>
12           <ref name="requires"/>
13           <ref name="object"/>
14           <ref name="menu"/>
15         </choice>
16       </zeroOrMore>
17     </element>
18   </start>
19   <define name="requires">
20     <element name="requires">
21       <attribute name="lib">
22         <text/>
23       </attribute>
24       <attribute name="version">
25         <text/>
26       </attribute>
27     </element>
28   </define>
29   <define name="object">
30     <element name="object">
31       <attribute name="id">
32         <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
33       </attribute>
34       <attribute name="class">
35         <text/>
36       </attribute>
37       <optional>
38         <attribute name="type-func">
39           <text/>
40         </attribute>
41       </optional>
42       <optional>
43         <attribute name="constructor">
44           <text/>
45         </attribute>
46       </optional>
47       <zeroOrMore>
48         <choice>
49           <ref name="property"/>
50           <ref name="signal"/>
51           <ref name="child"/>
52           <ref name="ANY"/>
53         </choice>
54       </zeroOrMore>
55     </element>
56   </define>
57   <define name="property">
58     <element name="property">
59       <attribute name="name">
60         <text/>
61       </attribute>
62       <optional>
63         <attribute name="translatable">
64           <choice>
65             <value>yes</value>
66             <value>no</value>
67           </choice>
68         </attribute>
69       </optional>
70       <optional>
71         <attribute name="comments">
72           <text/>
73         </attribute>
74       </optional>
75       <optional>
76         <attribute name="context">
77           <text/>
78         </attribute>
79       </optional>
80       <optional>
81         <text/>
82       </optional>
83     </element>
84   </define>
85   <define name="signal">
86     <element name="signal">
87       <attribute name="name">
88         <text/>
89       </attribute>
90       <attribute name="handler">
91         <text/>
92       </attribute>
93       <optional>
94         <attribute name="after">
95           <text/>
96         </attribute>
97       </optional>
98       <optional>
99         <attribute name="swapped">
100           <text/>
101         </attribute>
102       </optional>
103       <optional>
104         <attribute name="object">
105           <text/>
106         </attribute>
107       </optional>
108       <optional>
109         <attribute name="last_modification_time">
110           <text/>
111         </attribute>
112       </optional>
113       <empty/>
114     </element>
115   </define>
116   <define name="child">
117     <element name="child">
118       <optional>
119         <attribute name="type">
120           <text/>
121         </attribute>
122       </optional>
123       <optional>
124         <attribute name="internal-child">
125           <text/>
126         </attribute>
127       </optional>
128       <zeroOrMore>
129         <choice>
130           <ref name="object"/>
131           <ref name="ANY"/>
132         </choice>
133       </zeroOrMore>
134     </element>
135   </define>
136   <define name="menu">
137     <element name="menu">
138       <attribute name="id">
139         <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
140       </attribute>
141       <optional>
142         <attribute name="domain">
143           <text/>
144         </attribute>
145       </optional>
146       <zeroOrMore>
147         <choice>
148           <ref name="item"/>
149           <ref name="submenu"/>
150           <ref name="section"/>
151         </choice>
152       </zeroOrMore>
153     </element>
154   </define>
155   <define name="item">
156     <element name="item">
157       <optional>
158         <attribute name="id">
159           <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
160         </attribute>
161       </optional>
162       <zeroOrMore>
163         <choice>
164           <ref name="attribute_"/>
165           <ref name="link"/>
166         </choice>
167       </zeroOrMore>
168     </element>
169   </define>
170   <define name="attribute_">
171     <element name="attribute">
172       <attribute name="name">
173         <text/>
174       </attribute>
175       <optional>
176         <attribute name="type">
177           <text/>
178         </attribute>
179       </optional>
180       <optional>
181         <attribute name="translatable">
182           <choice>
183             <value>yes</value>
184             <value>no</value>
185           </choice>
186         </attribute>
187       </optional>
188       <optional>
189         <attribute name="context">
190           <text/>
191         </attribute>
192       </optional>
193       <optional>
194         <attribute name="comments">
195           <text/>
196         </attribute>
197       </optional>
198       <optional>
199         <text/>
200       </optional>
201     </element>
202   </define>
203   <define name="link">
204     <element name="link">
205       <optional>
206         <attribute name="id">
207           <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
208         </attribute>
209       </optional>
210       <attribute name="name">
211         <text/>
212       </attribute>
213       <zeroOrMore>
214         <ref name="item"/>
215       </zeroOrMore>
216     </element>
217   </define>
218   <define name="submenu">
219     <element name="submenu">
220       <optional>
221         <attribute name="id">
222           <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
223         </attribute>
224       </optional>
225       <zeroOrMore>
226         <choice>
227           <ref name="attribute_"/>
228           <ref name="item"/>
229           <ref name="submenu"/>
230           <ref name="section"/>
231         </choice>
232       </zeroOrMore>
233     </element>
234   </define>
235   <define name="section">
236     <element name="section">
237       <optional>
238         <attribute name="id">
239           <data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
240         </attribute>
241       </optional>
242       <zeroOrMore>
243         <choice>
244           <ref name="attribute_"/>
245           <ref name="item"/>
246           <ref name="submenu"/>
247           <ref name="section"/>
248         </choice>
249       </zeroOrMore>
250     </element>
251   </define>
252   <define name="ANY">
253     <element>
254       <anyName>
255         <except>
256           <name>interface</name>
257           <name>requires</name>
258           <name>object</name>
259           <name>property</name>
260           <name>signal</name>
261           <name>child</name>
262           <name>menu</name>
263           <name>item</name>
264           <name>attribute</name>
265           <name>link</name>
266           <name>submenu</name>
267           <name>section</name>
268         </except>
269       </anyName>
270       <zeroOrMore>
271         <attribute>
272           <anyName/>
273           <text/>
274         </attribute>
275       </zeroOrMore>
276       <interleave>
277         <zeroOrMore>
278           <ref name="ALL"/>
279         </zeroOrMore>
280         <optional>
281           <text/>
282         </optional>
283       </interleave>
284     </element>
285   </define>
286   <define name="ALL">
287     <element>
288       <anyName/>
289       <zeroOrMore>
290         <attribute>
291           <anyName/>
292           <text/>
293         </attribute>
294       </zeroOrMore>
295       <interleave>
296         <zeroOrMore>
297           <ref name="ALL"/>
298         </zeroOrMore>
299         <optional>
300           <text/>
301         </optional>
302       </interleave>
303     </element>
304   </define>
305 </grammar>