1 /* librsvg-2.0.vapi generated by vapigen, do not modify. */
3 [CCode (cprefix = "Rsvg", lower_case_cprefix = "rsvg_")]
5 [CCode (cheader_filename = "librsvg/rsvg.h")]
6 public class Handle : GLib.Object {
7 public bool close () throws GLib.Error;
9 [CCode (has_construct_function = false)]
10 public Handle.from_data ([CCode (array_length = false)] uchar[] data, size_t data_len) throws GLib.Error;
11 [CCode (has_construct_function = false)]
12 public Handle.from_file (string file_name) throws GLib.Error;
13 public unowned string get_base_uri ();
14 public unowned string get_desc ();
15 public void get_dimensions (Rsvg.DimensionData dimension_data);
16 public bool get_dimensions_sub (ref Rsvg.DimensionData dimension_data, string id);
17 public unowned string get_metadata ();
18 public unowned Gdk.Pixbuf get_pixbuf ();
19 public unowned Gdk.Pixbuf get_pixbuf_sub (string id);
20 public bool get_position_sub (ref Rsvg.PositionData position_data, string id);
21 public unowned string get_title ();
22 public bool has_sub (string id);
23 [CCode (has_construct_function = false)]
25 public bool render_cairo (Cairo.Context cr);
26 public bool render_cairo_sub (Cairo.Context cr, string id);
27 public void set_base_uri (string base_uri);
28 public void set_dpi (double dpi);
29 public void set_dpi_x_y (double dpi_x, double dpi_y);
30 public void set_size_callback (owned Rsvg.SizeFunc size_func);
31 public bool write (uchar[] buf, size_t count) throws GLib.Error;
32 public string base_uri { get; set construct; }
33 public string desc { get; }
35 public double dpi_x { get; set construct; }
37 public double dpi_y { get; set construct; }
39 public double em { get; }
41 public double ex { get; }
43 public int height { get; }
44 public string metadata { get; }
45 public string title { get; }
47 public int width { get; }
49 [CCode (cheader_filename = "librsvg/rsvg.h")]
50 public struct DimensionData {
56 [CCode (cheader_filename = "librsvg/rsvg.h")]
57 public struct PositionData {
61 [CCode (cprefix = "RSVG_ERROR_", cheader_filename = "librsvg/rsvg.h")]
65 [CCode (cheader_filename = "librsvg/rsvg.h")]
66 public delegate void SizeFunc (ref int width, ref int height);
67 [CCode (cheader_filename = "librsvg/rsvg.h")]
68 public const int LIBRSVG_FEATURES_H;
69 [CCode (cheader_filename = "librsvg/rsvg.h")]
70 public const int LIBRSVG_HAVE_CSS;
71 [CCode (cheader_filename = "librsvg/rsvg.h")]
72 public const int LIBRSVG_HAVE_SVGZ;
73 [CCode (cheader_filename = "librsvg/rsvg.h")]
74 public const int LIBRSVG_MAJOR_VERSION;
75 [CCode (cheader_filename = "librsvg/rsvg.h")]
76 public const int LIBRSVG_MICRO_VERSION;
77 [CCode (cheader_filename = "librsvg/rsvg.h")]
78 public const int LIBRSVG_MINOR_VERSION;
79 [CCode (cheader_filename = "librsvg/rsvg.h")]
80 public const string LIBRSVG_VERSION;
81 [CCode (cheader_filename = "librsvg/rsvg.h")]
82 public static GLib.Quark error_quark ();
83 [CCode (cheader_filename = "librsvg/rsvg.h")]
84 public static void init ();
85 [CCode (cname = "librsvg_postinit", cheader_filename = "librsvg/rsvg.h")]
86 public static void librsvg_postinit (void* app, void* modinfo);
87 [CCode (cname = "librsvg_preinit", cheader_filename = "librsvg/rsvg.h")]
88 public static void librsvg_preinit (void* app, void* modinfo);
89 [CCode (cheader_filename = "librsvg/rsvg.h")]
90 public static unowned Gdk.Pixbuf pixbuf_from_file (string file_name) throws GLib.Error;
91 [CCode (cheader_filename = "librsvg/rsvg.h")]
92 public static unowned Gdk.Pixbuf pixbuf_from_file_at_max_size (string file_name, int max_width, int max_height) throws GLib.Error;
93 [CCode (cheader_filename = "librsvg/rsvg.h")]
94 public static unowned Gdk.Pixbuf pixbuf_from_file_at_size (string file_name, int width, int height) throws GLib.Error;
95 [CCode (cheader_filename = "librsvg/rsvg.h")]
96 public static unowned Gdk.Pixbuf pixbuf_from_file_at_zoom (string file_name, double x_zoom, double y_zoom) throws GLib.Error;
97 [CCode (cheader_filename = "librsvg/rsvg.h")]
98 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;
99 [CCode (cheader_filename = "librsvg/rsvg.h")]
100 public static void set_default_dpi (double dpi);
101 [CCode (cheader_filename = "librsvg/rsvg.h")]
102 public static void set_default_dpi_x_y (double dpi_x, double dpi_y);
103 [CCode (cheader_filename = "librsvg/rsvg.h")]
104 public static void term ();