Expand description
C API for librsvg, based on GObject.
The main API is in the handle
module. The other modules
have utility functions and the legacy [pixbuf-based API][pixbuf_utils].
Re-exports§
pub use handle::rsvg_error_get_type;
pub use handle::rsvg_handle_close;
pub use handle::rsvg_handle_flags_get_type;
pub use handle::rsvg_handle_get_base_uri;
pub use handle::rsvg_handle_get_dimensions;
pub use handle::rsvg_handle_get_dimensions_sub;
pub use handle::rsvg_handle_get_geometry_for_element;
pub use handle::rsvg_handle_get_geometry_for_layer;
pub use handle::rsvg_handle_get_intrinsic_dimensions;
pub use handle::rsvg_handle_get_intrinsic_size_in_pixels;
pub use handle::rsvg_handle_get_position_sub;
pub use handle::rsvg_handle_has_sub;
pub use handle::rsvg_handle_internal_set_testing;
pub use handle::rsvg_handle_new_from_data;
pub use handle::rsvg_handle_new_from_file;
pub use handle::rsvg_handle_new_from_gfile_sync;
pub use handle::rsvg_handle_new_from_stream_sync;
pub use handle::rsvg_handle_new_with_flags;
pub use handle::rsvg_handle_read_stream_sync;
pub use handle::rsvg_handle_render_cairo_sub;
pub use handle::rsvg_handle_render_element;
pub use handle::rsvg_handle_render_document;
pub use handle::rsvg_handle_render_layer;
pub use handle::rsvg_handle_set_base_gfile;
pub use handle::rsvg_handle_set_base_uri;
pub use handle::rsvg_handle_set_dpi_x_y;
pub use handle::rsvg_handle_set_size_callback;
pub use handle::rsvg_handle_write;
Modules§
- dpi 🔒Legacy C API for setting a default DPI (dots per inch = DPI).
- Main API for
RsvgHandle
. - messages 🔒Logging functions, plus Rust versions of
g_return_if_fail()
. - Compute an SVG document’s size with the legacy logic.
Macros§
- Helper function for converting string literals to C char pointers.
- Replacement for
g_return_if_fail()
. - Replacement for
g_return_val_if_fail()
.