1 /* librsvg-2.0.vapi generated by lt-vapigen, do not modify. */
3 [CCode (cprefix = "Rsvg", lower_case_cprefix = "rsvg_")]
6 [CCode (cheader_filename = "librsvg/rsvg.h")]
7 public class DimensionData {
13 [CCode (cheader_filename = "librsvg/rsvg.h")]
14 public class Handle : GLib.Object {
15 public bool close () throws GLib.Error;
17 [CCode (has_construct_function = false)]
18 public Handle.from_data (uchar data, size_t data_len) throws GLib.Error;
19 [CCode (has_construct_function = false)]
20 public Handle.from_file (string file_name) throws GLib.Error;
21 public unowned string get_base_uri ();
22 public unowned string get_desc ();
23 public void get_dimensions (Rsvg.DimensionData dimension_data);
24 public unowned string get_metadata ();
25 public unowned Gdk.Pixbuf get_pixbuf ();
26 public unowned Gdk.Pixbuf get_pixbuf_sub (string id);
27 public unowned string get_title ();
28 [CCode (has_construct_function = false)]
30 public bool render_cairo (Cairo.Context cr);
31 public bool render_cairo_sub (Cairo.Context cr, string id);
32 public void set_base_uri (string base_uri);
33 public void set_dpi (double dpi);
34 public void set_dpi_x_y (double dpi_x, double dpi_y);
35 public void set_size_callback (owned Rsvg.SizeFunc size_func);
36 public bool write (uchar[] buf, size_t count) throws GLib.Error;
37 public string base_uri { get; set construct; }
38 public string desc { get; }
40 public double dpi_x { get; set construct; }
42 public double dpi_y { get; set construct; }
44 public double em { get; }
46 public double ex { get; }
48 public int height { get; }
49 public string metadata { get; }
50 public string title { get; }
52 public int width { get; }
54 [CCode (cprefix = "RSVG_ERROR_", cheader_filename = "librsvg/rsvg.h")]
58 [CCode (cheader_filename = "librsvg/rsvg.h")]
59 public delegate void SizeFunc (ref int width, ref int height);
60 [CCode (cheader_filename = "librsvg/rsvg.h")]
61 public const int LIBRSVG_FEATURES_H;
62 [CCode (cheader_filename = "librsvg/rsvg.h")]
63 public const int LIBRSVG_MAJOR_VERSION;
64 [CCode (cheader_filename = "librsvg/rsvg.h")]
65 public const int LIBRSVG_MICRO_VERSION;
66 [CCode (cheader_filename = "librsvg/rsvg.h")]
67 public const int LIBRSVG_MINOR_VERSION;
68 [CCode (cheader_filename = "librsvg/rsvg.h")]
69 public const string LIBRSVG_VERSION;
70 [CCode (cheader_filename = "librsvg/rsvg.h")]
71 public static GLib.Quark error_quark ();
72 [CCode (cheader_filename = "librsvg/rsvg.h")]
73 public static void init ();
74 [CCode (cname = "librsvg_postinit", cheader_filename = "librsvg/rsvg.h")]
75 public static void librsvg_postinit (void* app, void* modinfo);
76 [CCode (cname = "librsvg_preinit", cheader_filename = "librsvg/rsvg.h")]
77 public static void librsvg_preinit (void* app, void* modinfo);
78 [CCode (cheader_filename = "librsvg/rsvg.h")]
79 public static unowned Gdk.Pixbuf pixbuf_from_file (string file_name) throws GLib.Error;
80 [CCode (cheader_filename = "librsvg/rsvg.h")]
81 public static unowned Gdk.Pixbuf pixbuf_from_file_at_max_size (string file_name, int max_width, int max_height) throws GLib.Error;
82 [CCode (cheader_filename = "librsvg/rsvg.h")]
83 public static unowned Gdk.Pixbuf pixbuf_from_file_at_size (string file_name, int width, int height) throws GLib.Error;
84 [CCode (cheader_filename = "librsvg/rsvg.h")]
85 public static unowned Gdk.Pixbuf pixbuf_from_file_at_zoom (string file_name, double x_zoom, double y_zoom) throws GLib.Error;
86 [CCode (cheader_filename = "librsvg/rsvg.h")]
87 public static unowned Gdk.Pixbuf pixbuf_from_file_at_zoom_with_max (string file_name, double x_zoom, double y_zoom, int max_width, int max_height) throws GLib.Error;
88 [CCode (cheader_filename = "librsvg/rsvg.h")]
89 public static void set_default_dpi (double dpi);
90 [CCode (cheader_filename = "librsvg/rsvg.h")]
91 public static void set_default_dpi_x_y (double dpi_x, double dpi_y);
92 [CCode (cheader_filename = "librsvg/rsvg.h")]
93 public static void term ();