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_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_set_size, \"gdk_pixbuf_loader_set_size\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 79 Linker.link(gdk_pixbuf_loader_get_pixbuf, \"gdk_pixbuf_loader_get_pixbuf\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 80 Linker.link(gdk_pixbuf_loader_get_animation, \"gdk_pixbuf_loader_get_animation\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 81 Linker.link(gdk_pixbuf_loader_close, \"gdk_pixbuf_loader_close\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 82 83 // gdkpixbuf.PixbufFormat 84 85 Linker.link(gdk_pixbuf_set_option, \"gdk_pixbuf_set_option\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 86 Linker.link(gdk_pixbuf_get_formats, \"gdk_pixbuf_get_formats\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 87 Linker.link(gdk_pixbuf_format_copy, \"gdk_pixbuf_format_copy\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 88 Linker.link(gdk_pixbuf_format_free, \"gdk_pixbuf_format_free\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 89 Linker.link(gdk_pixbuf_format_get_name, \"gdk_pixbuf_format_get_name\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 90 Linker.link(gdk_pixbuf_format_get_description, \"gdk_pixbuf_format_get_description\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 91 Linker.link(gdk_pixbuf_format_get_mime_types, \"gdk_pixbuf_format_get_mime_types\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 92 Linker.link(gdk_pixbuf_format_get_extensions, \"gdk_pixbuf_format_get_extensions\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 93 Linker.link(gdk_pixbuf_format_is_writable, \"gdk_pixbuf_format_is_writable\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 94 Linker.link(gdk_pixbuf_format_is_scalable, \"gdk_pixbuf_format_is_scalable\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 95 Linker.link(gdk_pixbuf_format_is_disabled, \"gdk_pixbuf_format_is_disabled\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 96 Linker.link(gdk_pixbuf_format_set_disabled, \"gdk_pixbuf_format_set_disabled\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 97 Linker.link(gdk_pixbuf_format_get_license, \"gdk_pixbuf_format_get_license\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 98 Linker.link(gdk_pixbuf_get_file_info, \"gdk_pixbuf_get_file_info\", LIBRARY.GDKPIXBUF, LIBRARY.GDKPIXBUF); 99 }"); 100 101 mixin( 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(GdkPixbufAnimation* animation) c_gdk_pixbuf_animation_ref; 115 void function(GdkPixbufAnimation* animation) c_gdk_pixbuf_animation_unref; 116 int function(GdkPixbufAnimation* animation) c_gdk_pixbuf_animation_get_width; 117 int function(GdkPixbufAnimation* animation) c_gdk_pixbuf_animation_get_height; 118 GdkPixbufAnimationIter* function(GdkPixbufAnimation* animation, GTimeVal* startTime) c_gdk_pixbuf_animation_get_iter; 119 gboolean function(GdkPixbufAnimation* animation) c_gdk_pixbuf_animation_is_static_image; 120 GdkPixbuf* function(GdkPixbufAnimation* animation) c_gdk_pixbuf_animation_get_static_image; 121 122 // gdkpixbuf.PixbufAnimationIter 123 124 gboolean function(GdkPixbufAnimationIter* iter, GTimeVal* currentTime) c_gdk_pixbuf_animation_iter_advance; 125 int function(GdkPixbufAnimationIter* iter) c_gdk_pixbuf_animation_iter_get_delay_time; 126 gboolean function(GdkPixbufAnimationIter* iter) c_gdk_pixbuf_animation_iter_on_currently_loading_frame; 127 GdkPixbuf* function(GdkPixbufAnimationIter* iter) c_gdk_pixbuf_animation_iter_get_pixbuf; 128 129 // gdkpixbuf.PixbufSimpleAnimation 130 131 GdkPixbufSimpleAnim* function(gint width, gint height, gfloat rate) c_gdk_pixbuf_simple_anim_new; 132 void function(GdkPixbufSimpleAnim* animation, GdkPixbuf* pixbuf) c_gdk_pixbuf_simple_anim_add_frame; 133 void function(GdkPixbufSimpleAnim* animation, gboolean loop) c_gdk_pixbuf_simple_anim_set_loop; 134 gboolean function(GdkPixbufSimpleAnim* animation) c_gdk_pixbuf_simple_anim_get_loop; 135 136 // gdkpixbuf.PixbufLoader 137 138 GdkPixbufLoader* function() c_gdk_pixbuf_loader_new; 139 GdkPixbufLoader* function(char* imageType, GError** error) c_gdk_pixbuf_loader_new_with_type; 140 GdkPixbufLoader* function(char* mimeType, GError** error) c_gdk_pixbuf_loader_new_with_mime_type; 141 GdkPixbufFormat* function(GdkPixbufLoader* loader) c_gdk_pixbuf_loader_get_format; 142 gboolean function(GdkPixbufLoader* loader, guchar* buf, gsize count, GError** error) c_gdk_pixbuf_loader_write; 143 void function(GdkPixbufLoader* loader, int width, int height) c_gdk_pixbuf_loader_set_size; 144 GdkPixbuf* function(GdkPixbufLoader* loader) c_gdk_pixbuf_loader_get_pixbuf; 145 GdkPixbufAnimation* function(GdkPixbufLoader* loader) c_gdk_pixbuf_loader_get_animation; 146 gboolean function(GdkPixbufLoader* loader, GError** error) c_gdk_pixbuf_loader_close; 147 148 // gdkpixbuf.PixbufFormat 149 150 gboolean function(GdkPixbuf* pixbuf, gchar* key, gchar* value) c_gdk_pixbuf_set_option; 151 GSList* function() c_gdk_pixbuf_get_formats; 152 GdkPixbufFormat* function(GdkPixbufFormat* format) c_gdk_pixbuf_format_copy; 153 void function(GdkPixbufFormat* format) c_gdk_pixbuf_format_free; 154 gchar* function(GdkPixbufFormat* format) c_gdk_pixbuf_format_get_name; 155 gchar* function(GdkPixbufFormat* format) c_gdk_pixbuf_format_get_description; 156 gchar** function(GdkPixbufFormat* format) c_gdk_pixbuf_format_get_mime_types; 157 gchar** function(GdkPixbufFormat* format) c_gdk_pixbuf_format_get_extensions; 158 gboolean function(GdkPixbufFormat* format) c_gdk_pixbuf_format_is_writable; 159 gboolean function(GdkPixbufFormat* format) c_gdk_pixbuf_format_is_scalable; 160 gboolean function(GdkPixbufFormat* format) c_gdk_pixbuf_format_is_disabled; 161 void function(GdkPixbufFormat* format, gboolean disabled) c_gdk_pixbuf_format_set_disabled; 162 gchar* function(GdkPixbufFormat* format) c_gdk_pixbuf_format_get_license; 163 GdkPixbufFormat* function(gchar* filename, gint* width, gint* height) c_gdk_pixbuf_get_file_info; 164 }"); 165 166 // gdkpixbuf.Pixdata 167 168 alias c_gdk_pixdata_from_pixbuf gdk_pixdata_from_pixbuf; 169 alias c_gdk_pixbuf_from_pixdata gdk_pixbuf_from_pixdata; 170 alias c_gdk_pixdata_serialize gdk_pixdata_serialize; 171 alias c_gdk_pixdata_deserialize gdk_pixdata_deserialize; 172 alias c_gdk_pixdata_to_csource gdk_pixdata_to_csource; 173 174 // gdkpixbuf.PixbufAnimation 175 176 alias c_gdk_pixbuf_animation_new_from_file gdk_pixbuf_animation_new_from_file; 177 alias c_gdk_pixbuf_animation_ref gdk_pixbuf_animation_ref; 178 alias c_gdk_pixbuf_animation_unref gdk_pixbuf_animation_unref; 179 alias c_gdk_pixbuf_animation_get_width gdk_pixbuf_animation_get_width; 180 alias c_gdk_pixbuf_animation_get_height gdk_pixbuf_animation_get_height; 181 alias c_gdk_pixbuf_animation_get_iter gdk_pixbuf_animation_get_iter; 182 alias c_gdk_pixbuf_animation_is_static_image gdk_pixbuf_animation_is_static_image; 183 alias c_gdk_pixbuf_animation_get_static_image gdk_pixbuf_animation_get_static_image; 184 185 // gdkpixbuf.PixbufAnimationIter 186 187 alias c_gdk_pixbuf_animation_iter_advance gdk_pixbuf_animation_iter_advance; 188 alias c_gdk_pixbuf_animation_iter_get_delay_time gdk_pixbuf_animation_iter_get_delay_time; 189 alias c_gdk_pixbuf_animation_iter_on_currently_loading_frame gdk_pixbuf_animation_iter_on_currently_loading_frame; 190 alias c_gdk_pixbuf_animation_iter_get_pixbuf gdk_pixbuf_animation_iter_get_pixbuf; 191 192 // gdkpixbuf.PixbufSimpleAnimation 193 194 alias c_gdk_pixbuf_simple_anim_new gdk_pixbuf_simple_anim_new; 195 alias c_gdk_pixbuf_simple_anim_add_frame gdk_pixbuf_simple_anim_add_frame; 196 alias c_gdk_pixbuf_simple_anim_set_loop gdk_pixbuf_simple_anim_set_loop; 197 alias c_gdk_pixbuf_simple_anim_get_loop gdk_pixbuf_simple_anim_get_loop; 198 199 // gdkpixbuf.PixbufLoader 200 201 alias c_gdk_pixbuf_loader_new gdk_pixbuf_loader_new; 202 alias c_gdk_pixbuf_loader_new_with_type gdk_pixbuf_loader_new_with_type; 203 alias c_gdk_pixbuf_loader_new_with_mime_type gdk_pixbuf_loader_new_with_mime_type; 204 alias c_gdk_pixbuf_loader_get_format gdk_pixbuf_loader_get_format; 205 alias c_gdk_pixbuf_loader_write gdk_pixbuf_loader_write; 206 alias c_gdk_pixbuf_loader_set_size gdk_pixbuf_loader_set_size; 207 alias c_gdk_pixbuf_loader_get_pixbuf gdk_pixbuf_loader_get_pixbuf; 208 alias c_gdk_pixbuf_loader_get_animation gdk_pixbuf_loader_get_animation; 209 alias c_gdk_pixbuf_loader_close gdk_pixbuf_loader_close; 210 211 // gdkpixbuf.PixbufFormat 212 213 alias c_gdk_pixbuf_set_option gdk_pixbuf_set_option; 214 alias c_gdk_pixbuf_get_formats gdk_pixbuf_get_formats; 215 alias c_gdk_pixbuf_format_copy gdk_pixbuf_format_copy; 216 alias c_gdk_pixbuf_format_free gdk_pixbuf_format_free; 217 alias c_gdk_pixbuf_format_get_name gdk_pixbuf_format_get_name; 218 alias c_gdk_pixbuf_format_get_description gdk_pixbuf_format_get_description; 219 alias c_gdk_pixbuf_format_get_mime_types gdk_pixbuf_format_get_mime_types; 220 alias c_gdk_pixbuf_format_get_extensions gdk_pixbuf_format_get_extensions; 221 alias c_gdk_pixbuf_format_is_writable gdk_pixbuf_format_is_writable; 222 alias c_gdk_pixbuf_format_is_scalable gdk_pixbuf_format_is_scalable; 223 alias c_gdk_pixbuf_format_is_disabled gdk_pixbuf_format_is_disabled; 224 alias c_gdk_pixbuf_format_set_disabled gdk_pixbuf_format_set_disabled; 225 alias c_gdk_pixbuf_format_get_license gdk_pixbuf_format_get_license; 226 alias c_gdk_pixbuf_get_file_info gdk_pixbuf_get_file_info;