blob: 8d19112e7ae09599dcc16d0493de54369a03ad06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
<chapter id="gi-gir-reference">
<title>The GIR XML format</title>
<para>
This chapter describes the GIR XML markup format.
</para>
<refsect2 id="gi-gir-api">
<title><emphasis>api</emphasis> node</title>
The root node of all GIR documents is the api node.
Possible children: <link linkend="gi-gir-namespace">namespace</link>.
<example>
<title>A GIR fragment showing an api node</title>
<programlisting><![CDATA[
<api version="1.0">
<namespace/>
</api>]]></programlisting>
</example>
</refsect2>
<refsect2 id="gi-gir-namespace">
<title><emphasis>namespace</emphasis> node</title>
Parent node: <link linkend="gi-gir-api">api</link>.
Possible children: <link linkend="gi-gir-callback">callback</link>,
<link linkend="gi-gir-class">class</link>,
<link linkend="gi-gir-function">function</link>.
<link linkend="gi-gir-interface">interface</link>.
<example>
<title>A GIR fragment showing an namespace node</title>
<programlisting><![CDATA[
<api version="1.0">
<namespace="Gtk">
<class/>
<function/>
</namespace>
</api>]]></programlisting>
</example>
</refsect2>
<refsect2 id="gi-gir-class">
<title><emphasis>class</emphasis> node</title>
Parent node: <link linkend="gi-gir-namespace">namespace</link>.
Possible children: <link linkend="gi-gir-class">constructor</link>,
<link linkend="gi-gir-field">field</link>,
<link linkend="gi-gir-method">method</link>,
<link linkend="gi-gir-property">property</link>.
<example>
<title>A GIR fragment showing an class node</title>
<programlisting><![CDATA[
<api version="1.0">
<namespace="Gtk">
<class name="Widget">
<constructor/>
<field/>
<method/>
<property/>
<class>
</namespace>
</api>]]></programlisting>
</example>
</refsect2>
<refsect2 id="gi-gir-interface">
<title><emphasis>interface</emphasis> node</title>
Parent node: <link linkend="gi-gir-namespace">namespace</link>.
Possible children: <link linkend="gi-gir-field">field</link>,
<link linkend="gi-gir-method">method</link>,
<link linkend="gi-gir-property">property</link>.
<example>
<title>A GIR fragment showing an interface node</title>
<programlisting><![CDATA[
<api version="1.0">
<namespace="Gtk">
<interface name="Buildable">
<field/>
<method/>
<property/>
<interface>
</namespace>
</api>]]></programlisting>
</example>
</refsect2>
<refsect2 id="gi-gir-function">
<title><emphasis>function</emphasis> node</title>
Parent node: <link linkend="gi-gir-namespace">namespace</link>.
<example>
<title>A GIR fragment showing an function node</title>
<programlisting><![CDATA[
<api version="1.0">
<namespace="Gtk">
<function name="init">
</function>
</namespace>
</api>]]></programlisting>
</example>
</refsect2>
</chapter>
|