2 * This file is part of duit.
4 * duit is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU Lesser General Public License as published by
6 * the Free Software Foundation; either version 2.1 of the License, or
7 * (at your option) any later version.
9 * duit is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU Lesser General Public License for more details.
14 * You should have received a copy of the GNU Lesser General Public License
15 * along with duit; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19 // generated automatically - do not change
20 // find conversion definition on APILookup.txt
21 // implement new conversion functionalities on the wrap.utils pakage
23 // Adapted from John Reimer's DUI loader modules
28 private import std
.stdio
;
29 private import gdkpixbuf
.gdkpixbuftypes
;
30 private import lib
.Loader
;
31 private import lib
.paths
;
33 private Linker gdkpixbuf_Linker
;
37 gdkpixbuf_Linker
= new Linker(libPath
~ importLibs
[LIBRARY
.GDKPIXBUF
] );
38 gdkpixbuf_Linker
.link(gdkpixbufLinks
);
39 debug writefln("* Finished static this(): gdkpixbuf");
44 delete gdkpixbuf_Linker
;
45 debug writefln("* Finished static ~this(): gdkpixbuf");
52 gpointer
function(GdkPixdata
* pixdata
, GdkPixbuf
* pixbuf
, gboolean useRle
)gdk_pixdata_from_pixbuf
;
53 GdkPixbuf
* function(GdkPixdata
* pixdata
, gboolean copyPixels
, GError
** error
)gdk_pixbuf_from_pixdata
;
54 guint8
* function(GdkPixdata
* pixdata
, guint
* streamLengthP
)gdk_pixdata_serialize
;
55 gboolean
function(GdkPixdata
* pixdata
, guint streamLength
, guint8
* stream
, GError
** error
)gdk_pixdata_deserialize
;
56 GString
* function(GdkPixdata
* pixdata
, gchar
* name
, GdkPixdataDumpType dumpType
)gdk_pixdata_to_csource
;
58 // gdkpixbuf.PixbufAnimation
60 GdkPixbufAnimation
* function(char* filename
, GError
** error
)gdk_pixbuf_animation_new_from_file
;
61 GdkPixbufAnimation
* function(GdkPixbufAnimation
* animation
)gdk_pixbuf_animation_ref
;
62 void function(GdkPixbufAnimation
* animation
)gdk_pixbuf_animation_unref
;
63 int function(GdkPixbufAnimation
* animation
)gdk_pixbuf_animation_get_width
;
64 int function(GdkPixbufAnimation
* animation
)gdk_pixbuf_animation_get_height
;
65 GdkPixbufAnimationIter
* function(GdkPixbufAnimation
* animation
, GTimeVal
* startTime
)gdk_pixbuf_animation_get_iter
;
66 gboolean
function(GdkPixbufAnimation
* animation
)gdk_pixbuf_animation_is_static_image
;
67 GdkPixbuf
* function(GdkPixbufAnimation
* animation
)gdk_pixbuf_animation_get_static_image
;
68 gboolean
function(GdkPixbufAnimationIter
* iter
, GTimeVal
* currentTime
)gdk_pixbuf_animation_iter_advance
;
69 int function(GdkPixbufAnimationIter
* iter
)gdk_pixbuf_animation_iter_get_delay_time
;
70 gboolean
function(GdkPixbufAnimationIter
* iter
)gdk_pixbuf_animation_iter_on_currently_loading_frame
;
71 GdkPixbuf
* function(GdkPixbufAnimationIter
* iter
)gdk_pixbuf_animation_iter_get_pixbuf
;
72 GdkPixbufSimpleAnim
* function(gint width
, gint height
, gfloat rate
)gdk_pixbuf_simple_anim_new
;
73 void function(GdkPixbufSimpleAnim
* animation
, GdkPixbuf
* pixbuf
)gdk_pixbuf_simple_anim_add_frame
;
75 // gdkpixbuf.PixbufLoader
77 GdkPixbufLoader
* function()gdk_pixbuf_loader_new
;
78 GdkPixbufLoader
* function(char* imageType
, GError
** error
)gdk_pixbuf_loader_new_with_type
;
79 GdkPixbufLoader
* function(char* mimeType
, GError
** error
)gdk_pixbuf_loader_new_with_mime_type
;
80 GdkPixbufFormat
* function(GdkPixbufLoader
* loader
)gdk_pixbuf_loader_get_format
;
81 gboolean
function(GdkPixbufLoader
* loader
, guchar
* buf
, gsize count
, GError
** error
)gdk_pixbuf_loader_write
;
82 void function(GdkPixbufLoader
* loader
, int width
, int height
)gdk_pixbuf_loader_set_size
;
83 GdkPixbuf
* function(GdkPixbufLoader
* loader
)gdk_pixbuf_loader_get_pixbuf
;
84 GdkPixbufAnimation
* function(GdkPixbufLoader
* loader
)gdk_pixbuf_loader_get_animation
;
85 gboolean
function(GdkPixbufLoader
* loader
, GError
** error
)gdk_pixbuf_loader_close
;
87 // gdkpixbuf.PixbufFormat
89 gboolean
function(GdkPixbuf
* pixbuf
, gchar
* key
, gchar
* value
)gdk_pixbuf_set_option
;
90 GSList
* function()gdk_pixbuf_get_formats
;
91 gchar
* function(GdkPixbufFormat
* format
)gdk_pixbuf_format_get_name
;
92 gchar
* function(GdkPixbufFormat
* format
)gdk_pixbuf_format_get_description
;
93 gchar
** function(GdkPixbufFormat
* format
)gdk_pixbuf_format_get_mime_types
;
94 gchar
** function(GdkPixbufFormat
* format
)gdk_pixbuf_format_get_extensions
;
95 gboolean
function(GdkPixbufFormat
* format
)gdk_pixbuf_format_is_writable
;
96 gboolean
function(GdkPixbufFormat
* format
)gdk_pixbuf_format_is_scalable
;
97 gboolean
function(GdkPixbufFormat
* format
)gdk_pixbuf_format_is_disabled
;
98 void function(GdkPixbufFormat
* format
, gboolean disabled
)gdk_pixbuf_format_set_disabled
;
99 gchar
* function(GdkPixbufFormat
* format
)gdk_pixbuf_format_get_license
;
100 GdkPixbufFormat
* function(gchar
* filename
, gint
* width
, gint
* height
)gdk_pixbuf_get_file_info
;
105 Symbol
[] gdkpixbufLinks
=
108 { "gdk_pixdata_from_pixbuf", cast(void**)& gdk_pixdata_from_pixbuf
},
109 { "gdk_pixbuf_from_pixdata", cast(void**)& gdk_pixbuf_from_pixdata
},
110 { "gdk_pixdata_serialize", cast(void**)& gdk_pixdata_serialize
},
111 { "gdk_pixdata_deserialize", cast(void**)& gdk_pixdata_deserialize
},
112 { "gdk_pixdata_to_csource", cast(void**)& gdk_pixdata_to_csource
},
113 { "gdk_pixbuf_animation_new_from_file", cast(void**)& gdk_pixbuf_animation_new_from_file
},
114 { "gdk_pixbuf_animation_ref", cast(void**)& gdk_pixbuf_animation_ref
},
115 { "gdk_pixbuf_animation_unref", cast(void**)& gdk_pixbuf_animation_unref
},
116 { "gdk_pixbuf_animation_get_width", cast(void**)& gdk_pixbuf_animation_get_width
},
117 { "gdk_pixbuf_animation_get_height", cast(void**)& gdk_pixbuf_animation_get_height
},
118 { "gdk_pixbuf_animation_get_iter", cast(void**)& gdk_pixbuf_animation_get_iter
},
119 { "gdk_pixbuf_animation_is_static_image", cast(void**)& gdk_pixbuf_animation_is_static_image
},
120 { "gdk_pixbuf_animation_get_static_image", cast(void**)& gdk_pixbuf_animation_get_static_image
},
121 { "gdk_pixbuf_animation_iter_advance", cast(void**)& gdk_pixbuf_animation_iter_advance
},
122 { "gdk_pixbuf_animation_iter_get_delay_time", cast(void**)& gdk_pixbuf_animation_iter_get_delay_time
},
123 { "gdk_pixbuf_animation_iter_on_currently_loading_frame", cast(void**)& gdk_pixbuf_animation_iter_on_currently_loading_frame
},
124 { "gdk_pixbuf_animation_iter_get_pixbuf", cast(void**)& gdk_pixbuf_animation_iter_get_pixbuf
},
125 { "gdk_pixbuf_simple_anim_new", cast(void**)& gdk_pixbuf_simple_anim_new
},
126 { "gdk_pixbuf_simple_anim_add_frame", cast(void**)& gdk_pixbuf_simple_anim_add_frame
},
127 { "gdk_pixbuf_loader_new", cast(void**)& gdk_pixbuf_loader_new
},
128 { "gdk_pixbuf_loader_new_with_type", cast(void**)& gdk_pixbuf_loader_new_with_type
},
129 { "gdk_pixbuf_loader_new_with_mime_type", cast(void**)& gdk_pixbuf_loader_new_with_mime_type
},
130 { "gdk_pixbuf_loader_get_format", cast(void**)& gdk_pixbuf_loader_get_format
},
131 { "gdk_pixbuf_loader_write", cast(void**)& gdk_pixbuf_loader_write
},
132 { "gdk_pixbuf_loader_set_size", cast(void**)& gdk_pixbuf_loader_set_size
},
133 { "gdk_pixbuf_loader_get_pixbuf", cast(void**)& gdk_pixbuf_loader_get_pixbuf
},
134 { "gdk_pixbuf_loader_get_animation", cast(void**)& gdk_pixbuf_loader_get_animation
},
135 { "gdk_pixbuf_loader_close", cast(void**)& gdk_pixbuf_loader_close
},
136 { "gdk_pixbuf_set_option", cast(void**)& gdk_pixbuf_set_option
},
137 { "gdk_pixbuf_get_formats", cast(void**)& gdk_pixbuf_get_formats
},
138 { "gdk_pixbuf_format_get_name", cast(void**)& gdk_pixbuf_format_get_name
},
139 { "gdk_pixbuf_format_get_description", cast(void**)& gdk_pixbuf_format_get_description
},
140 { "gdk_pixbuf_format_get_mime_types", cast(void**)& gdk_pixbuf_format_get_mime_types
},
141 { "gdk_pixbuf_format_get_extensions", cast(void**)& gdk_pixbuf_format_get_extensions
},
142 { "gdk_pixbuf_format_is_writable", cast(void**)& gdk_pixbuf_format_is_writable
},
143 { "gdk_pixbuf_format_is_scalable", cast(void**)& gdk_pixbuf_format_is_scalable
},
144 { "gdk_pixbuf_format_is_disabled", cast(void**)& gdk_pixbuf_format_is_disabled
},
145 { "gdk_pixbuf_format_set_disabled", cast(void**)& gdk_pixbuf_format_set_disabled
},
146 { "gdk_pixbuf_format_get_license", cast(void**)& gdk_pixbuf_format_get_license
},
147 { "gdk_pixbuf_get_file_info", cast(void**)& gdk_pixbuf_get_file_info
},