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 version(Tango) 28 private import tango.stdc.stdio; 29 else 30 private import std.stdio; 31 32 private import gtkc.gdkpixbuftypes; 33 private import gtkc.Loader; 34 private import gtkc.paths; 35 36 mixin( _shared ~ "static this() 37 { 38 // gdkpixbuf.Pixdata 39 40 Linker.link(gdk_pixdata_from_pixbuf, \"gdk_pixdata_from_pixbuf\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 41 Linker.link(gdk_pixbuf_from_pixdata, \"gdk_pixbuf_from_pixdata\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 42 Linker.link(gdk_pixdata_serialize, \"gdk_pixdata_serialize\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 43 Linker.link(gdk_pixdata_deserialize, \"gdk_pixdata_deserialize\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 44 Linker.link(gdk_pixdata_to_csource, \"gdk_pixdata_to_csource\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 45 46 // gdkpixbuf.PixbufAnimation 47 48 Linker.link(gdk_pixbuf_animation_new_from_file, \"gdk_pixbuf_animation_new_from_file\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 49 Linker.link(gdk_pixbuf_animation_new_from_resource, \"gdk_pixbuf_animation_new_from_resource\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 50 Linker.link(gdk_pixbuf_animation_new_from_stream, \"gdk_pixbuf_animation_new_from_stream\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 51 Linker.link(gdk_pixbuf_animation_new_from_stream_async, \"gdk_pixbuf_animation_new_from_stream_async\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 52 Linker.link(gdk_pixbuf_animation_new_from_stream_finish, \"gdk_pixbuf_animation_new_from_stream_finish\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 53 Linker.link(gdk_pixbuf_animation_ref, \"gdk_pixbuf_animation_ref\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 54 Linker.link(gdk_pixbuf_animation_unref, \"gdk_pixbuf_animation_unref\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 55 Linker.link(gdk_pixbuf_animation_get_width, \"gdk_pixbuf_animation_get_width\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 56 Linker.link(gdk_pixbuf_animation_get_height, \"gdk_pixbuf_animation_get_height\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 57 Linker.link(gdk_pixbuf_animation_get_iter, \"gdk_pixbuf_animation_get_iter\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 58 Linker.link(gdk_pixbuf_animation_is_static_image, \"gdk_pixbuf_animation_is_static_image\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 59 Linker.link(gdk_pixbuf_animation_get_static_image, \"gdk_pixbuf_animation_get_static_image\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 60 61 // gdkpixbuf.PixbufAnimationIter 62 63 Linker.link(gdk_pixbuf_animation_iter_advance, \"gdk_pixbuf_animation_iter_advance\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 64 Linker.link(gdk_pixbuf_animation_iter_get_delay_time, \"gdk_pixbuf_animation_iter_get_delay_time\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 65 Linker.link(gdk_pixbuf_animation_iter_on_currently_loading_frame, \"gdk_pixbuf_animation_iter_on_currently_loading_frame\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 66 Linker.link(gdk_pixbuf_animation_iter_get_pixbuf, \"gdk_pixbuf_animation_iter_get_pixbuf\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 67 68 // gdkpixbuf.PixbufSimpleAnimation 69 70 Linker.link(gdk_pixbuf_simple_anim_new, \"gdk_pixbuf_simple_anim_new\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 71 Linker.link(gdk_pixbuf_simple_anim_add_frame, \"gdk_pixbuf_simple_anim_add_frame\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 72 Linker.link(gdk_pixbuf_simple_anim_set_loop, \"gdk_pixbuf_simple_anim_set_loop\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 73 Linker.link(gdk_pixbuf_simple_anim_get_loop, \"gdk_pixbuf_simple_anim_get_loop\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 74 75 // gdkpixbuf.PixbufLoader 76 77 Linker.link(gdk_pixbuf_loader_new, \"gdk_pixbuf_loader_new\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 78 Linker.link(gdk_pixbuf_loader_new_with_type, \"gdk_pixbuf_loader_new_with_type\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 79 Linker.link(gdk_pixbuf_loader_new_with_mime_type, \"gdk_pixbuf_loader_new_with_mime_type\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 80 Linker.link(gdk_pixbuf_loader_get_format, \"gdk_pixbuf_loader_get_format\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 81 Linker.link(gdk_pixbuf_loader_write, \"gdk_pixbuf_loader_write\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 82 Linker.link(gdk_pixbuf_loader_write_bytes, \"gdk_pixbuf_loader_write_bytes\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 83 Linker.link(gdk_pixbuf_loader_set_size, \"gdk_pixbuf_loader_set_size\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 84 Linker.link(gdk_pixbuf_loader_get_pixbuf, \"gdk_pixbuf_loader_get_pixbuf\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 85 Linker.link(gdk_pixbuf_loader_get_animation, \"gdk_pixbuf_loader_get_animation\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 86 Linker.link(gdk_pixbuf_loader_close, \"gdk_pixbuf_loader_close\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 87 88 // gdkpixbuf.PixbufFormat 89 90 Linker.link(gdk_pixbuf_set_option, \"gdk_pixbuf_set_option\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 91 Linker.link(gdk_pixbuf_get_formats, \"gdk_pixbuf_get_formats\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 92 Linker.link(gdk_pixbuf_format_copy, \"gdk_pixbuf_format_copy\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 93 Linker.link(gdk_pixbuf_format_free, \"gdk_pixbuf_format_free\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 94 Linker.link(gdk_pixbuf_format_get_name, \"gdk_pixbuf_format_get_name\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 95 Linker.link(gdk_pixbuf_format_get_description, \"gdk_pixbuf_format_get_description\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 96 Linker.link(gdk_pixbuf_format_get_mime_types, \"gdk_pixbuf_format_get_mime_types\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 97 Linker.link(gdk_pixbuf_format_get_extensions, \"gdk_pixbuf_format_get_extensions\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 98 Linker.link(gdk_pixbuf_format_is_writable, \"gdk_pixbuf_format_is_writable\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 99 Linker.link(gdk_pixbuf_format_is_scalable, \"gdk_pixbuf_format_is_scalable\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 100 Linker.link(gdk_pixbuf_format_is_disabled, \"gdk_pixbuf_format_is_disabled\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 101 Linker.link(gdk_pixbuf_format_set_disabled, \"gdk_pixbuf_format_set_disabled\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 102 Linker.link(gdk_pixbuf_format_get_license, \"gdk_pixbuf_format_get_license\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 103 }"); 104 105 mixin( gshared ~"extern(C) 106 { 107 // gdkpixbuf.Pixdata 108 109 gpointer function(GdkPixdata* pixdata, GdkPixbuf* pixbuf, gboolean useRle) c_gdk_pixdata_from_pixbuf; 110 GdkPixbuf* function(GdkPixdata* pixdata, gboolean copyPixels, GError** error) c_gdk_pixbuf_from_pixdata; 111 guint8* function(GdkPixdata* pixdata, guint* streamLengthP) c_gdk_pixdata_serialize; 112 gboolean function(GdkPixdata* pixdata, guint streamLength, guint8* stream, GError** error) c_gdk_pixdata_deserialize; 113 GString* function(GdkPixdata* pixdata, gchar* name, GdkPixdataDumpType dumpType) c_gdk_pixdata_to_csource; 114 115 // gdkpixbuf.PixbufAnimation 116 117 GdkPixbufAnimation* function(char* filename, GError** error) c_gdk_pixbuf_animation_new_from_file; 118 GdkPixbufAnimation* function(char* resourcePath, GError** error) c_gdk_pixbuf_animation_new_from_resource; 119 GdkPixbufAnimation* function(GInputStream* stream, GCancellable* cancellable, GError** error) c_gdk_pixbuf_animation_new_from_stream; 120 void function(GInputStream* stream, GCancellable* cancellable, GAsyncReadyCallback callback, void* userData) c_gdk_pixbuf_animation_new_from_stream_async; 121 GdkPixbufAnimation* function(GAsyncResult* asyncResult, GError** error) c_gdk_pixbuf_animation_new_from_stream_finish; 122 GdkPixbufAnimation* function(GdkPixbufAnimation* animation) c_gdk_pixbuf_animation_ref; 123 void function(GdkPixbufAnimation* animation) c_gdk_pixbuf_animation_unref; 124 int function(GdkPixbufAnimation* animation) c_gdk_pixbuf_animation_get_width; 125 int function(GdkPixbufAnimation* animation) c_gdk_pixbuf_animation_get_height; 126 GdkPixbufAnimationIter* function(GdkPixbufAnimation* animation, GTimeVal* startTime) c_gdk_pixbuf_animation_get_iter; 127 gboolean function(GdkPixbufAnimation* animation) c_gdk_pixbuf_animation_is_static_image; 128 GdkPixbuf* function(GdkPixbufAnimation* animation) c_gdk_pixbuf_animation_get_static_image; 129 130 // gdkpixbuf.PixbufAnimationIter 131 132 gboolean function(GdkPixbufAnimationIter* iter, GTimeVal* currentTime) c_gdk_pixbuf_animation_iter_advance; 133 int function(GdkPixbufAnimationIter* iter) c_gdk_pixbuf_animation_iter_get_delay_time; 134 gboolean function(GdkPixbufAnimationIter* iter) c_gdk_pixbuf_animation_iter_on_currently_loading_frame; 135 GdkPixbuf* function(GdkPixbufAnimationIter* iter) c_gdk_pixbuf_animation_iter_get_pixbuf; 136 137 // gdkpixbuf.PixbufSimpleAnimation 138 139 GdkPixbufSimpleAnim* function(gint width, gint height, gfloat rate) c_gdk_pixbuf_simple_anim_new; 140 void function(GdkPixbufSimpleAnim* animation, GdkPixbuf* pixbuf) c_gdk_pixbuf_simple_anim_add_frame; 141 void function(GdkPixbufSimpleAnim* animation, gboolean loop) c_gdk_pixbuf_simple_anim_set_loop; 142 gboolean function(GdkPixbufSimpleAnim* animation) c_gdk_pixbuf_simple_anim_get_loop; 143 144 // gdkpixbuf.PixbufLoader 145 146 GdkPixbufLoader* function() c_gdk_pixbuf_loader_new; 147 GdkPixbufLoader* function(char* imageType, GError** error) c_gdk_pixbuf_loader_new_with_type; 148 GdkPixbufLoader* function(char* mimeType, GError** error) c_gdk_pixbuf_loader_new_with_mime_type; 149 GdkPixbufFormat* function(GdkPixbufLoader* loader) c_gdk_pixbuf_loader_get_format; 150 gboolean function(GdkPixbufLoader* loader, guchar* buf, gsize count, GError** error) c_gdk_pixbuf_loader_write; 151 gboolean function(GdkPixbufLoader* loader, GBytes* buffer, GError** error) c_gdk_pixbuf_loader_write_bytes; 152 void function(GdkPixbufLoader* loader, int width, int height) c_gdk_pixbuf_loader_set_size; 153 GdkPixbuf* function(GdkPixbufLoader* loader) c_gdk_pixbuf_loader_get_pixbuf; 154 GdkPixbufAnimation* function(GdkPixbufLoader* loader) c_gdk_pixbuf_loader_get_animation; 155 gboolean function(GdkPixbufLoader* loader, GError** error) c_gdk_pixbuf_loader_close; 156 157 // gdkpixbuf.PixbufFormat 158 159 gboolean function(GdkPixbuf* pixbuf, gchar* key, gchar* value) c_gdk_pixbuf_set_option; 160 GSList* function() c_gdk_pixbuf_get_formats; 161 GdkPixbufFormat* function(GdkPixbufFormat* format) c_gdk_pixbuf_format_copy; 162 void function(GdkPixbufFormat* format) c_gdk_pixbuf_format_free; 163 gchar* function(GdkPixbufFormat* format) c_gdk_pixbuf_format_get_name; 164 gchar* function(GdkPixbufFormat* format) c_gdk_pixbuf_format_get_description; 165 gchar** function(GdkPixbufFormat* format) c_gdk_pixbuf_format_get_mime_types; 166 gchar** function(GdkPixbufFormat* format) c_gdk_pixbuf_format_get_extensions; 167 gboolean function(GdkPixbufFormat* format) c_gdk_pixbuf_format_is_writable; 168 gboolean function(GdkPixbufFormat* format) c_gdk_pixbuf_format_is_scalable; 169 gboolean function(GdkPixbufFormat* format) c_gdk_pixbuf_format_is_disabled; 170 void function(GdkPixbufFormat* format, gboolean disabled) c_gdk_pixbuf_format_set_disabled; 171 gchar* function(GdkPixbufFormat* format) c_gdk_pixbuf_format_get_license; 172 }"); 173 174 // gdkpixbuf.Pixdata 175 176 alias c_gdk_pixdata_from_pixbuf gdk_pixdata_from_pixbuf; 177 alias c_gdk_pixbuf_from_pixdata gdk_pixbuf_from_pixdata; 178 alias c_gdk_pixdata_serialize gdk_pixdata_serialize; 179 alias c_gdk_pixdata_deserialize gdk_pixdata_deserialize; 180 alias c_gdk_pixdata_to_csource gdk_pixdata_to_csource; 181 182 // gdkpixbuf.PixbufAnimation 183 184 alias c_gdk_pixbuf_animation_new_from_file gdk_pixbuf_animation_new_from_file; 185 alias c_gdk_pixbuf_animation_new_from_resource gdk_pixbuf_animation_new_from_resource; 186 alias c_gdk_pixbuf_animation_new_from_stream gdk_pixbuf_animation_new_from_stream; 187 alias c_gdk_pixbuf_animation_new_from_stream_async gdk_pixbuf_animation_new_from_stream_async; 188 alias c_gdk_pixbuf_animation_new_from_stream_finish gdk_pixbuf_animation_new_from_stream_finish; 189 alias c_gdk_pixbuf_animation_ref gdk_pixbuf_animation_ref; 190 alias c_gdk_pixbuf_animation_unref gdk_pixbuf_animation_unref; 191 alias c_gdk_pixbuf_animation_get_width gdk_pixbuf_animation_get_width; 192 alias c_gdk_pixbuf_animation_get_height gdk_pixbuf_animation_get_height; 193 alias c_gdk_pixbuf_animation_get_iter gdk_pixbuf_animation_get_iter; 194 alias c_gdk_pixbuf_animation_is_static_image gdk_pixbuf_animation_is_static_image; 195 alias c_gdk_pixbuf_animation_get_static_image gdk_pixbuf_animation_get_static_image; 196 197 // gdkpixbuf.PixbufAnimationIter 198 199 alias c_gdk_pixbuf_animation_iter_advance gdk_pixbuf_animation_iter_advance; 200 alias c_gdk_pixbuf_animation_iter_get_delay_time gdk_pixbuf_animation_iter_get_delay_time; 201 alias c_gdk_pixbuf_animation_iter_on_currently_loading_frame gdk_pixbuf_animation_iter_on_currently_loading_frame; 202 alias c_gdk_pixbuf_animation_iter_get_pixbuf gdk_pixbuf_animation_iter_get_pixbuf; 203 204 // gdkpixbuf.PixbufSimpleAnimation 205 206 alias c_gdk_pixbuf_simple_anim_new gdk_pixbuf_simple_anim_new; 207 alias c_gdk_pixbuf_simple_anim_add_frame gdk_pixbuf_simple_anim_add_frame; 208 alias c_gdk_pixbuf_simple_anim_set_loop gdk_pixbuf_simple_anim_set_loop; 209 alias c_gdk_pixbuf_simple_anim_get_loop gdk_pixbuf_simple_anim_get_loop; 210 211 // gdkpixbuf.PixbufLoader 212 213 alias c_gdk_pixbuf_loader_new gdk_pixbuf_loader_new; 214 alias c_gdk_pixbuf_loader_new_with_type gdk_pixbuf_loader_new_with_type; 215 alias c_gdk_pixbuf_loader_new_with_mime_type gdk_pixbuf_loader_new_with_mime_type; 216 alias c_gdk_pixbuf_loader_get_format gdk_pixbuf_loader_get_format; 217 alias c_gdk_pixbuf_loader_write gdk_pixbuf_loader_write; 218 alias c_gdk_pixbuf_loader_write_bytes gdk_pixbuf_loader_write_bytes; 219 alias c_gdk_pixbuf_loader_set_size gdk_pixbuf_loader_set_size; 220 alias c_gdk_pixbuf_loader_get_pixbuf gdk_pixbuf_loader_get_pixbuf; 221 alias c_gdk_pixbuf_loader_get_animation gdk_pixbuf_loader_get_animation; 222 alias c_gdk_pixbuf_loader_close gdk_pixbuf_loader_close; 223 224 // gdkpixbuf.PixbufFormat 225 226 alias c_gdk_pixbuf_set_option gdk_pixbuf_set_option; 227 alias c_gdk_pixbuf_get_formats gdk_pixbuf_get_formats; 228 alias c_gdk_pixbuf_format_copy gdk_pixbuf_format_copy; 229 alias c_gdk_pixbuf_format_free gdk_pixbuf_format_free; 230 alias c_gdk_pixbuf_format_get_name gdk_pixbuf_format_get_name; 231 alias c_gdk_pixbuf_format_get_description gdk_pixbuf_format_get_description; 232 alias c_gdk_pixbuf_format_get_mime_types gdk_pixbuf_format_get_mime_types; 233 alias c_gdk_pixbuf_format_get_extensions gdk_pixbuf_format_get_extensions; 234 alias c_gdk_pixbuf_format_is_writable gdk_pixbuf_format_is_writable; 235 alias c_gdk_pixbuf_format_is_scalable gdk_pixbuf_format_is_scalable; 236 alias c_gdk_pixbuf_format_is_disabled gdk_pixbuf_format_is_disabled; 237 alias c_gdk_pixbuf_format_set_disabled gdk_pixbuf_format_set_disabled; 238 alias c_gdk_pixbuf_format_get_license gdk_pixbuf_format_get_license;