1 /*
2  * Distributed under the Boost Software License, Version 1.0.
3  *    (See accompanying file LICENSE_1_0.txt or copy at
4  *          http://www.boost.org/LICENSE_1_0.txt)
5  */
6 module gobject.glib_types;
7 
8 import gobject.gtype;
9 
10 import glib;
11 
12 // /* --- GLib boxed types --- */
13 // /**
14 //  * G_TYPE_DATE:
15 //  *
16 //  * The #GType for #GDate.
17 //  */
18 // #define G_TYPE_DATE (g_date_get_type ())
19 //
20 // /**
21 //  * G_TYPE_STRV:
22 //  *
23 //  * The #GType for a boxed type holding a %NULL-terminated array of strings.
24 //  *
25 //  * The code fragments in the following example show the use of a property of
26 //  * type #G_TYPE_STRV with g_object_class_install_property(), g_object_set()
27 //  * and g_object_get().
28 //  *
29 //  * |[
30 //  * g_object_class_install_property (object_class,
31 //  *                                  PROP_AUTHORS,
32 //  *                                  g_param_spec_boxed ("authors",
33 //  *                                                      _("Authors"),
34 //  *                                                      _("List of authors"),
35 //  *                                                      G_TYPE_STRV,
36 //  *                                                      G_PARAM_READWRITE));
37 //  *
38 //  * gchar *authors[] = { "Owen", "Tim", NULL };
39 //  * g_object_set (obj, "authors", authors, NULL);
40 //  *
41 //  * gchar *writers[];
42 //  * g_object_get (obj, "authors", &writers, NULL);
43 //  * /* do something with writers */
44 //  * g_strfreev (writers);
45 //  * ]|
46 //  *
47 //  * Since: 2.4
48 //  */
49 // #define G_TYPE_STRV (g_strv_get_type ())
50 //
51 // /**
52 //  * G_TYPE_GSTRING:
53 //  *
54 //  * The #GType for #GString.
55 //  */
56 // #define G_TYPE_GSTRING (g_gstring_get_type ())
57 //
58 // /**
59 //  * G_TYPE_HASH_TABLE:
60 //  *
61 //  * The #GType for a boxed type holding a #GHashTable reference.
62 //  *
63 //  * Since: 2.10
64 //  */
65 // #define G_TYPE_HASH_TABLE (g_hash_table_get_type ())
66 //
67 // /**
68 //  * G_TYPE_REGEX:
69 //  *
70 //  * The #GType for a boxed type holding a #GRegex reference.
71 //  *
72 //  * Since: 2.14
73 //  */
74 // #define G_TYPE_REGEX (g_regex_get_type ())
75 //
76 // /**
77 //  * G_TYPE_MATCH_INFO:
78 //  *
79 //  * The #GType for a boxed type holding a #GMatchInfo reference.
80 //  *
81 //  * Since: 2.30
82 //  */
83 // #define G_TYPE_MATCH_INFO (g_match_info_get_type ())
84 //
85 // /**
86 //  * G_TYPE_ARRAY:
87 //  *
88 //  * The #GType for a boxed type holding a #GArray reference.
89 //  *
90 //  * Since: 2.22
91 //  */
92 // #define G_TYPE_ARRAY (g_array_get_type ())
93 //
94 // /**
95 //  * G_TYPE_BYTE_ARRAY:
96 //  *
97 //  * The #GType for a boxed type holding a #GByteArray reference.
98 //  *
99 //  * Since: 2.22
100 //  */
101 // #define G_TYPE_BYTE_ARRAY (g_byte_array_get_type ())
102 //
103 // /**
104 //  * G_TYPE_PTR_ARRAY:
105 //  *
106 //  * The #GType for a boxed type holding a #GPtrArray reference.
107 //  *
108 //  * Since: 2.22
109 //  */
110 // #define G_TYPE_PTR_ARRAY (g_ptr_array_get_type ())
111 //
112 // /**
113 //  * G_TYPE_BYTES:
114 //  *
115 //  * The #GType for #GBytes.
116 //  *
117 //  * Since: 2.32
118 //  */
119 // #define G_TYPE_BYTES (g_bytes_get_type ())
120 //
121 // /**
122 //  * G_TYPE_VARIANT_TYPE:
123 //  *
124 //  * The #GType for a boxed type holding a #GVariantType.
125 //  *
126 //  * Since: 2.24
127 //  */
128 // #define G_TYPE_VARIANT_TYPE (g_variant_type_get_gtype ())
129 //
130 // /**
131 //  * G_TYPE_ERROR:
132 //  *
133 //  * The #GType for a boxed type holding a #GError.
134 //  *
135 //  * Since: 2.26
136 //  */
137 // #define G_TYPE_ERROR (g_error_get_type ())
138 //
139 // /**
140 //  * G_TYPE_DATE_TIME:
141 //  *
142 //  * The #GType for a boxed type holding a #GDateTime.
143 //  *
144 //  * Since: 2.26
145 //  */
146 // #define G_TYPE_DATE_TIME (g_date_time_get_type ())
147 //
148 // /**
149 //  * G_TYPE_TIME_ZONE:
150 //  *
151 //  * The #GType for a boxed type holding a #GTimeZone.
152 //  *
153 //  * Since: 2.34
154 //  */
155 // #define G_TYPE_TIME_ZONE (g_time_zone_get_type ())
156 //
157 // /**
158 //  * G_TYPE_IO_CHANNEL:
159 //  *
160 //  * The #GType for #GIOChannel.
161 //  */
162 // #define G_TYPE_IO_CHANNEL (g_io_channel_get_type ())
163 //
164 // /**
165 //  * G_TYPE_IO_CONDITION:
166 //  *
167 //  * The #GType for #GIOCondition.
168 //  */
169 // #define G_TYPE_IO_CONDITION (g_io_condition_get_type ())
170 //
171 // /**
172 //  * G_TYPE_VARIANT_BUILDER:
173 //  *
174 //  * The #GType for a boxed type holding a #GVariantBuilder.
175 //  *
176 //  * Since: 2.30
177 //  */
178 // #define G_TYPE_VARIANT_BUILDER (g_variant_builder_get_type ())
179 //
180 // /**
181 //  * G_TYPE_VARIANT_DICT:
182 //  *
183 //  * The #GType for a boxed type holding a #GVariantDict.
184 //  *
185 //  * Since: 2.40
186 //  */
187 // #define G_TYPE_VARIANT_DICT (g_variant_dict_get_type ())
188 //
189 // /**
190 //  * G_TYPE_MAIN_LOOP:
191 //  *
192 //  * The #GType for a boxed type holding a #GMainLoop.
193 //  *
194 //  * Since: 2.30
195 //  */
196 // #define G_TYPE_MAIN_LOOP (g_main_loop_get_type ())
197 //
198 // /**
199 //  * G_TYPE_MAIN_CONTEXT:
200 //  *
201 //  * The #GType for a boxed type holding a #GMainContext.
202 //  *
203 //  * Since: 2.30
204 //  */
205 // #define G_TYPE_MAIN_CONTEXT (g_main_context_get_type ())
206 //
207 // /**
208 //  * G_TYPE_SOURCE:
209 //  *
210 //  * The #GType for a boxed type holding a #GSource.
211 //  *
212 //  * Since: 2.30
213 //  */
214 // #define G_TYPE_SOURCE (g_source_get_type ())
215 //
216 // /**
217 //  * G_TYPE_POLLFD:
218 //  *
219 //  * The #GType for a boxed type holding a #GPollFD.
220 //  *
221 //  * Since: 2.36
222 //  */
223 // #define G_TYPE_POLLFD (g_pollfd_get_type ())
224 //
225 // /**
226 //  * G_TYPE_MARKUP_PARSE_CONTEXT:
227 //  *
228 //  * The #GType for a boxed type holding a #GMarkupParseContext.
229 //  *
230 //  * Since: 2.36
231 //  */
232 // #define G_TYPE_MARKUP_PARSE_CONTEXT (g_markup_parse_context_get_type ())
233 //
234 // /**
235 //  * G_TYPE_KEY_FILE:
236 //  *
237 //  * The #GType for a boxed type holding a #GKeyFile.
238 //  *
239 //  * Since: 2.32
240 //  */
241 // #define G_TYPE_KEY_FILE (g_key_file_get_type ())
242 //
243 // /**
244 //  * G_TYPE_MAPPED_FILE:
245 //  *
246 //  * The #GType for a boxed type holding a #GMappedFile.
247 //  *
248 //  * Since: 2.40
249 //  */
250 // #define G_TYPE_MAPPED_FILE (g_mapped_file_get_type ())
251 //
252 // /**
253 //  * G_TYPE_THREAD:
254 //  *
255 //  * The #GType for a boxed type holding a #GThread.
256 //  *
257 //  * Since: 2.36
258 //  */
259 // #define G_TYPE_THREAD (g_thread_get_type ())
260 //
261 // /**
262 //  * G_TYPE_CHECKSUM:
263 //  *
264 //  * The #GType for a boxed type holding a #GChecksum.
265 //  *
266 //  * Since: 2.36
267 //  */
268 // #define G_TYPE_CHECKSUM (g_checksum_get_type ())
269 
270 
271 extern(C):
272 
273 pure GType   g_date_get_type            ();
274 
275 pure GType   g_strv_get_type            ();
276 
277 pure GType   g_gstring_get_type         ();
278 
279 pure GType   g_hash_table_get_type      ();
280 
281 pure GType   g_array_get_type           ();
282 
283 pure GType   g_byte_array_get_type      ();
284 
285 pure GType   g_ptr_array_get_type       ();
286 
287 pure GType   g_bytes_get_type           ();
288 
289 pure GType   g_variant_type_get_gtype   ();
290 
291 pure GType   g_regex_get_type           ();
292 
293 pure GType   g_match_info_get_type      ();
294 
295 pure GType   g_error_get_type           ();
296 
297 pure GType   g_date_time_get_type       ();
298 
299 pure GType   g_time_zone_get_type       ();
300 
301 pure GType   g_io_channel_get_type      ();
302 
303 pure GType   g_io_condition_get_type    ();
304 
305 pure GType   g_variant_builder_get_type ();
306 
307 pure GType   g_variant_dict_get_type    ();
308 
309 pure GType   g_key_file_get_type        ();
310 
311 pure GType   g_main_loop_get_type       ();
312 
313 pure GType   g_main_context_get_type    ();
314 
315 pure GType   g_source_get_type          ();
316 
317 pure GType   g_pollfd_get_type          ();
318 
319 pure GType   g_thread_get_type          ();
320 
321 pure GType   g_checksum_get_type        ();
322 
323 pure GType   g_markup_parse_context_get_type ();
324 
325 pure GType   g_mapped_file_get_type ();
326 
327 deprecated("use G_TYPE_VARIANT")
328 pure GType   g_variant_get_gtype        ();
329 
330 
331 alias GStrv = gchar**;
332