summaryrefslogtreecommitdiff
path: root/vapi/librsvg-2.0.vapi
diff options
context:
space:
mode:
Diffstat (limited to 'vapi/librsvg-2.0.vapi')
-rw-r--r--vapi/librsvg-2.0.vapi70
1 files changed, 47 insertions, 23 deletions
diff --git a/vapi/librsvg-2.0.vapi b/vapi/librsvg-2.0.vapi
index 7cdd8dd77..c9e253539 100644
--- a/vapi/librsvg-2.0.vapi
+++ b/vapi/librsvg-2.0.vapi
@@ -1,7 +1,7 @@
/* librsvg-2.0.vapi generated by vapigen, do not modify. */
[CCode (cprefix = "Rsvg", gir_namespace = "Rsvg", gir_version = "2.0", lower_case_cprefix = "rsvg_")]
-[Deprecated (replacement = "bindings distributed with librsvg-2.0", since = "2.36.2")]
+[Version (deprecated = true, deprecated_since = "2.36.2", replacement = "bindings distributed with librsvg-2.0")]
namespace Rsvg {
namespace Version {
[CCode (cheader_filename = "librsvg/rsvg.h", cname = "LIBRSVG_MAJOR_VERSION")]
@@ -20,44 +20,62 @@ namespace Rsvg {
[CCode (has_construct_function = false)]
public Handle ();
public bool close () throws GLib.Error;
- [Deprecated (replacement = "GLib.Object.unref")]
+ [Version (replacement = "GLib.Object.unref")]
public void free ();
[CCode (has_construct_function = false)]
+ [Version (since = "2.14")]
public Handle.from_data ([CCode (array_length_cname = "data_len", array_length_pos = 1.1, array_length_type = "gsize")] uint8[] data) throws GLib.Error;
[CCode (has_construct_function = false)]
+ [Version (since = "2.14")]
public Handle.from_file (string file_name) throws GLib.Error;
[CCode (has_construct_function = false)]
+ [Version (since = "2.32")]
public Handle.from_gfile_sync (GLib.File file, Rsvg.HandleFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
[CCode (has_construct_function = false)]
+ [Version (since = "2.32")]
public Handle.from_stream_sync (GLib.InputStream input_stream, GLib.File? base_file, Rsvg.HandleFlags flags, GLib.Cancellable? cancellable = null) throws GLib.Error;
+ [Version (since = "2.8")]
public unowned string get_base_uri ();
- [Deprecated (since = "2.36")]
+ [Version (deprecated_since = "2.36")]
public unowned string get_desc ();
+ [Version (since = "2.14")]
public Rsvg.DimensionData get_dimensions ();
- public bool get_dimensions_sub (out Rsvg.DimensionData dimension_data, string id);
- [Deprecated (since = "2.36")]
+ [Version (since = "2.22")]
+ public bool get_dimensions_sub (out Rsvg.DimensionData dimension_data, string? id);
+ [Version (deprecated_since = "2.36")]
public unowned string get_metadata ();
- public Gdk.Pixbuf get_pixbuf ();
- public Gdk.Pixbuf get_pixbuf_sub (string id);
+ public Gdk.Pixbuf? get_pixbuf ();
+ [Version (since = "2.14")]
+ public Gdk.Pixbuf? get_pixbuf_sub (string? id);
+ [Version (since = "2.22")]
public bool get_position_sub (out Rsvg.PositionData position_data, string id);
- [Deprecated (since = "2.36")]
+ [Version (deprecated_since = "2.36")]
public unowned string get_title ();
+ [Version (since = "2.22")]
public bool has_sub (string id);
+ [Version (since = "2.32")]
public bool read_stream_sync (GLib.InputStream stream, GLib.Cancellable? cancellable = null) throws GLib.Error;
+ [Version (since = "2.14")]
public bool render_cairo (Cairo.Context cr);
- public bool render_cairo_sub (Cairo.Context cr, string id);
+ [Version (since = "2.14")]
+ public bool render_cairo_sub (Cairo.Context cr, string? id);
+ [Version (since = "2.32")]
public void set_base_gfile (GLib.File base_file);
+ [Version (since = "2.9")]
public void set_base_uri (string base_uri);
+ [Version (since = "2.8")]
public void set_dpi (double dpi);
+ [Version (since = "2.8")]
public void set_dpi_x_y (double dpi_x, double dpi_y);
- [Deprecated (replacement = "render_cairo")]
+ [Version (replacement = "render_cairo")]
public void set_size_callback (owned Rsvg.SizeFunc size_func);
[CCode (has_construct_function = false)]
+ [Version (since = "2.36")]
public Handle.with_flags (Rsvg.HandleFlags flags);
public bool write ([CCode (array_length_cname = "count", array_length_pos = 1.1, array_length_type = "gsize")] uint8[] buf) throws GLib.Error;
public string base_uri { get; set construct; }
- [Deprecated (since = "2.36")]
[NoAccessorMethod]
+ [Version (deprecated = true, deprecated_since = "2.36")]
public string desc { owned get; }
[NoAccessorMethod]
public double dpi_x { get; set construct; }
@@ -68,14 +86,15 @@ namespace Rsvg {
[NoAccessorMethod]
public double ex { get; }
[NoAccessorMethod]
+ [Version (since = "2.36")]
public Rsvg.HandleFlags flags { get; construct; }
[NoAccessorMethod]
public int height { get; }
- [Deprecated (since = "2.36")]
[NoAccessorMethod]
+ [Version (deprecated = true, deprecated_since = "2.36")]
public string metadata { owned get; }
- [Deprecated (since = "2.36")]
[NoAccessorMethod]
+ [Version (deprecated = true, deprecated_since = "2.36")]
public string title { owned get; }
[NoAccessorMethod]
public int width { get; }
@@ -92,10 +111,12 @@ namespace Rsvg {
public int x;
public int y;
}
- [CCode (cheader_filename = "librsvg/rsvg.h", cprefix = "RSVG_HANDLE_FLAGS_", type_id = "rsvg_handle_flags_get_type ()")]
+ [CCode (cheader_filename = "librsvg/rsvg.h", cprefix = "RSVG_HANDLE_", type_id = "rsvg_handle_flags_get_type ()")]
[Flags]
public enum HandleFlags {
- NONE
+ FLAGS_NONE,
+ FLAG_UNLIMITED,
+ FLAG_KEEP_IMAGE_DATA
}
[CCode (cheader_filename = "librsvg/rsvg.h", cprefix = "RSVG_ERROR_")]
public errordomain Error {
@@ -103,33 +124,36 @@ namespace Rsvg {
public static GLib.Quark quark ();
}
[CCode (cheader_filename = "librsvg/rsvg.h")]
- [Deprecated]
+ [Version (deprecated = true)]
public delegate void SizeFunc (ref int width, ref int height);
[CCode (cheader_filename = "librsvg/rsvg.h")]
+ [Version (since = "2.36")]
public static void cleanup ();
[CCode (cheader_filename = "librsvg/rsvg.h")]
- [Deprecated (since = "2.36")]
+ [Version (deprecated_since = "2.36")]
public static void init ();
[CCode (cheader_filename = "librsvg/rsvg.h")]
- [Deprecated]
+ [Version (deprecated = true)]
public static Gdk.Pixbuf pixbuf_from_file (string file_name) throws GLib.Error;
[CCode (cheader_filename = "librsvg/rsvg.h")]
- [Deprecated]
+ [Version (deprecated = true)]
public static Gdk.Pixbuf pixbuf_from_file_at_max_size (string file_name, int max_width, int max_height) throws GLib.Error;
[CCode (cheader_filename = "librsvg/rsvg.h")]
- [Deprecated]
+ [Version (deprecated = true)]
public static Gdk.Pixbuf pixbuf_from_file_at_size (string file_name, int width, int height) throws GLib.Error;
[CCode (cheader_filename = "librsvg/rsvg.h")]
- [Deprecated]
+ [Version (deprecated = true)]
public static Gdk.Pixbuf pixbuf_from_file_at_zoom (string file_name, double x_zoom, double y_zoom) throws GLib.Error;
[CCode (cheader_filename = "librsvg/rsvg.h")]
- [Deprecated]
+ [Version (deprecated = true)]
public static 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;
[CCode (cheader_filename = "librsvg/rsvg.h")]
+ [Version (since = "2.8")]
public static void set_default_dpi (double dpi);
[CCode (cheader_filename = "librsvg/rsvg.h")]
+ [Version (since = "2.8")]
public static void set_default_dpi_x_y (double dpi_x, double dpi_y);
[CCode (cheader_filename = "librsvg/rsvg.h")]
- [Deprecated (since = "2.36")]
+ [Version (deprecated_since = "2.36")]
public static void term ();
}