1/* GdkPixbuf library - GdkPixbuf Macros
2 *
3 * Copyright (C) 2016 Chun-wei Fan
4 *
5 * Authors: Chun-wei Fan <fanc999@yahoo.com.tw>
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/**
252 * GDK_PIXBUF_VERSION_2_40:
253 *
254 * A macro that evaluates to the 2.40 version of GdkPixbuf,
255 * in a format that can be used by the C pre-processor.
256 *
257 * Since: 2.40
258 */
259#define GDK_PIXBUF_VERSION_2_40 (G_ENCODE_VERSION (2, 40))
260
261#ifndef __GTK_DOC_IGNORE__
262#if (GDK_PIXBUF_MINOR % 2)
263#define GDK_PIXBUF_VERSION_CUR_STABLE (G_ENCODE_VERSION (GDK_PIXBUF_MAJOR, GDK_PIXBUF_MINOR + 1))
264#else
265#define GDK_PIXBUF_VERSION_CUR_STABLE (G_ENCODE_VERSION (GDK_PIXBUF_MAJOR, GDK_PIXBUF_MINOR))
266#endif
267#endif /* __GTK_DOC_IGNORE__ */
268
269#ifndef __GTK_DOC_IGNORE__
270#if (GDK_PIXBUF_MINOR % 2)
271#define GDK_PIXBUF_VERSION_PREV_STABLE (G_ENCODE_VERSION (GDK_PIXBUF_MAJOR, GDK_PIXBUF_MINOR - 1))
272#else
273#define GDK_PIXBUF_VERSION_PREV_STABLE (G_ENCODE_VERSION (GDK_PIXBUF_MAJOR, GDK_PIXBUF_MINOR - 2))
274#endif
275#endif /* __GTK_DOC_IGNORE__ */
276
277/**
278 * GDK_PIXBUF_VERSION_MIN_REQUIRED:
279 *
280 * A macro that should be defined by the user prior to including
281 * the gdk-pixbuf.h header.
282 * The definition should be one of the predefined version
283 * macros: %GDK_PIXBUF_VERSION_2_0, %GDK_PIXBUF_VERSION_2_2, ...
284 *
285 * This macro defines the lower bound for the GdkPixbuf API to use.
286 *
287 * If a function has been deprecated in a newer version of GdkPixbuf,
288 * defining this symbol hides the compiler warnings for those functions
289 * without disabling warnings for the other deprecated functions.
290 *
291 * <warning>
292 * Warning: if you define this macro, do not forget to update it! Especially
293 * when writing new code. Otherwise you can miss the new deprecations.
294 * </warning>
295 *
296 * Since: 2.36
297 */
298#ifndef GDK_PIXBUF_VERSION_MIN_REQUIRED
299#define GDK_PIXBUF_VERSION_MIN_REQUIRED (GDK_PIXBUF_VERSION_CUR_STABLE)
300#endif
301
302/**
303 * GDK_PIXBUF_VERSION_MAX_ALLOWED:
304 *
305 * A macro that should be defined by the user prior to including
306 * the gdk-pixbuf.h header.
307 * The definition should be one of the predefined version
308 * macros: %GDK_PIXBUF_VERSION_2_0, %GDK_PIXBUF_VERSION_2_2, ...
309 *
310 * This macro defines the upper bound for the GdkPixbuf API to use.
311 *
312 * If a function has been introduced in a newer version of GdkPixbuf,
313 * it is possible to use this symbol to get compiler warnings when
314 * trying to use that function.
315 *
316 * Since: 2.36
317 */
318#ifndef GDK_PIXBUF_VERSION_MAX_ALLOWED
319#if GDK_PIXBUF_VERSION_MIN_REQUIRED > GDK_PIXBUF_VERSION_PREV_STABLE
320#define GDK_PIXBUF_VERSION_MAX_ALLOWED GDK_PIXBUF_VERSION_MIN_REQUIRED
321#else
322#define GDK_PIXBUF_VERSION_MAX_ALLOWED GDK_PIXBUF_VERSION_CUR_STABLE
323#endif
324#endif
325
326/* sanity checks */
327#if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_MIN_REQUIRED
328#error "GDK_PIXBUF_VERSION_MAX_ALLOWED must be >= GDK_PIXBUF_VERSION_MIN_REQUIRED"
329#endif
330#if GDK_PIXBUF_VERSION_MIN_REQUIRED < GDK_PIXBUF_VERSION_2_0
331#error "GDK_PIXBUF_VERSION_MIN_REQUIRED must be >= GDK_PIXBUF_VERSION_2_0"
332#endif
333
334#ifndef __GTK_DOC_IGNORE__
335#define GDK_PIXBUF_AVAILABLE_IN_ALL _GDK_PIXBUF_EXTERN
336#endif
337
338/* Every new stable minor release should add a set of macros here */
339
340#ifndef __GTK_DOC_IGNORE__
341#if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_0
342#define GDK_PIXBUF_DEPRECATED_IN_2_0 G_DEPRECATED _GDK_PIXBUF_EXTERN
343#define GDK_PIXBUF_DEPRECATED_IN_2_0_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN
344#else
345#define GDK_PIXBUF_DEPRECATED_IN_2_0 _GDK_PIXBUF_EXTERN
346#define GDK_PIXBUF_DEPRECATED_IN_2_0_FOR(f) _GDK_PIXBUF_EXTERN
347#endif
348#endif /* __GTK_DOC_IGNORE__ */
349
350#ifndef __GTK_DOC_IGNORE__
351#if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_0
352#define GDK_PIXBUF_AVAILABLE_IN_2_0 G_UNAVAILABLE(2, 0) _GDK_PIXBUF_EXTERN
353#else
354#define GDK_PIXBUF_AVAILABLE_IN_2_0 _GDK_PIXBUF_EXTERN
355#endif
356#endif /* __GTK_DOC_IGNORE__ */
357
358#ifndef __GTK_DOC_IGNORE__
359#if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_2
360#define GDK_PIXBUF_DEPRECATED_IN_2_2 G_DEPRECATED _GDK_PIXBUF_EXTERN
361#define GDK_PIXBUF_DEPRECATED_IN_2_2_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN
362#else
363#define GDK_PIXBUF_DEPRECATED_IN_2_2 _GDK_PIXBUF_EXTERN
364#define GDK_PIXBUF_DEPRECATED_IN_2_2_FOR(f) _GDK_PIXBUF_EXTERN
365#endif
366#endif /* __GTK_DOC_IGNORE__ */
367
368#ifndef __GTK_DOC_IGNORE__
369#if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_2
370#define GDK_PIXBUF_AVAILABLE_IN_2_2 G_UNAVAILABLE(2, 2) _GDK_PIXBUF_EXTERN
371#else
372#define GDK_PIXBUF_AVAILABLE_IN_2_2 _GDK_PIXBUF_EXTERN
373#endif
374#endif /* __GTK_DOC_IGNORE__ */
375
376#ifndef __GTK_DOC_IGNORE__
377#if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_4
378#define GDK_PIXBUF_DEPRECATED_IN_2_4 G_DEPRECATED _GDK_PIXBUF_EXTERN
379#define GDK_PIXBUF_DEPRECATED_IN_2_4_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN
380#else
381#define GDK_PIXBUF_DEPRECATED_IN_2_4 _GDK_PIXBUF_EXTERN
382#define GDK_PIXBUF_DEPRECATED_IN_2_4_FOR(f) _GDK_PIXBUF_EXTERN
383#endif
384#endif /* __GTK_DOC_IGNORE__ */
385
386#ifndef __GTK_DOC_IGNORE__
387#if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_4
388#define GDK_PIXBUF_AVAILABLE_IN_2_4 G_UNAVAILABLE(2, 4) _GDK_PIXBUF_EXTERN
389#else
390#define GDK_PIXBUF_AVAILABLE_IN_2_4 _GDK_PIXBUF_EXTERN
391#endif
392#endif /* __GTK_DOC_IGNORE__ */
393
394#ifndef __GTK_DOC_IGNORE__
395#if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_6
396#define GDK_PIXBUF_DEPRECATED_IN_2_6 G_DEPRECATED _GDK_PIXBUF_EXTERN
397#define GDK_PIXBUF_DEPRECATED_IN_2_6_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN
398#else
399#define GDK_PIXBUF_DEPRECATED_IN_2_6 _GDK_PIXBUF_EXTERN
400#define GDK_PIXBUF_DEPRECATED_IN_2_6_FOR(f) _GDK_PIXBUF_EXTERN
401#endif
402#endif /* __GTK_DOC_IGNORE__ */
403
404#ifndef __GTK_DOC_IGNORE__
405#if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_6
406#define GDK_PIXBUF_AVAILABLE_IN_2_6 G_UNAVAILABLE(2, 6) _GDK_PIXBUF_EXTERN
407#else
408#define GDK_PIXBUF_AVAILABLE_IN_2_6 _GDK_PIXBUF_EXTERN
409#endif
410#endif /* __GTK_DOC_IGNORE__ */
411
412#ifndef __GTK_DOC_IGNORE__
413#if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_8
414#define GDK_PIXBUF_DEPRECATED_IN_2_8 G_DEPRECATED _GDK_PIXBUF_EXTERN
415#define GDK_PIXBUF_DEPRECATED_IN_2_8_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN
416#else
417#define GDK_PIXBUF_DEPRECATED_IN_2_8 _GDK_PIXBUF_EXTERN
418#define GDK_PIXBUF_DEPRECATED_IN_2_8_FOR(f) _GDK_PIXBUF_EXTERN
419#endif
420#endif /* __GTK_DOC_IGNORE__ */
421
422#ifndef __GTK_DOC_IGNORE__
423#if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_8
424#define GDK_PIXBUF_AVAILABLE_IN_2_8 G_UNAVAILABLE(2, 8) _GDK_PIXBUF_EXTERN
425#else
426#define GDK_PIXBUF_AVAILABLE_IN_2_8 _GDK_PIXBUF_EXTERN
427#endif
428#endif /* __GTK_DOC_IGNORE__ */
429
430#ifndef __GTK_DOC_IGNORE__
431#if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_10
432#define GDK_PIXBUF_DEPRECATED_IN_2_10 G_DEPRECATED _GDK_PIXBUF_EXTERN
433#define GDK_PIXBUF_DEPRECATED_IN_2_10_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN
434#else
435#define GDK_PIXBUF_DEPRECATED_IN_2_10 _GDK_PIXBUF_EXTERN
436#define GDK_PIXBUF_DEPRECATED_IN_2_10_FOR(f) _GDK_PIXBUF_EXTERN
437#endif
438#endif /* __GTK_DOC_IGNORE__ */
439
440#ifndef __GTK_DOC_IGNORE__
441#if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_10
442#define GDK_PIXBUF_AVAILABLE_IN_2_10 G_UNAVAILABLE(2, 10) _GDK_PIXBUF_EXTERN
443#else
444#define GDK_PIXBUF_AVAILABLE_IN_2_10 _GDK_PIXBUF_EXTERN
445#endif
446#endif /* __GTK_DOC_IGNORE__ */
447
448#ifndef __GTK_DOC_IGNORE__
449#if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_12
450#define GDK_PIXBUF_DEPRECATED_IN_2_12 G_DEPRECATED _GDK_PIXBUF_EXTERN
451#define GDK_PIXBUF_DEPRECATED_IN_2_12_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN
452#else
453#define GDK_PIXBUF_DEPRECATED_IN_2_12 _GDK_PIXBUF_EXTERN
454#define GDK_PIXBUF_DEPRECATED_IN_2_12_FOR(f) _GDK_PIXBUF_EXTERN
455#endif
456#endif /* __GTK_DOC_IGNORE__ */
457
458#ifndef __GTK_DOC_IGNORE__
459#if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_12
460#define GDK_PIXBUF_AVAILABLE_IN_2_12 G_UNAVAILABLE(2, 12) _GDK_PIXBUF_EXTERN
461#else
462#define GDK_PIXBUF_AVAILABLE_IN_2_12 _GDK_PIXBUF_EXTERN
463#endif
464#endif /* __GTK_DOC_IGNORE__ */
465
466#ifndef __GTK_DOC_IGNORE__
467#if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_14
468#define GDK_PIXBUF_DEPRECATED_IN_2_14 G_DEPRECATED _GDK_PIXBUF_EXTERN
469#define GDK_PIXBUF_DEPRECATED_IN_2_14_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN
470#else
471#define GDK_PIXBUF_DEPRECATED_IN_2_14 _GDK_PIXBUF_EXTERN
472#define GDK_PIXBUF_DEPRECATED_IN_2_14_FOR(f) _GDK_PIXBUF_EXTERN
473#endif
474#endif /* __GTK_DOC_IGNORE__ */
475
476#ifndef __GTK_DOC_IGNORE__
477#if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_14
478#define GDK_PIXBUF_AVAILABLE_IN_2_14 G_UNAVAILABLE(2, 14) _GDK_PIXBUF_EXTERN
479#else
480#define GDK_PIXBUF_AVAILABLE_IN_2_14 _GDK_PIXBUF_EXTERN
481#endif
482#endif /* __GTK_DOC_IGNORE__ */
483
484#ifndef __GTK_DOC_IGNORE__
485#if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_16
486#define GDK_PIXBUF_DEPRECATED_IN_2_16 G_DEPRECATED _GDK_PIXBUF_EXTERN
487#define GDK_PIXBUF_DEPRECATED_IN_2_16_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN
488#else
489#define GDK_PIXBUF_DEPRECATED_IN_2_16 _GDK_PIXBUF_EXTERN
490#define GDK_PIXBUF_DEPRECATED_IN_2_16_FOR(f) _GDK_PIXBUF_EXTERN
491#endif
492#endif /* __GTK_DOC_IGNORE__ */
493
494#ifndef __GTK_DOC_IGNORE__
495#if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_16
496#define GDK_PIXBUF_AVAILABLE_IN_2_16 G_UNAVAILABLE(2, 16) _GDK_PIXBUF_EXTERN
497#else
498#define GDK_PIXBUF_AVAILABLE_IN_2_16 _GDK_PIXBUF_EXTERN
499#endif
500#endif /* __GTK_DOC_IGNORE__ */
501
502#ifndef __GTK_DOC_IGNORE__
503#if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_18
504#define GDK_PIXBUF_DEPRECATED_IN_2_18 G_DEPRECATED _GDK_PIXBUF_EXTERN
505#define GDK_PIXBUF_DEPRECATED_IN_2_18_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN
506#else
507#define GDK_PIXBUF_DEPRECATED_IN_2_18 _GDK_PIXBUF_EXTERN
508#define GDK_PIXBUF_DEPRECATED_IN_2_18_FOR(f) _GDK_PIXBUF_EXTERN
509#endif
510#endif /* __GTK_DOC_IGNORE__ */
511
512#ifndef __GTK_DOC_IGNORE__
513#if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_18
514#define GDK_PIXBUF_AVAILABLE_IN_2_18 G_UNAVAILABLE(2, 18) _GDK_PIXBUF_EXTERN
515#else
516#define GDK_PIXBUF_AVAILABLE_IN_2_18 _GDK_PIXBUF_EXTERN
517#endif
518#endif /* __GTK_DOC_IGNORE__ */
519
520#ifndef __GTK_DOC_IGNORE__
521#if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_20
522#define GDK_PIXBUF_DEPRECATED_IN_2_20 G_DEPRECATED _GDK_PIXBUF_EXTERN
523#define GDK_PIXBUF_DEPRECATED_IN_2_20_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN
524#else
525#define GDK_PIXBUF_DEPRECATED_IN_2_20 _GDK_PIXBUF_EXTERN
526#define GDK_PIXBUF_DEPRECATED_IN_2_20_FOR(f) _GDK_PIXBUF_EXTERN
527#endif
528#endif /* __GTK_DOC_IGNORE__ */
529
530#ifndef __GTK_DOC_IGNORE__
531#if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_20
532#define GDK_PIXBUF_AVAILABLE_IN_2_20 G_UNAVAILABLE(2, 20) _GDK_PIXBUF_EXTERN
533#else
534#define GDK_PIXBUF_AVAILABLE_IN_2_20 _GDK_PIXBUF_EXTERN
535#endif
536#endif /* __GTK_DOC_IGNORE__ */
537
538#ifndef __GTK_DOC_IGNORE__
539#if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_22
540#define GDK_PIXBUF_DEPRECATED_IN_2_22 G_DEPRECATED _GDK_PIXBUF_EXTERN
541#define GDK_PIXBUF_DEPRECATED_IN_2_22_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN
542#else
543#define GDK_PIXBUF_DEPRECATED_IN_2_22 _GDK_PIXBUF_EXTERN
544#define GDK_PIXBUF_DEPRECATED_IN_2_22_FOR(f) _GDK_PIXBUF_EXTERN
545#endif
546#endif /* __GTK_DOC_IGNORE__ */
547
548#ifndef __GTK_DOC_IGNORE__
549#if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_22
550#define GDK_PIXBUF_AVAILABLE_IN_2_22 G_UNAVAILABLE(2, 22) _GDK_PIXBUF_EXTERN
551#else
552#define GDK_PIXBUF_AVAILABLE_IN_2_22 _GDK_PIXBUF_EXTERN
553#endif
554#endif /* __GTK_DOC_IGNORE__ */
555
556#ifndef __GTK_DOC_IGNORE__
557#if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_24
558#define GDK_PIXBUF_DEPRECATED_IN_2_24 G_DEPRECATED _GDK_PIXBUF_EXTERN
559#define GDK_PIXBUF_DEPRECATED_IN_2_24_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN
560#else
561#define GDK_PIXBUF_DEPRECATED_IN_2_24 _GDK_PIXBUF_EXTERN
562#define GDK_PIXBUF_DEPRECATED_IN_2_24_FOR(f) _GDK_PIXBUF_EXTERN
563#endif
564#endif /* __GTK_DOC_IGNORE__ */
565
566#ifndef __GTK_DOC_IGNORE__
567#if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_24
568#define GDK_PIXBUF_AVAILABLE_IN_2_24 G_UNAVAILABLE(2, 24) _GDK_PIXBUF_EXTERN
569#else
570#define GDK_PIXBUF_AVAILABLE_IN_2_24 _GDK_PIXBUF_EXTERN
571#endif
572#endif /* __GTK_DOC_IGNORE__ */
573
574#ifndef __GTK_DOC_IGNORE__
575#if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_26
576#define GDK_PIXBUF_DEPRECATED_IN_2_26 G_DEPRECATED _GDK_PIXBUF_EXTERN
577#define GDK_PIXBUF_DEPRECATED_IN_2_26_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN
578#else
579#define GDK_PIXBUF_DEPRECATED_IN_2_26 _GDK_PIXBUF_EXTERN
580#define GDK_PIXBUF_DEPRECATED_IN_2_26_FOR(f) _GDK_PIXBUF_EXTERN
581#endif
582#endif /* __GTK_DOC_IGNORE__ */
583
584#ifndef __GTK_DOC_IGNORE__
585#if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_26
586#define GDK_PIXBUF_AVAILABLE_IN_2_26 G_UNAVAILABLE(2, 26) _GDK_PIXBUF_EXTERN
587#else
588#define GDK_PIXBUF_AVAILABLE_IN_2_26 _GDK_PIXBUF_EXTERN
589#endif
590#endif /* __GTK_DOC_IGNORE__ */
591
592#ifndef __GTK_DOC_IGNORE__
593#if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_28
594#define GDK_PIXBUF_DEPRECATED_IN_2_28 G_DEPRECATED _GDK_PIXBUF_EXTERN
595#define GDK_PIXBUF_DEPRECATED_IN_2_28_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN
596#else
597#define GDK_PIXBUF_DEPRECATED_IN_2_28 _GDK_PIXBUF_EXTERN
598#define GDK_PIXBUF_DEPRECATED_IN_2_28_FOR(f) _GDK_PIXBUF_EXTERN
599#endif
600#endif /* __GTK_DOC_IGNORE__ */
601
602#ifndef __GTK_DOC_IGNORE__
603#if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_28
604#define GDK_PIXBUF_AVAILABLE_IN_2_28 G_UNAVAILABLE(2, 28) _GDK_PIXBUF_EXTERN
605#else
606#define GDK_PIXBUF_AVAILABLE_IN_2_28 _GDK_PIXBUF_EXTERN
607#endif
608#endif /* __GTK_DOC_IGNORE__ */
609
610#ifndef __GTK_DOC_IGNORE__
611#if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_30
612#define GDK_PIXBUF_DEPRECATED_IN_2_30 G_DEPRECATED _GDK_PIXBUF_EXTERN
613#define GDK_PIXBUF_DEPRECATED_IN_2_30_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN
614#else
615#define GDK_PIXBUF_DEPRECATED_IN_2_30 _GDK_PIXBUF_EXTERN
616#define GDK_PIXBUF_DEPRECATED_IN_2_30_FOR(f) _GDK_PIXBUF_EXTERN
617#endif
618#endif /* __GTK_DOC_IGNORE__ */
619
620#ifndef __GTK_DOC_IGNORE__
621#if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_30
622#define GDK_PIXBUF_AVAILABLE_IN_2_30 G_UNAVAILABLE(2, 30) _GDK_PIXBUF_EXTERN
623#else
624#define GDK_PIXBUF_AVAILABLE_IN_2_30 _GDK_PIXBUF_EXTERN
625#endif
626#endif /* __GTK_DOC_IGNORE__ */
627
628#ifndef __GTK_DOC_IGNORE__
629#if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_32
630#define GDK_PIXBUF_DEPRECATED_IN_2_32 G_DEPRECATED _GDK_PIXBUF_EXTERN
631#define GDK_PIXBUF_DEPRECATED_IN_2_32_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN
632#else
633#define GDK_PIXBUF_DEPRECATED_IN_2_32 _GDK_PIXBUF_EXTERN
634#define GDK_PIXBUF_DEPRECATED_IN_2_32_FOR(f) _GDK_PIXBUF_EXTERN
635#endif
636#endif /* __GTK_DOC_IGNORE__ */
637
638#ifndef __GTK_DOC_IGNORE__
639#if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_32
640#define GDK_PIXBUF_AVAILABLE_IN_2_32 G_UNAVAILABLE(2, 32) _GDK_PIXBUF_EXTERN
641#else
642#define GDK_PIXBUF_AVAILABLE_IN_2_32 _GDK_PIXBUF_EXTERN
643#endif
644#endif /* __GTK_DOC_IGNORE__ */
645
646#ifndef __GTK_DOC_IGNORE__
647#if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_34
648#define GDK_PIXBUF_DEPRECATED_IN_2_34 G_DEPRECATED _GDK_PIXBUF_EXTERN
649#define GDK_PIXBUF_DEPRECATED_IN_2_34_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN
650#else
651#define GDK_PIXBUF_DEPRECATED_IN_2_34 _GDK_PIXBUF_EXTERN
652#define GDK_PIXBUF_DEPRECATED_IN_2_34_FOR(f) _GDK_PIXBUF_EXTERN
653#endif
654#endif /* __GTK_DOC_IGNORE__ */
655
656#ifndef __GTK_DOC_IGNORE__
657#if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_34
658#define GDK_PIXBUF_AVAILABLE_IN_2_34 G_UNAVAILABLE(2, 34) _GDK_PIXBUF_EXTERN
659#else
660#define GDK_PIXBUF_AVAILABLE_IN_2_34 _GDK_PIXBUF_EXTERN
661#endif
662#endif /* __GTK_DOC_IGNORE__ */
663
664#ifndef __GTK_DOC_IGNORE__
665#if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_36
666#define GDK_PIXBUF_DEPRECATED_IN_2_36 G_DEPRECATED _GDK_PIXBUF_EXTERN
667#define GDK_PIXBUF_DEPRECATED_IN_2_36_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN
668#else
669#define GDK_PIXBUF_DEPRECATED_IN_2_36 _GDK_PIXBUF_EXTERN
670#define GDK_PIXBUF_DEPRECATED_IN_2_36_FOR(f) _GDK_PIXBUF_EXTERN
671#endif
672#endif /* __GTK_DOC_IGNORE__ */
673
674#ifndef __GTK_DOC_IGNORE__
675#if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_36
676#define GDK_PIXBUF_AVAILABLE_IN_2_36 G_UNAVAILABLE(2, 36) _GDK_PIXBUF_EXTERN
677#else
678#define GDK_PIXBUF_AVAILABLE_IN_2_36 _GDK_PIXBUF_EXTERN
679#endif
680#endif /* __GTK_DOC_IGNORE__ */
681
682#ifndef __GTK_DOC_IGNORE__
683#if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_38
684#define GDK_PIXBUF_DEPRECATED_IN_2_38 G_DEPRECATED _GDK_PIXBUF_EXTERN
685#define GDK_PIXBUF_DEPRECATED_IN_2_38_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN
686#else
687#define GDK_PIXBUF_DEPRECATED_IN_2_38 _GDK_PIXBUF_EXTERN
688#define GDK_PIXBUF_DEPRECATED_IN_2_38_FOR(f) _GDK_PIXBUF_EXTERN
689#endif
690#endif /* __GTK_DOC_IGNORE__ */
691
692#ifndef __GTK_DOC_IGNORE__
693#if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_38
694#define GDK_PIXBUF_AVAILABLE_IN_2_38 G_UNAVAILABLE(2, 38) _GDK_PIXBUF_EXTERN
695#else
696#define GDK_PIXBUF_AVAILABLE_IN_2_38 _GDK_PIXBUF_EXTERN
697#endif
698#endif /* __GTK_DOC_IGNORE__ */
699
700#ifndef __GTK_DOC_IGNORE__
701#if GDK_PIXBUF_VERSION_MIN_REQUIRED >= GDK_PIXBUF_VERSION_2_40
702#define GDK_PIXBUF_DEPRECATED_IN_2_40 G_DEPRECATED _GDK_PIXBUF_EXTERN
703#define GDK_PIXBUF_DEPRECATED_IN_2_40_FOR(f) G_DEPRECATED_FOR(f) _GDK_PIXBUF_EXTERN
704#else
705#define GDK_PIXBUF_DEPRECATED_IN_2_40 _GDK_PIXBUF_EXTERN
706#define GDK_PIXBUF_DEPRECATED_IN_2_40_FOR(f) _GDK_PIXBUF_EXTERN
707#endif
708#endif /* __GTK_DOC_IGNORE__ */
709
710#ifndef __GTK_DOC_IGNORE__
711#if GDK_PIXBUF_VERSION_MAX_ALLOWED < GDK_PIXBUF_VERSION_2_40
712#define GDK_PIXBUF_AVAILABLE_IN_2_40 G_UNAVAILABLE(2, 40) _GDK_PIXBUF_EXTERN
713#else
714#define GDK_PIXBUF_AVAILABLE_IN_2_40 _GDK_PIXBUF_EXTERN
715#endif
716#endif /* __GTK_DOC_IGNORE__ */
717
718#endif /* GDK_PIXBUF_MACROS_H */
719

source code of include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-macros.h