1 | /* GdkPixbuf library - GdkPixbuf Macros |
2 | * |
3 | * Copyright (C) 2016 Chun-wei Fan |
4 | * |
5 | * Authors: Chun-wei Fan <[email protected]> |
6 | * |
7 | * This library is free software; you can redistribute it and/or |
8 | * modify it under the terms of the GNU Lesser General Public |
9 | * License as published by the Free Software Foundation; either |
10 | * version 2 of the License, or (at your option) any later version. |
11 | * |
12 | * This library is distributed in the hope that it will be useful, |
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 | * Lesser General Public License for more details. |
16 | * |
17 | * You should have received a copy of the GNU Lesser General Public |
18 | * License along with this library; if not, see <http://www.gnu.org/licenses/>. |
19 | */ |
20 | |
21 | #if defined(GDK_PIXBUF_DISABLE_SINGLE_INCLUDES) && !defined (GDK_PIXBUF_H_INSIDE) && !defined (GDK_PIXBUF_COMPILATION) |
22 | #error "Only <gdk-pixbuf/gdk-pixbuf.h> can be included directly." |
23 | #endif |
24 | |
25 | #ifndef GDK_PIXBUF_MACROS_H |
26 | #define GDK_PIXBUF_MACROS_H |
27 | |
28 | #include <glib.h> |
29 | |
30 | #include <gdk-pixbuf/gdk-pixbuf-features.h> |
31 | |
32 | /** |
33 | * GDK_PIXBUF_CHECK_VERSION: |
34 | * @major: major version (e.g. 2 for version 2.34.0) |
35 | * @minor: minor version (e.g. 34 for version 2.34.0) |
36 | * @micro: micro version (e.g. 0 for version 2.34.0) |
37 | * |
38 | * Macro to test the version of GdkPixbuf being compiled against. |
39 | * |
40 | * Returns: %TRUE if the version of the GdkPixbuf header files |
41 | * is the same as or newer than the passed-in version. |
42 | * |
43 | * Since: 2.36 |
44 | */ |
45 | #define GDK_PIXBUF_CHECK_VERSION(major, minor, micro) \ |
46 | (GDK_PIXBUF_MAJOR > (major) || \ |
47 | (GDK_PIXBUF_MAJOR == (major) && GDK_PIXBUF_MINOR > (minor)) || \ |
48 | (GDK_PIXBUF_MAJOR == (major) && GDK_PIXBUF_MINOR == (minor) && \ |
49 | GDK_PIXBUF_MICRO >= (micro))) |
50 | |
51 | /** |
52 | * GDK_PIXBUF_VERSION_2_0: |
53 | * |
54 | * A macro that evaluates to the 2.0 version of GdkPixbuf, |
55 | * in a format that can be used by the C pre-processor. |
56 | * |
57 | * Since: 2.36 |
58 | */ |
59 | #define GDK_PIXBUF_VERSION_2_0 (G_ENCODE_VERSION (2, 0)) |
60 | |
61 | /** |
62 | * GDK_PIXBUF_VERSION_2_2: |
63 | * |
64 | * A macro that evaluates to the 2.2 version of GdkPixbuf, |
65 | * in a format that can be used by the C pre-processor. |
66 | * |
67 | * Since: 2.36 |
68 | */ |
69 | #define GDK_PIXBUF_VERSION_2_2 (G_ENCODE_VERSION (2, 2)) |
70 | |
71 | /** |
72 | * GDK_PIXBUF_VERSION_2_4: |
73 | * |
74 | * A macro that evaluates to the 2.4 version of GdkPixbuf, |
75 | * in a format that can be used by the C pre-processor. |
76 | * |
77 | * Since: 2.36 |
78 | */ |
79 | #define GDK_PIXBUF_VERSION_2_4 (G_ENCODE_VERSION (2, 4)) |
80 | |
81 | /** |
82 | * GDK_PIXBUF_VERSION_2_6: |
83 | * |
84 | * A macro that evaluates to the 2.6 version of GdkPixbuf, |
85 | * in a format that can be used by the C pre-processor. |
86 | * |
87 | * Since: 2.36 |
88 | */ |
89 | #define GDK_PIXBUF_VERSION_2_6 (G_ENCODE_VERSION (2, 6)) |
90 | |
91 | /** |
92 | * GDK_PIXBUF_VERSION_2_8: |
93 | * |
94 | * A macro that evaluates to the 2.8 version of GdkPixbuf, |
95 | * in a format that can be used by the C pre-processor. |
96 | * |
97 | * Since: 2.36 |
98 | */ |
99 | #define GDK_PIXBUF_VERSION_2_8 (G_ENCODE_VERSION (2, 8)) |
100 | |
101 | /** |
102 | * GDK_PIXBUF_VERSION_2_10: |
103 | * |
104 | * A macro that evaluates to the 2.10 version of GdkPixbuf, |
105 | * in a format that can be used by the C pre-processor. |
106 | * |
107 | * Since: 2.36 |
108 | */ |
109 | #define GDK_PIXBUF_VERSION_2_10 (G_ENCODE_VERSION (2, 10)) |
110 | |
111 | /** |
112 | * GDK_PIXBUF_VERSION_2_12: |
113 | * |
114 | * A macro that evaluates to the 2.12 version of GdkPixbuf, |
115 | * in a format that can be used by the C pre-processor. |
116 | * |
117 | * Since: 2.36 |
118 | */ |
119 | #define GDK_PIXBUF_VERSION_2_12 (G_ENCODE_VERSION (2, 12)) |
120 | |
121 | /** |
122 | * GDK_PIXBUF_VERSION_2_14: |
123 | * |
124 | * A macro that evaluates to the 2.14 version of GdkPixbuf, |
125 | * in a format that can be used by the C pre-processor. |
126 | * |
127 | * Since: 2.36 |
128 | */ |
129 | #define GDK_PIXBUF_VERSION_2_14 (G_ENCODE_VERSION (2, 14)) |
130 | |
131 | /** |
132 | * GDK_PIXBUF_VERSION_2_16: |
133 | * |
134 | * A macro that evaluates to the 2.16 version of GdkPixbuf, |
135 | * in a format that can be used by the C pre-processor. |
136 | * |
137 | * Since: 2.36 |
138 | */ |
139 | #define GDK_PIXBUF_VERSION_2_16 (G_ENCODE_VERSION (2, 16)) |
140 | |
141 | /** |
142 | * GDK_PIXBUF_VERSION_2_18: |
143 | * |
144 | * A macro that evaluates to the 2.18 version of GdkPixbuf, |
145 | * in a format that can be used by the C pre-processor. |
146 | * |
147 | * Since: 2.36 |
148 | */ |
149 | #define GDK_PIXBUF_VERSION_2_18 (G_ENCODE_VERSION (2, 18)) |
150 | |
151 | /** |
152 | * GDK_PIXBUF_VERSION_2_20: |
153 | * |
154 | * A macro that evaluates to the 2.20 version of GdkPixbuf, |
155 | * in a format that can be used by the C pre-processor. |
156 | * |
157 | * Since: 2.36 |
158 | */ |
159 | #define GDK_PIXBUF_VERSION_2_20 (G_ENCODE_VERSION (2, 20)) |
160 | |
161 | /** |
162 | * GDK_PIXBUF_VERSION_2_22: |
163 | * |
164 | * A macro that evaluates to the 2.22 version of GdkPixbuf, |
165 | * in a format that can be used by the C pre-processor. |
166 | * |
167 | * Since: 2.36 |
168 | */ |
169 | #define GDK_PIXBUF_VERSION_2_22 (G_ENCODE_VERSION (2, 22)) |
170 | |
171 | /** |
172 | * GDK_PIXBUF_VERSION_2_24: |
173 | * |
174 | * A macro that evaluates to the 2.24 version of GdkPixbuf, |
175 | * in a format that can be used by the C pre-processor. |
176 | * |
177 | * Since: 2.36 |
178 | */ |
179 | #define GDK_PIXBUF_VERSION_2_24 (G_ENCODE_VERSION (2, 24)) |
180 | |
181 | /** |
182 | * GDK_PIXBUF_VERSION_2_26: |
183 | * |
184 | * A macro that evaluates to the 2.26 version of GdkPixbuf, |
185 | * in a format that can be used by the C pre-processor. |
186 | * |
187 | * Since: 2.36 |
188 | */ |
189 | #define GDK_PIXBUF_VERSION_2_26 (G_ENCODE_VERSION (2, 26)) |
190 | |
191 | /** |
192 | * GDK_PIXBUF_VERSION_2_28: |
193 | * |
194 | * A macro that evaluates to the 2.28 version of GdkPixbuf, |
195 | * in a format that can be used by the C pre-processor. |
196 | * |
197 | * Since: 2.36 |
198 | */ |
199 | #define GDK_PIXBUF_VERSION_2_28 (G_ENCODE_VERSION (2, 28)) |
200 | |
201 | /** |
202 | * GDK_PIXBUF_VERSION_2_30: |
203 | * |
204 | * A macro that evaluates to the 2.30 version of GdkPixbuf, |
205 | * in a format that can be used by the C pre-processor. |
206 | * |
207 | * Since: 2.36 |
208 | */ |
209 | #define GDK_PIXBUF_VERSION_2_30 (G_ENCODE_VERSION (2, 30)) |
210 | |
211 | /** |
212 | * GDK_PIXBUF_VERSION_2_32: |
213 | * |
214 | * A macro that evaluates to the 2.32 version of GdkPixbuf, |
215 | * in a format that can be used by the C pre-processor. |
216 | * |
217 | * Since: 2.36 |
218 | */ |
219 | #define GDK_PIXBUF_VERSION_2_32 (G_ENCODE_VERSION (2, 32)) |
220 | |
221 | /** |
222 | * GDK_PIXBUF_VERSION_2_34: |
223 | * |
224 | * A macro that evaluates to the 2.34 version of GdkPixbuf, |
225 | * in a format that can be used by the C pre-processor. |
226 | * |
227 | * Since: 2.36 |
228 | */ |
229 | #define GDK_PIXBUF_VERSION_2_34 (G_ENCODE_VERSION (2, 34)) |
230 | |
231 | /** |
232 | * GDK_PIXBUF_VERSION_2_36: |
233 | * |
234 | * A macro that evaluates to the 2.36 version of GdkPixbuf, |
235 | * in a format that can be used by the C pre-processor. |
236 | * |
237 | * Since: 2.36 |
238 | */ |
239 | #define GDK_PIXBUF_VERSION_2_36 (G_ENCODE_VERSION (2, 36)) |
240 | |
241 | /** |
242 | * GDK_PIXBUF_VERSION_2_38: |
243 | * |
244 | * A macro that evaluates to the 2.38 version of GdkPixbuf, |
245 | * in a format that can be used by the C pre-processor. |
246 | * |
247 | * Since: 2.38 |
248 | */ |
249 | #define GDK_PIXBUF_VERSION_2_38 (G_ENCODE_VERSION (2, 38)) |
250 | |
251 | #ifndef __GTK_DOC_IGNORE__ |
252 | #if (GDK_PIXBUF_MINOR % 2) |
253 | #define GDK_PIXBUF_VERSION_CUR_STABLE (G_ENCODE_VERSION (GDK_PIXBUF_MAJOR, GDK_PIXBUF_MINOR + 1)) |
254 | #else |
255 | #define GDK_PIXBUF_VERSION_CUR_STABLE (G_ENCODE_VERSION (GDK_PIXBUF_MAJOR, GDK_PIXBUF_MINOR)) |
256 | #endif |
257 | #endif /* __GTK_DOC_IGNORE__ */ |
258 | |
259 | #ifndef __GTK_DOC_IGNORE__ |
260 | #if (GDK_PIXBUF_MINOR % 2) |
261 | #define GDK_PIXBUF_VERSION_PREV_STABLE (G_ENCODE_VERSION (GDK_PIXBUF_MAJOR, GDK_PIXBUF_MINOR - 1)) |
262 | #else |
263 | #define GDK_PIXBUF_VERSION_PREV_STABLE (G_ENCODE_VERSION (GDK_PIXBUF_MAJOR, GDK_PIXBUF_MINOR - 2)) |
264 | #endif |
265 | #endif /* __GTK_DOC_IGNORE__ */ |
266 | |
267 | /** |
268 | * GDK_PIXBUF_VERSION_MIN_REQUIRED: |
269 | * |
270 | * A macro that should be defined by the user prior to including |
271 | * the gdk-pixbuf.h header. |
272 | * The definition should be one of the predefined version |
273 | * macros: %GDK_PIXBUF_VERSION_2_0, %GDK_PIXBUF_VERSION_2_2, ... |
274 | * |
275 | * This macro defines the lower bound for the GdkPixbuf API to use. |
276 | * |
277 | * If a function has been deprecated in a newer version of GdkPixbuf, |
278 | * defining this symbol hides the compiler warnings for those functions |
279 | * without disabling warnings for the other deprecated functions. |
280 | * |
281 | * <warning> |
282 | * Warning: if you define this macro, do not forget to update it! Especially |
283 | * when writing new code. Otherwise you can miss the new deprecations. |
284 | * </warning> |
285 | * |
286 | * Since: 2.36 |
287 | */ |
288 | #ifndef GDK_PIXBUF_VERSION_MIN_REQUIRED |
289 | #define GDK_PIXBUF_VERSION_MIN_REQUIRED (GDK_PIXBUF_VERSION_CUR_STABLE) |
290 | #endif |
291 | |
292 | /** |
293 | * GDK_PIXBUF_VERSION_MAX_ALLOWED: |
294 | * |
295 | * A macro that should be defined by the user prior to including |
296 | * the gdk-pixbuf.h header. |
297 | * The definition should be one of the predefined version |
298 | * macros: %GDK_PIXBUF_VERSION_2_0, %GDK_PIXBUF_VERSION_2_2, ... |
299 | * |
300 | * This macro defines the upper bound for the GdkPixbuf API to use. |
301 | * |
302 | * If a function has been introduced in a newer version of GdkPixbuf, |
303 | * it is possible to use this symbol to get compiler warnings when |
304 | * trying to use that function. |
305 | * |
306 | * Since: 2.36 |
307 | */ |
308 | #ifndef GDK_PIXBUF_VERSION_MAX_ALLOWED |
309 | #if GDK_PIXBUF_VERSION_MIN_REQUIRED > GDK_PIXBUF_VERSION_PREV_STABLE |
310 | #define GDK_PIXBUF_VERSION_MAX_ALLOWED GDK_PIXBUF_VERSION_MIN_REQUIRED |
311 | #else |
312 | #define GDK_PIXBUF_VERSION_MAX_ALLOWED GDK_PIXBUF_VERSION_CUR_STABLE |
313 | #endif |
314 | #endif |
315 | |
316 | /* sanity checks */ |
317 | #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_MIN_REQUIRED |
318 | #error "GDK_PIXBUF_VERSION_MAX_ALLOWED must be >= GDK_PIXBUF_VERSION_MIN_REQUIRED" |
319 | #endif |
320 | #if GDK_PIXBUF_VERSION_MIN_REQUIRED < GDK_PIXBUF_VERSION_2_0 |
321 | #error "GDK_PIXBUF_VERSION_MIN_REQUIRED must be >= GDK_PIXBUF_VERSION_2_0" |
322 | #endif |
323 | |
324 | #ifndef __GTK_DOC_IGNORE__ |
325 | #define GDK_PIXBUF_AVAILABLE_IN_ALL _GDK_PIXBUF_EXTERN |
326 | #endif |
327 | |
328 | /* Every new stable minor release should add a set of macros here */ |
329 | |
330 | #ifndef __GTK_DOC_IGNORE__ |
331 | #if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_0 |
332 | #define GDK_PIXBUF_DEPRECATED_IN_2_0 G_DEPRECATED _GDK_PIXBUF_EXTERN |
333 | #define GDK_PIXBUF_DEPRECATED_IN_2_0_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN |
334 | #else |
335 | #define GDK_PIXBUF_DEPRECATED_IN_2_0 _GDK_PIXBUF_EXTERN |
336 | #define GDK_PIXBUF_DEPRECATED_IN_2_0_FOR(f) _GDK_PIXBUF_EXTERN |
337 | #endif |
338 | #endif /* __GTK_DOC_IGNORE__ */ |
339 | |
340 | #ifndef __GTK_DOC_IGNORE__ |
341 | #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_0 |
342 | #define GDK_PIXBUF_AVAILABLE_IN_2_0 G_UNAVAILABLE(2, 0) _GDK_PIXBUF_EXTERN |
343 | #else |
344 | #define GDK_PIXBUF_AVAILABLE_IN_2_0 _GDK_PIXBUF_EXTERN |
345 | #endif |
346 | #endif /* __GTK_DOC_IGNORE__ */ |
347 | |
348 | #ifndef __GTK_DOC_IGNORE__ |
349 | #if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_2 |
350 | #define GDK_PIXBUF_DEPRECATED_IN_2_2 G_DEPRECATED _GDK_PIXBUF_EXTERN |
351 | #define GDK_PIXBUF_DEPRECATED_IN_2_2_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN |
352 | #else |
353 | #define GDK_PIXBUF_DEPRECATED_IN_2_2 _GDK_PIXBUF_EXTERN |
354 | #define GDK_PIXBUF_DEPRECATED_IN_2_2_FOR(f) _GDK_PIXBUF_EXTERN |
355 | #endif |
356 | #endif /* __GTK_DOC_IGNORE__ */ |
357 | |
358 | #ifndef __GTK_DOC_IGNORE__ |
359 | #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_2 |
360 | #define GDK_PIXBUF_AVAILABLE_IN_2_2 G_UNAVAILABLE(2, 2) _GDK_PIXBUF_EXTERN |
361 | #else |
362 | #define GDK_PIXBUF_AVAILABLE_IN_2_2 _GDK_PIXBUF_EXTERN |
363 | #endif |
364 | #endif /* __GTK_DOC_IGNORE__ */ |
365 | |
366 | #ifndef __GTK_DOC_IGNORE__ |
367 | #if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_4 |
368 | #define GDK_PIXBUF_DEPRECATED_IN_2_4 G_DEPRECATED _GDK_PIXBUF_EXTERN |
369 | #define GDK_PIXBUF_DEPRECATED_IN_2_4_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN |
370 | #else |
371 | #define GDK_PIXBUF_DEPRECATED_IN_2_4 _GDK_PIXBUF_EXTERN |
372 | #define GDK_PIXBUF_DEPRECATED_IN_2_4_FOR(f) _GDK_PIXBUF_EXTERN |
373 | #endif |
374 | #endif /* __GTK_DOC_IGNORE__ */ |
375 | |
376 | #ifndef __GTK_DOC_IGNORE__ |
377 | #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_4 |
378 | #define GDK_PIXBUF_AVAILABLE_IN_2_4 G_UNAVAILABLE(2, 4) _GDK_PIXBUF_EXTERN |
379 | #else |
380 | #define GDK_PIXBUF_AVAILABLE_IN_2_4 _GDK_PIXBUF_EXTERN |
381 | #endif |
382 | #endif /* __GTK_DOC_IGNORE__ */ |
383 | |
384 | #ifndef __GTK_DOC_IGNORE__ |
385 | #if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_6 |
386 | #define GDK_PIXBUF_DEPRECATED_IN_2_6 G_DEPRECATED _GDK_PIXBUF_EXTERN |
387 | #define GDK_PIXBUF_DEPRECATED_IN_2_6_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN |
388 | #else |
389 | #define GDK_PIXBUF_DEPRECATED_IN_2_6 _GDK_PIXBUF_EXTERN |
390 | #define GDK_PIXBUF_DEPRECATED_IN_2_6_FOR(f) _GDK_PIXBUF_EXTERN |
391 | #endif |
392 | #endif /* __GTK_DOC_IGNORE__ */ |
393 | |
394 | #ifndef __GTK_DOC_IGNORE__ |
395 | #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_6 |
396 | #define GDK_PIXBUF_AVAILABLE_IN_2_6 G_UNAVAILABLE(2, 6) _GDK_PIXBUF_EXTERN |
397 | #else |
398 | #define GDK_PIXBUF_AVAILABLE_IN_2_6 _GDK_PIXBUF_EXTERN |
399 | #endif |
400 | #endif /* __GTK_DOC_IGNORE__ */ |
401 | |
402 | #ifndef __GTK_DOC_IGNORE__ |
403 | #if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_8 |
404 | #define GDK_PIXBUF_DEPRECATED_IN_2_8 G_DEPRECATED _GDK_PIXBUF_EXTERN |
405 | #define GDK_PIXBUF_DEPRECATED_IN_2_8_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN |
406 | #else |
407 | #define GDK_PIXBUF_DEPRECATED_IN_2_8 _GDK_PIXBUF_EXTERN |
408 | #define GDK_PIXBUF_DEPRECATED_IN_2_8_FOR(f) _GDK_PIXBUF_EXTERN |
409 | #endif |
410 | #endif /* __GTK_DOC_IGNORE__ */ |
411 | |
412 | #ifndef __GTK_DOC_IGNORE__ |
413 | #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_8 |
414 | #define GDK_PIXBUF_AVAILABLE_IN_2_8 G_UNAVAILABLE(2, 8) _GDK_PIXBUF_EXTERN |
415 | #else |
416 | #define GDK_PIXBUF_AVAILABLE_IN_2_8 _GDK_PIXBUF_EXTERN |
417 | #endif |
418 | #endif /* __GTK_DOC_IGNORE__ */ |
419 | |
420 | #ifndef __GTK_DOC_IGNORE__ |
421 | #if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_10 |
422 | #define GDK_PIXBUF_DEPRECATED_IN_2_10 G_DEPRECATED _GDK_PIXBUF_EXTERN |
423 | #define GDK_PIXBUF_DEPRECATED_IN_2_10_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN |
424 | #else |
425 | #define GDK_PIXBUF_DEPRECATED_IN_2_10 _GDK_PIXBUF_EXTERN |
426 | #define GDK_PIXBUF_DEPRECATED_IN_2_10_FOR(f) _GDK_PIXBUF_EXTERN |
427 | #endif |
428 | #endif /* __GTK_DOC_IGNORE__ */ |
429 | |
430 | #ifndef __GTK_DOC_IGNORE__ |
431 | #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_10 |
432 | #define GDK_PIXBUF_AVAILABLE_IN_2_10 G_UNAVAILABLE(2, 10) _GDK_PIXBUF_EXTERN |
433 | #else |
434 | #define GDK_PIXBUF_AVAILABLE_IN_2_10 _GDK_PIXBUF_EXTERN |
435 | #endif |
436 | #endif /* __GTK_DOC_IGNORE__ */ |
437 | |
438 | #ifndef __GTK_DOC_IGNORE__ |
439 | #if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_12 |
440 | #define GDK_PIXBUF_DEPRECATED_IN_2_12 G_DEPRECATED _GDK_PIXBUF_EXTERN |
441 | #define GDK_PIXBUF_DEPRECATED_IN_2_12_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN |
442 | #else |
443 | #define GDK_PIXBUF_DEPRECATED_IN_2_12 _GDK_PIXBUF_EXTERN |
444 | #define GDK_PIXBUF_DEPRECATED_IN_2_12_FOR(f) _GDK_PIXBUF_EXTERN |
445 | #endif |
446 | #endif /* __GTK_DOC_IGNORE__ */ |
447 | |
448 | #ifndef __GTK_DOC_IGNORE__ |
449 | #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_12 |
450 | #define GDK_PIXBUF_AVAILABLE_IN_2_12 G_UNAVAILABLE(2, 12) _GDK_PIXBUF_EXTERN |
451 | #else |
452 | #define GDK_PIXBUF_AVAILABLE_IN_2_12 _GDK_PIXBUF_EXTERN |
453 | #endif |
454 | #endif /* __GTK_DOC_IGNORE__ */ |
455 | |
456 | #ifndef __GTK_DOC_IGNORE__ |
457 | #if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_14 |
458 | #define GDK_PIXBUF_DEPRECATED_IN_2_14 G_DEPRECATED _GDK_PIXBUF_EXTERN |
459 | #define GDK_PIXBUF_DEPRECATED_IN_2_14_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN |
460 | #else |
461 | #define GDK_PIXBUF_DEPRECATED_IN_2_14 _GDK_PIXBUF_EXTERN |
462 | #define GDK_PIXBUF_DEPRECATED_IN_2_14_FOR(f) _GDK_PIXBUF_EXTERN |
463 | #endif |
464 | #endif /* __GTK_DOC_IGNORE__ */ |
465 | |
466 | #ifndef __GTK_DOC_IGNORE__ |
467 | #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_14 |
468 | #define GDK_PIXBUF_AVAILABLE_IN_2_14 G_UNAVAILABLE(2, 14) _GDK_PIXBUF_EXTERN |
469 | #else |
470 | #define GDK_PIXBUF_AVAILABLE_IN_2_14 _GDK_PIXBUF_EXTERN |
471 | #endif |
472 | #endif /* __GTK_DOC_IGNORE__ */ |
473 | |
474 | #ifndef __GTK_DOC_IGNORE__ |
475 | #if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_16 |
476 | #define GDK_PIXBUF_DEPRECATED_IN_2_16 G_DEPRECATED _GDK_PIXBUF_EXTERN |
477 | #define GDK_PIXBUF_DEPRECATED_IN_2_16_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN |
478 | #else |
479 | #define GDK_PIXBUF_DEPRECATED_IN_2_16 _GDK_PIXBUF_EXTERN |
480 | #define GDK_PIXBUF_DEPRECATED_IN_2_16_FOR(f) _GDK_PIXBUF_EXTERN |
481 | #endif |
482 | #endif /* __GTK_DOC_IGNORE__ */ |
483 | |
484 | #ifndef __GTK_DOC_IGNORE__ |
485 | #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_16 |
486 | #define GDK_PIXBUF_AVAILABLE_IN_2_16 G_UNAVAILABLE(2, 16) _GDK_PIXBUF_EXTERN |
487 | #else |
488 | #define GDK_PIXBUF_AVAILABLE_IN_2_16 _GDK_PIXBUF_EXTERN |
489 | #endif |
490 | #endif /* __GTK_DOC_IGNORE__ */ |
491 | |
492 | #ifndef __GTK_DOC_IGNORE__ |
493 | #if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_18 |
494 | #define GDK_PIXBUF_DEPRECATED_IN_2_18 G_DEPRECATED _GDK_PIXBUF_EXTERN |
495 | #define GDK_PIXBUF_DEPRECATED_IN_2_18_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN |
496 | #else |
497 | #define GDK_PIXBUF_DEPRECATED_IN_2_18 _GDK_PIXBUF_EXTERN |
498 | #define GDK_PIXBUF_DEPRECATED_IN_2_18_FOR(f) _GDK_PIXBUF_EXTERN |
499 | #endif |
500 | #endif /* __GTK_DOC_IGNORE__ */ |
501 | |
502 | #ifndef __GTK_DOC_IGNORE__ |
503 | #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_18 |
504 | #define GDK_PIXBUF_AVAILABLE_IN_2_18 G_UNAVAILABLE(2, 18) _GDK_PIXBUF_EXTERN |
505 | #else |
506 | #define GDK_PIXBUF_AVAILABLE_IN_2_18 _GDK_PIXBUF_EXTERN |
507 | #endif |
508 | #endif /* __GTK_DOC_IGNORE__ */ |
509 | |
510 | #ifndef __GTK_DOC_IGNORE__ |
511 | #if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_20 |
512 | #define GDK_PIXBUF_DEPRECATED_IN_2_20 G_DEPRECATED _GDK_PIXBUF_EXTERN |
513 | #define GDK_PIXBUF_DEPRECATED_IN_2_20_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN |
514 | #else |
515 | #define GDK_PIXBUF_DEPRECATED_IN_2_20 _GDK_PIXBUF_EXTERN |
516 | #define GDK_PIXBUF_DEPRECATED_IN_2_20_FOR(f) _GDK_PIXBUF_EXTERN |
517 | #endif |
518 | #endif /* __GTK_DOC_IGNORE__ */ |
519 | |
520 | #ifndef __GTK_DOC_IGNORE__ |
521 | #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_20 |
522 | #define GDK_PIXBUF_AVAILABLE_IN_2_20 G_UNAVAILABLE(2, 20) _GDK_PIXBUF_EXTERN |
523 | #else |
524 | #define GDK_PIXBUF_AVAILABLE_IN_2_20 _GDK_PIXBUF_EXTERN |
525 | #endif |
526 | #endif /* __GTK_DOC_IGNORE__ */ |
527 | |
528 | #ifndef __GTK_DOC_IGNORE__ |
529 | #if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_22 |
530 | #define GDK_PIXBUF_DEPRECATED_IN_2_22 G_DEPRECATED _GDK_PIXBUF_EXTERN |
531 | #define GDK_PIXBUF_DEPRECATED_IN_2_22_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN |
532 | #else |
533 | #define GDK_PIXBUF_DEPRECATED_IN_2_22 _GDK_PIXBUF_EXTERN |
534 | #define GDK_PIXBUF_DEPRECATED_IN_2_22_FOR(f) _GDK_PIXBUF_EXTERN |
535 | #endif |
536 | #endif /* __GTK_DOC_IGNORE__ */ |
537 | |
538 | #ifndef __GTK_DOC_IGNORE__ |
539 | #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_22 |
540 | #define GDK_PIXBUF_AVAILABLE_IN_2_22 G_UNAVAILABLE(2, 22) _GDK_PIXBUF_EXTERN |
541 | #else |
542 | #define GDK_PIXBUF_AVAILABLE_IN_2_22 _GDK_PIXBUF_EXTERN |
543 | #endif |
544 | #endif /* __GTK_DOC_IGNORE__ */ |
545 | |
546 | #ifndef __GTK_DOC_IGNORE__ |
547 | #if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_24 |
548 | #define GDK_PIXBUF_DEPRECATED_IN_2_24 G_DEPRECATED _GDK_PIXBUF_EXTERN |
549 | #define GDK_PIXBUF_DEPRECATED_IN_2_24_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN |
550 | #else |
551 | #define GDK_PIXBUF_DEPRECATED_IN_2_24 _GDK_PIXBUF_EXTERN |
552 | #define GDK_PIXBUF_DEPRECATED_IN_2_24_FOR(f) _GDK_PIXBUF_EXTERN |
553 | #endif |
554 | #endif /* __GTK_DOC_IGNORE__ */ |
555 | |
556 | #ifndef __GTK_DOC_IGNORE__ |
557 | #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_24 |
558 | #define GDK_PIXBUF_AVAILABLE_IN_2_24 G_UNAVAILABLE(2, 24) _GDK_PIXBUF_EXTERN |
559 | #else |
560 | #define GDK_PIXBUF_AVAILABLE_IN_2_24 _GDK_PIXBUF_EXTERN |
561 | #endif |
562 | #endif /* __GTK_DOC_IGNORE__ */ |
563 | |
564 | #ifndef __GTK_DOC_IGNORE__ |
565 | #if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_26 |
566 | #define GDK_PIXBUF_DEPRECATED_IN_2_26 G_DEPRECATED _GDK_PIXBUF_EXTERN |
567 | #define GDK_PIXBUF_DEPRECATED_IN_2_26_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN |
568 | #else |
569 | #define GDK_PIXBUF_DEPRECATED_IN_2_26 _GDK_PIXBUF_EXTERN |
570 | #define GDK_PIXBUF_DEPRECATED_IN_2_26_FOR(f) _GDK_PIXBUF_EXTERN |
571 | #endif |
572 | #endif /* __GTK_DOC_IGNORE__ */ |
573 | |
574 | #ifndef __GTK_DOC_IGNORE__ |
575 | #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_26 |
576 | #define GDK_PIXBUF_AVAILABLE_IN_2_26 G_UNAVAILABLE(2, 26) _GDK_PIXBUF_EXTERN |
577 | #else |
578 | #define GDK_PIXBUF_AVAILABLE_IN_2_26 _GDK_PIXBUF_EXTERN |
579 | #endif |
580 | #endif /* __GTK_DOC_IGNORE__ */ |
581 | |
582 | #ifndef __GTK_DOC_IGNORE__ |
583 | #if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_28 |
584 | #define GDK_PIXBUF_DEPRECATED_IN_2_28 G_DEPRECATED _GDK_PIXBUF_EXTERN |
585 | #define GDK_PIXBUF_DEPRECATED_IN_2_28_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN |
586 | #else |
587 | #define GDK_PIXBUF_DEPRECATED_IN_2_28 _GDK_PIXBUF_EXTERN |
588 | #define GDK_PIXBUF_DEPRECATED_IN_2_28_FOR(f) _GDK_PIXBUF_EXTERN |
589 | #endif |
590 | #endif /* __GTK_DOC_IGNORE__ */ |
591 | |
592 | #ifndef __GTK_DOC_IGNORE__ |
593 | #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_28 |
594 | #define GDK_PIXBUF_AVAILABLE_IN_2_28 G_UNAVAILABLE(2, 28) _GDK_PIXBUF_EXTERN |
595 | #else |
596 | #define GDK_PIXBUF_AVAILABLE_IN_2_28 _GDK_PIXBUF_EXTERN |
597 | #endif |
598 | #endif /* __GTK_DOC_IGNORE__ */ |
599 | |
600 | #ifndef __GTK_DOC_IGNORE__ |
601 | #if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_30 |
602 | #define GDK_PIXBUF_DEPRECATED_IN_2_30 G_DEPRECATED _GDK_PIXBUF_EXTERN |
603 | #define GDK_PIXBUF_DEPRECATED_IN_2_30_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN |
604 | #else |
605 | #define GDK_PIXBUF_DEPRECATED_IN_2_30 _GDK_PIXBUF_EXTERN |
606 | #define GDK_PIXBUF_DEPRECATED_IN_2_30_FOR(f) _GDK_PIXBUF_EXTERN |
607 | #endif |
608 | #endif /* __GTK_DOC_IGNORE__ */ |
609 | |
610 | #ifndef __GTK_DOC_IGNORE__ |
611 | #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_30 |
612 | #define GDK_PIXBUF_AVAILABLE_IN_2_30 G_UNAVAILABLE(2, 30) _GDK_PIXBUF_EXTERN |
613 | #else |
614 | #define GDK_PIXBUF_AVAILABLE_IN_2_30 _GDK_PIXBUF_EXTERN |
615 | #endif |
616 | #endif /* __GTK_DOC_IGNORE__ */ |
617 | |
618 | #ifndef __GTK_DOC_IGNORE__ |
619 | #if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_32 |
620 | #define GDK_PIXBUF_DEPRECATED_IN_2_32 G_DEPRECATED _GDK_PIXBUF_EXTERN |
621 | #define GDK_PIXBUF_DEPRECATED_IN_2_32_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN |
622 | #else |
623 | #define GDK_PIXBUF_DEPRECATED_IN_2_32 _GDK_PIXBUF_EXTERN |
624 | #define GDK_PIXBUF_DEPRECATED_IN_2_32_FOR(f) _GDK_PIXBUF_EXTERN |
625 | #endif |
626 | #endif /* __GTK_DOC_IGNORE__ */ |
627 | |
628 | #ifndef __GTK_DOC_IGNORE__ |
629 | #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_32 |
630 | #define GDK_PIXBUF_AVAILABLE_IN_2_32 G_UNAVAILABLE(2, 32) _GDK_PIXBUF_EXTERN |
631 | #else |
632 | #define GDK_PIXBUF_AVAILABLE_IN_2_32 _GDK_PIXBUF_EXTERN |
633 | #endif |
634 | #endif /* __GTK_DOC_IGNORE__ */ |
635 | |
636 | #ifndef __GTK_DOC_IGNORE__ |
637 | #if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_34 |
638 | #define GDK_PIXBUF_DEPRECATED_IN_2_34 G_DEPRECATED _GDK_PIXBUF_EXTERN |
639 | #define GDK_PIXBUF_DEPRECATED_IN_2_34_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN |
640 | #else |
641 | #define GDK_PIXBUF_DEPRECATED_IN_2_34 _GDK_PIXBUF_EXTERN |
642 | #define GDK_PIXBUF_DEPRECATED_IN_2_34_FOR(f) _GDK_PIXBUF_EXTERN |
643 | #endif |
644 | #endif /* __GTK_DOC_IGNORE__ */ |
645 | |
646 | #ifndef __GTK_DOC_IGNORE__ |
647 | #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_34 |
648 | #define GDK_PIXBUF_AVAILABLE_IN_2_34 G_UNAVAILABLE(2, 34) _GDK_PIXBUF_EXTERN |
649 | #else |
650 | #define GDK_PIXBUF_AVAILABLE_IN_2_34 _GDK_PIXBUF_EXTERN |
651 | #endif |
652 | #endif /* __GTK_DOC_IGNORE__ */ |
653 | |
654 | #ifndef __GTK_DOC_IGNORE__ |
655 | #if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_36 |
656 | #define GDK_PIXBUF_DEPRECATED_IN_2_36 G_DEPRECATED _GDK_PIXBUF_EXTERN |
657 | #define GDK_PIXBUF_DEPRECATED_IN_2_36_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN |
658 | #else |
659 | #define GDK_PIXBUF_DEPRECATED_IN_2_36 _GDK_PIXBUF_EXTERN |
660 | #define GDK_PIXBUF_DEPRECATED_IN_2_36_FOR(f) _GDK_PIXBUF_EXTERN |
661 | #endif |
662 | #endif /* __GTK_DOC_IGNORE__ */ |
663 | |
664 | #ifndef __GTK_DOC_IGNORE__ |
665 | #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_36 |
666 | #define GDK_PIXBUF_AVAILABLE_IN_2_36 G_UNAVAILABLE(2, 36) _GDK_PIXBUF_EXTERN |
667 | #else |
668 | #define GDK_PIXBUF_AVAILABLE_IN_2_36 _GDK_PIXBUF_EXTERN |
669 | #endif |
670 | #endif /* __GTK_DOC_IGNORE__ */ |
671 | |
672 | #ifndef __GTK_DOC_IGNORE__ |
673 | #if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_38 |
674 | #define GDK_PIXBUF_DEPRECATED_IN_2_38 G_DEPRECATED _GDK_PIXBUF_EXTERN |
675 | #define GDK_PIXBUF_DEPRECATED_IN_2_38_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN |
676 | #else |
677 | #define GDK_PIXBUF_DEPRECATED_IN_2_38 _GDK_PIXBUF_EXTERN |
678 | #define GDK_PIXBUF_DEPRECATED_IN_2_38_FOR(f) _GDK_PIXBUF_EXTERN |
679 | #endif |
680 | #endif /* __GTK_DOC_IGNORE__ */ |
681 | |
682 | #ifndef __GTK_DOC_IGNORE__ |
683 | #if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_38 |
684 | #define GDK_PIXBUF_AVAILABLE_IN_2_38 G_UNAVAILABLE(2, 38) _GDK_PIXBUF_EXTERN |
685 | #else |
686 | #define GDK_PIXBUF_AVAILABLE_IN_2_38 _GDK_PIXBUF_EXTERN |
687 | #endif |
688 | #endif /* __GTK_DOC_IGNORE__ */ |
689 | |
690 | #endif /* GDK_PIXBUF_MACROS_H */ |
691 | |