1 /*
2  * This file is part of gtkD.
3  *
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License
6  * as published by the Free Software Foundation; either version 3
7  * of the License, or (at your option) any later version, with
8  * some exceptions, please read the COPYING file.
9  *
10  * gtkD is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with gtkD; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18  */
19  
20 // generated automatically - do not change
21 // find conversion definition on APILookup.txt
22 // implement new conversion functionalities on the wrap.utils pakage
23 
24 
25 module gtkc.gdkpixbuf;
26 
27 private import std.stdio;
28 private import gtkc.gdkpixbuftypes;
29 private import gtkc.Loader;
30 private import gtkc.paths;
31 
32 shared static this()
33 {
34 	// gdkpixbuf.Pixdata
35 
36 	Linker.link(gdk_pixdata_from_pixbuf, "gdk_pixdata_from_pixbuf", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
37 	Linker.link(gdk_pixbuf_from_pixdata, "gdk_pixbuf_from_pixdata", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
38 	Linker.link(gdk_pixdata_serialize, "gdk_pixdata_serialize", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
39 	Linker.link(gdk_pixdata_deserialize, "gdk_pixdata_deserialize", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
40 	Linker.link(gdk_pixdata_to_csource, "gdk_pixdata_to_csource", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
41 
42 	// gdkpixbuf.PixbufAnimation
43 
44 	Linker.link(gdk_pixbuf_animation_new_from_file, "gdk_pixbuf_animation_new_from_file", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
45 	Linker.link(gdk_pixbuf_animation_new_from_resource, "gdk_pixbuf_animation_new_from_resource", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
46 	Linker.link(gdk_pixbuf_animation_new_from_stream, "gdk_pixbuf_animation_new_from_stream", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
47 	Linker.link(gdk_pixbuf_animation_new_from_stream_async, "gdk_pixbuf_animation_new_from_stream_async", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
48 	Linker.link(gdk_pixbuf_animation_new_from_stream_finish, "gdk_pixbuf_animation_new_from_stream_finish", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
49 	Linker.link(gdk_pixbuf_animation_ref, "gdk_pixbuf_animation_ref", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
50 	Linker.link(gdk_pixbuf_animation_unref, "gdk_pixbuf_animation_unref", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
51 	Linker.link(gdk_pixbuf_animation_get_width, "gdk_pixbuf_animation_get_width", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
52 	Linker.link(gdk_pixbuf_animation_get_height, "gdk_pixbuf_animation_get_height", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
53 	Linker.link(gdk_pixbuf_animation_get_iter, "gdk_pixbuf_animation_get_iter", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
54 	Linker.link(gdk_pixbuf_animation_is_static_image, "gdk_pixbuf_animation_is_static_image", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
55 	Linker.link(gdk_pixbuf_animation_get_static_image, "gdk_pixbuf_animation_get_static_image", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
56 
57 	// gdkpixbuf.PixbufAnimationIter
58 
59 	Linker.link(gdk_pixbuf_animation_iter_advance, "gdk_pixbuf_animation_iter_advance", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
60 	Linker.link(gdk_pixbuf_animation_iter_get_delay_time, "gdk_pixbuf_animation_iter_get_delay_time", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
61 	Linker.link(gdk_pixbuf_animation_iter_on_currently_loading_frame, "gdk_pixbuf_animation_iter_on_currently_loading_frame", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
62 	Linker.link(gdk_pixbuf_animation_iter_get_pixbuf, "gdk_pixbuf_animation_iter_get_pixbuf", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
63 
64 	// gdkpixbuf.PixbufSimpleAnimation
65 
66 	Linker.link(gdk_pixbuf_simple_anim_new, "gdk_pixbuf_simple_anim_new", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
67 	Linker.link(gdk_pixbuf_simple_anim_add_frame, "gdk_pixbuf_simple_anim_add_frame", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
68 	Linker.link(gdk_pixbuf_simple_anim_set_loop, "gdk_pixbuf_simple_anim_set_loop", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
69 	Linker.link(gdk_pixbuf_simple_anim_get_loop, "gdk_pixbuf_simple_anim_get_loop", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
70 
71 	// gdkpixbuf.PixbufLoader
72 
73 	Linker.link(gdk_pixbuf_loader_new, "gdk_pixbuf_loader_new", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
74 	Linker.link(gdk_pixbuf_loader_new_with_type, "gdk_pixbuf_loader_new_with_type", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
75 	Linker.link(gdk_pixbuf_loader_new_with_mime_type, "gdk_pixbuf_loader_new_with_mime_type", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
76 	Linker.link(gdk_pixbuf_loader_get_format, "gdk_pixbuf_loader_get_format", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
77 	Linker.link(gdk_pixbuf_loader_write, "gdk_pixbuf_loader_write", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
78 	Linker.link(gdk_pixbuf_loader_write_bytes, "gdk_pixbuf_loader_write_bytes", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
79 	Linker.link(gdk_pixbuf_loader_set_size, "gdk_pixbuf_loader_set_size", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
80 	Linker.link(gdk_pixbuf_loader_get_pixbuf, "gdk_pixbuf_loader_get_pixbuf", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
81 	Linker.link(gdk_pixbuf_loader_get_animation, "gdk_pixbuf_loader_get_animation", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
82 	Linker.link(gdk_pixbuf_loader_close, "gdk_pixbuf_loader_close", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
83 
84 	// gdkpixbuf.PixbufFormat
85 
86 	Linker.link(gdk_pixbuf_set_option, "gdk_pixbuf_set_option", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
87 	Linker.link(gdk_pixbuf_get_formats, "gdk_pixbuf_get_formats", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
88 	Linker.link(gdk_pixbuf_format_copy, "gdk_pixbuf_format_copy", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
89 	Linker.link(gdk_pixbuf_format_free, "gdk_pixbuf_format_free", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
90 	Linker.link(gdk_pixbuf_format_get_name, "gdk_pixbuf_format_get_name", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
91 	Linker.link(gdk_pixbuf_format_get_description, "gdk_pixbuf_format_get_description", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
92 	Linker.link(gdk_pixbuf_format_get_mime_types, "gdk_pixbuf_format_get_mime_types", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
93 	Linker.link(gdk_pixbuf_format_get_extensions, "gdk_pixbuf_format_get_extensions", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
94 	Linker.link(gdk_pixbuf_format_is_writable, "gdk_pixbuf_format_is_writable", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
95 	Linker.link(gdk_pixbuf_format_is_scalable, "gdk_pixbuf_format_is_scalable", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
96 	Linker.link(gdk_pixbuf_format_is_disabled, "gdk_pixbuf_format_is_disabled", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
97 	Linker.link(gdk_pixbuf_format_set_disabled, "gdk_pixbuf_format_set_disabled", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
98 	Linker.link(gdk_pixbuf_format_get_license, "gdk_pixbuf_format_get_license", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF);
99 }
100 
101 __gshared extern(C)
102 {
103 	// gdkpixbuf.Pixdata
104 
105 	gpointer function(GdkPixdata* pixdata, GdkPixbuf* pixbuf, gboolean useRle) c_gdk_pixdata_from_pixbuf;
106 	GdkPixbuf* function(GdkPixdata* pixdata, gboolean copyPixels, GError** error) c_gdk_pixbuf_from_pixdata;
107 	guint8* function(GdkPixdata* pixdata, guint* streamLengthP) c_gdk_pixdata_serialize;
108 	gboolean function(GdkPixdata* pixdata, guint streamLength, guint8* stream, GError** error) c_gdk_pixdata_deserialize;
109 	GString* function(GdkPixdata* pixdata, gchar* name, GdkPixdataDumpType dumpType) c_gdk_pixdata_to_csource;
110 
111 	// gdkpixbuf.PixbufAnimation
112 
113 	GdkPixbufAnimation* function(char* filename, GError** error) c_gdk_pixbuf_animation_new_from_file;
114 	GdkPixbufAnimation* function(char* resourcePath, GError** error) c_gdk_pixbuf_animation_new_from_resource;
115 	GdkPixbufAnimation* function(GInputStream* stream, GCancellable* cancellable, GError** error) c_gdk_pixbuf_animation_new_from_stream;
116 	void function(GInputStream* stream, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_gdk_pixbuf_animation_new_from_stream_async;
117 	GdkPixbufAnimation* function(GAsyncResult* asyncResult, GError** error) c_gdk_pixbuf_animation_new_from_stream_finish;
118 	GdkPixbufAnimation* function(GdkPixbufAnimation* animation) c_gdk_pixbuf_animation_ref;
119 	void function(GdkPixbufAnimation* animation) c_gdk_pixbuf_animation_unref;
120 	int function(GdkPixbufAnimation* animation) c_gdk_pixbuf_animation_get_width;
121 	int function(GdkPixbufAnimation* animation) c_gdk_pixbuf_animation_get_height;
122 	GdkPixbufAnimationIter* function(GdkPixbufAnimation* animation, GTimeVal* startTime) c_gdk_pixbuf_animation_get_iter;
123 	gboolean function(GdkPixbufAnimation* animation) c_gdk_pixbuf_animation_is_static_image;
124 	GdkPixbuf* function(GdkPixbufAnimation* animation) c_gdk_pixbuf_animation_get_static_image;
125 
126 	// gdkpixbuf.PixbufAnimationIter
127 
128 	gboolean function(GdkPixbufAnimationIter* iter, GTimeVal* currentTime) c_gdk_pixbuf_animation_iter_advance;
129 	int function(GdkPixbufAnimationIter* iter) c_gdk_pixbuf_animation_iter_get_delay_time;
130 	gboolean function(GdkPixbufAnimationIter* iter) c_gdk_pixbuf_animation_iter_on_currently_loading_frame;
131 	GdkPixbuf* function(GdkPixbufAnimationIter* iter) c_gdk_pixbuf_animation_iter_get_pixbuf;
132 
133 	// gdkpixbuf.PixbufSimpleAnimation
134 
135 	GdkPixbufSimpleAnim* function(gint width, gint height, gfloat rate) c_gdk_pixbuf_simple_anim_new;
136 	void function(GdkPixbufSimpleAnim* animation, GdkPixbuf* pixbuf) c_gdk_pixbuf_simple_anim_add_frame;
137 	void function(GdkPixbufSimpleAnim* animation, gboolean loop) c_gdk_pixbuf_simple_anim_set_loop;
138 	gboolean function(GdkPixbufSimpleAnim* animation) c_gdk_pixbuf_simple_anim_get_loop;
139 
140 	// gdkpixbuf.PixbufLoader
141 
142 	GdkPixbufLoader* function() c_gdk_pixbuf_loader_new;
143 	GdkPixbufLoader* function(char* imageType, GError** error) c_gdk_pixbuf_loader_new_with_type;
144 	GdkPixbufLoader* function(char* mimeType, GError** error) c_gdk_pixbuf_loader_new_with_mime_type;
145 	GdkPixbufFormat* function(GdkPixbufLoader* loader) c_gdk_pixbuf_loader_get_format;
146 	gboolean function(GdkPixbufLoader* loader, guchar* buf, gsize count, GError** error) c_gdk_pixbuf_loader_write;
147 	gboolean function(GdkPixbufLoader* loader, GBytes* buffer, GError** error) c_gdk_pixbuf_loader_write_bytes;
148 	void function(GdkPixbufLoader* loader, int width, int height) c_gdk_pixbuf_loader_set_size;
149 	GdkPixbuf* function(GdkPixbufLoader* loader) c_gdk_pixbuf_loader_get_pixbuf;
150 	GdkPixbufAnimation* function(GdkPixbufLoader* loader) c_gdk_pixbuf_loader_get_animation;
151 	gboolean function(GdkPixbufLoader* loader, GError** error) c_gdk_pixbuf_loader_close;
152 
153 	// gdkpixbuf.PixbufFormat
154 
155 	gboolean function(GdkPixbuf* pixbuf, gchar* key, gchar* value) c_gdk_pixbuf_set_option;
156 	GSList* function() c_gdk_pixbuf_get_formats;
157 	GdkPixbufFormat* function(GdkPixbufFormat* format) c_gdk_pixbuf_format_copy;
158 	void function(GdkPixbufFormat* format) c_gdk_pixbuf_format_free;
159 	gchar* function(GdkPixbufFormat* format) c_gdk_pixbuf_format_get_name;
160 	gchar* function(GdkPixbufFormat* format) c_gdk_pixbuf_format_get_description;
161 	gchar** function(GdkPixbufFormat* format) c_gdk_pixbuf_format_get_mime_types;
162 	gchar** function(GdkPixbufFormat* format) c_gdk_pixbuf_format_get_extensions;
163 	gboolean function(GdkPixbufFormat* format) c_gdk_pixbuf_format_is_writable;
164 	gboolean function(GdkPixbufFormat* format) c_gdk_pixbuf_format_is_scalable;
165 	gboolean function(GdkPixbufFormat* format) c_gdk_pixbuf_format_is_disabled;
166 	void function(GdkPixbufFormat* format, gboolean disabled) c_gdk_pixbuf_format_set_disabled;
167 	gchar* function(GdkPixbufFormat* format) c_gdk_pixbuf_format_get_license;
168 }
169 
170 // gdkpixbuf.Pixdata
171 
172 alias c_gdk_pixdata_from_pixbuf  gdk_pixdata_from_pixbuf;
173 alias c_gdk_pixbuf_from_pixdata  gdk_pixbuf_from_pixdata;
174 alias c_gdk_pixdata_serialize  gdk_pixdata_serialize;
175 alias c_gdk_pixdata_deserialize  gdk_pixdata_deserialize;
176 alias c_gdk_pixdata_to_csource  gdk_pixdata_to_csource;
177 
178 // gdkpixbuf.PixbufAnimation
179 
180 alias c_gdk_pixbuf_animation_new_from_file  gdk_pixbuf_animation_new_from_file;
181 alias c_gdk_pixbuf_animation_new_from_resource  gdk_pixbuf_animation_new_from_resource;
182 alias c_gdk_pixbuf_animation_new_from_stream  gdk_pixbuf_animation_new_from_stream;
183 alias c_gdk_pixbuf_animation_new_from_stream_async  gdk_pixbuf_animation_new_from_stream_async;
184 alias c_gdk_pixbuf_animation_new_from_stream_finish  gdk_pixbuf_animation_new_from_stream_finish;
185 alias c_gdk_pixbuf_animation_ref  gdk_pixbuf_animation_ref;
186 alias c_gdk_pixbuf_animation_unref  gdk_pixbuf_animation_unref;
187 alias c_gdk_pixbuf_animation_get_width  gdk_pixbuf_animation_get_width;
188 alias c_gdk_pixbuf_animation_get_height  gdk_pixbuf_animation_get_height;
189 alias c_gdk_pixbuf_animation_get_iter  gdk_pixbuf_animation_get_iter;
190 alias c_gdk_pixbuf_animation_is_static_image  gdk_pixbuf_animation_is_static_image;
191 alias c_gdk_pixbuf_animation_get_static_image  gdk_pixbuf_animation_get_static_image;
192 
193 // gdkpixbuf.PixbufAnimationIter
194 
195 alias c_gdk_pixbuf_animation_iter_advance  gdk_pixbuf_animation_iter_advance;
196 alias c_gdk_pixbuf_animation_iter_get_delay_time  gdk_pixbuf_animation_iter_get_delay_time;
197 alias c_gdk_pixbuf_animation_iter_on_currently_loading_frame  gdk_pixbuf_animation_iter_on_currently_loading_frame;
198 alias c_gdk_pixbuf_animation_iter_get_pixbuf  gdk_pixbuf_animation_iter_get_pixbuf;
199 
200 // gdkpixbuf.PixbufSimpleAnimation
201 
202 alias c_gdk_pixbuf_simple_anim_new  gdk_pixbuf_simple_anim_new;
203 alias c_gdk_pixbuf_simple_anim_add_frame  gdk_pixbuf_simple_anim_add_frame;
204 alias c_gdk_pixbuf_simple_anim_set_loop  gdk_pixbuf_simple_anim_set_loop;
205 alias c_gdk_pixbuf_simple_anim_get_loop  gdk_pixbuf_simple_anim_get_loop;
206 
207 // gdkpixbuf.PixbufLoader
208 
209 alias c_gdk_pixbuf_loader_new  gdk_pixbuf_loader_new;
210 alias c_gdk_pixbuf_loader_new_with_type  gdk_pixbuf_loader_new_with_type;
211 alias c_gdk_pixbuf_loader_new_with_mime_type  gdk_pixbuf_loader_new_with_mime_type;
212 alias c_gdk_pixbuf_loader_get_format  gdk_pixbuf_loader_get_format;
213 alias c_gdk_pixbuf_loader_write  gdk_pixbuf_loader_write;
214 alias c_gdk_pixbuf_loader_write_bytes  gdk_pixbuf_loader_write_bytes;
215 alias c_gdk_pixbuf_loader_set_size  gdk_pixbuf_loader_set_size;
216 alias c_gdk_pixbuf_loader_get_pixbuf  gdk_pixbuf_loader_get_pixbuf;
217 alias c_gdk_pixbuf_loader_get_animation  gdk_pixbuf_loader_get_animation;
218 alias c_gdk_pixbuf_loader_close  gdk_pixbuf_loader_close;
219 
220 // gdkpixbuf.PixbufFormat
221 
222 alias c_gdk_pixbuf_set_option  gdk_pixbuf_set_option;
223 alias c_gdk_pixbuf_get_formats  gdk_pixbuf_get_formats;
224 alias c_gdk_pixbuf_format_copy  gdk_pixbuf_format_copy;
225 alias c_gdk_pixbuf_format_free  gdk_pixbuf_format_free;
226 alias c_gdk_pixbuf_format_get_name  gdk_pixbuf_format_get_name;
227 alias c_gdk_pixbuf_format_get_description  gdk_pixbuf_format_get_description;
228 alias c_gdk_pixbuf_format_get_mime_types  gdk_pixbuf_format_get_mime_types;
229 alias c_gdk_pixbuf_format_get_extensions  gdk_pixbuf_format_get_extensions;
230 alias c_gdk_pixbuf_format_is_writable  gdk_pixbuf_format_is_writable;
231 alias c_gdk_pixbuf_format_is_scalable  gdk_pixbuf_format_is_scalable;
232 alias c_gdk_pixbuf_format_is_disabled  gdk_pixbuf_format_is_disabled;
233 alias c_gdk_pixbuf_format_set_disabled  gdk_pixbuf_format_set_disabled;
234 alias c_gdk_pixbuf_format_get_license  gdk_pixbuf_format_get_license;