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.rsvg; 26 27 import std.stdio; 28 import gtkc.rsvgtypes; 29 import gtkd.Loader; 30 31 version (Windows) 32 static immutable LIBRARY_RSVG = ["librsvg-2-2.dll"]; 33 else version (OSX) 34 static immutable LIBRARY_RSVG = ["librsvg-2.2.dylib"]; 35 else 36 static immutable LIBRARY_RSVG = ["librsvg-2.so.2"]; 37 38 shared static this() 39 { 40 // rsvg.Handle 41 42 Linker.link(rsvg_handle_get_type, "rsvg_handle_get_type", LIBRARY_RSVG); 43 Linker.link(rsvg_handle_new, "rsvg_handle_new", LIBRARY_RSVG); 44 Linker.link(rsvg_handle_new_from_data, "rsvg_handle_new_from_data", LIBRARY_RSVG); 45 Linker.link(rsvg_handle_new_from_file, "rsvg_handle_new_from_file", LIBRARY_RSVG); 46 Linker.link(rsvg_handle_new_from_gfile_sync, "rsvg_handle_new_from_gfile_sync", LIBRARY_RSVG); 47 Linker.link(rsvg_handle_new_from_stream_sync, "rsvg_handle_new_from_stream_sync", LIBRARY_RSVG); 48 Linker.link(rsvg_handle_new_with_flags, "rsvg_handle_new_with_flags", LIBRARY_RSVG); 49 Linker.link(rsvg_handle_close, "rsvg_handle_close", LIBRARY_RSVG); 50 Linker.link(rsvg_handle_get_base_uri, "rsvg_handle_get_base_uri", LIBRARY_RSVG); 51 Linker.link(rsvg_handle_get_dimensions, "rsvg_handle_get_dimensions", LIBRARY_RSVG); 52 Linker.link(rsvg_handle_get_dimensions_sub, "rsvg_handle_get_dimensions_sub", LIBRARY_RSVG); 53 Linker.link(rsvg_handle_get_pixbuf, "rsvg_handle_get_pixbuf", LIBRARY_RSVG); 54 Linker.link(rsvg_handle_get_pixbuf_sub, "rsvg_handle_get_pixbuf_sub", LIBRARY_RSVG); 55 Linker.link(rsvg_handle_get_position_sub, "rsvg_handle_get_position_sub", LIBRARY_RSVG); 56 Linker.link(rsvg_handle_has_sub, "rsvg_handle_has_sub", LIBRARY_RSVG); 57 Linker.link(rsvg_handle_read_stream_sync, "rsvg_handle_read_stream_sync", LIBRARY_RSVG); 58 Linker.link(rsvg_handle_render_cairo, "rsvg_handle_render_cairo", LIBRARY_RSVG); 59 Linker.link(rsvg_handle_render_cairo_sub, "rsvg_handle_render_cairo_sub", LIBRARY_RSVG); 60 Linker.link(rsvg_handle_set_base_gfile, "rsvg_handle_set_base_gfile", LIBRARY_RSVG); 61 Linker.link(rsvg_handle_set_base_uri, "rsvg_handle_set_base_uri", LIBRARY_RSVG); 62 Linker.link(rsvg_handle_set_dpi, "rsvg_handle_set_dpi", LIBRARY_RSVG); 63 Linker.link(rsvg_handle_set_dpi_x_y, "rsvg_handle_set_dpi_x_y", LIBRARY_RSVG); 64 Linker.link(rsvg_handle_write, "rsvg_handle_write", LIBRARY_RSVG); 65 } 66 67 __gshared extern(C) 68 { 69 70 // rsvg.Handle 71 72 GType function() c_rsvg_handle_get_type; 73 RsvgHandle* function() c_rsvg_handle_new; 74 RsvgHandle* function(ubyte* data, size_t dataLen, GError** err) c_rsvg_handle_new_from_data; 75 RsvgHandle* function(const(char)* fileName, GError** err) c_rsvg_handle_new_from_file; 76 RsvgHandle* function(GFile* file, RsvgHandleFlags flags, GCancellable* cancellable, GError** err) c_rsvg_handle_new_from_gfile_sync; 77 RsvgHandle* function(GInputStream* inputStream, GFile* baseFile, RsvgHandleFlags flags, GCancellable* cancellable, GError** err) c_rsvg_handle_new_from_stream_sync; 78 RsvgHandle* function(RsvgHandleFlags flags) c_rsvg_handle_new_with_flags; 79 int function(RsvgHandle* handle, GError** err) c_rsvg_handle_close; 80 const(char)* function(RsvgHandle* handle) c_rsvg_handle_get_base_uri; 81 void function(RsvgHandle* handle, RsvgDimensionData* dimensionData) c_rsvg_handle_get_dimensions; 82 int function(RsvgHandle* handle, RsvgDimensionData* dimensionData, const(char)* id) c_rsvg_handle_get_dimensions_sub; 83 GdkPixbuf* function(RsvgHandle* handle) c_rsvg_handle_get_pixbuf; 84 GdkPixbuf* function(RsvgHandle* handle, const(char)* id) c_rsvg_handle_get_pixbuf_sub; 85 int function(RsvgHandle* handle, RsvgPositionData* positionData, const(char)* id) c_rsvg_handle_get_position_sub; 86 int function(RsvgHandle* handle, const(char)* id) c_rsvg_handle_has_sub; 87 int function(RsvgHandle* handle, GInputStream* stream, GCancellable* cancellable, GError** err) c_rsvg_handle_read_stream_sync; 88 int function(RsvgHandle* handle, cairo_t* cr) c_rsvg_handle_render_cairo; 89 int function(RsvgHandle* handle, cairo_t* cr, const(char)* id) c_rsvg_handle_render_cairo_sub; 90 void function(RsvgHandle* handle, GFile* baseFile) c_rsvg_handle_set_base_gfile; 91 void function(RsvgHandle* handle, const(char)* baseUri) c_rsvg_handle_set_base_uri; 92 void function(RsvgHandle* handle, double dpi) c_rsvg_handle_set_dpi; 93 void function(RsvgHandle* handle, double dpiX, double dpiY) c_rsvg_handle_set_dpi_x_y; 94 int function(RsvgHandle* handle, char* buf, size_t count, GError** err) c_rsvg_handle_write; 95 } 96 97 98 // rsvg.Handle 99 100 alias c_rsvg_handle_get_type rsvg_handle_get_type; 101 alias c_rsvg_handle_new rsvg_handle_new; 102 alias c_rsvg_handle_new_from_data rsvg_handle_new_from_data; 103 alias c_rsvg_handle_new_from_file rsvg_handle_new_from_file; 104 alias c_rsvg_handle_new_from_gfile_sync rsvg_handle_new_from_gfile_sync; 105 alias c_rsvg_handle_new_from_stream_sync rsvg_handle_new_from_stream_sync; 106 alias c_rsvg_handle_new_with_flags rsvg_handle_new_with_flags; 107 alias c_rsvg_handle_close rsvg_handle_close; 108 alias c_rsvg_handle_get_base_uri rsvg_handle_get_base_uri; 109 alias c_rsvg_handle_get_dimensions rsvg_handle_get_dimensions; 110 alias c_rsvg_handle_get_dimensions_sub rsvg_handle_get_dimensions_sub; 111 alias c_rsvg_handle_get_pixbuf rsvg_handle_get_pixbuf; 112 alias c_rsvg_handle_get_pixbuf_sub rsvg_handle_get_pixbuf_sub; 113 alias c_rsvg_handle_get_position_sub rsvg_handle_get_position_sub; 114 alias c_rsvg_handle_has_sub rsvg_handle_has_sub; 115 alias c_rsvg_handle_read_stream_sync rsvg_handle_read_stream_sync; 116 alias c_rsvg_handle_render_cairo rsvg_handle_render_cairo; 117 alias c_rsvg_handle_render_cairo_sub rsvg_handle_render_cairo_sub; 118 alias c_rsvg_handle_set_base_gfile rsvg_handle_set_base_gfile; 119 alias c_rsvg_handle_set_base_uri rsvg_handle_set_base_uri; 120 alias c_rsvg_handle_set_dpi rsvg_handle_set_dpi; 121 alias c_rsvg_handle_set_dpi_x_y rsvg_handle_set_dpi_x_y; 122 alias c_rsvg_handle_write rsvg_handle_write;