Module api

Module api 

Source
Expand description

Public Rust API for librsvg.

This gets re-exported from the toplevel lib.rs.

Re-exports§

pub use crate::accept_language::AcceptLanguage;
pub use crate::accept_language::Language;
pub use crate::drawing_ctx::Viewport;
pub use crate::error::ImplementationLimit;
pub use crate::error::LoadingError;
pub use crate::length::LengthUnit;
pub use crate::length::RsvgLength as Length;

Structs§

CairoRenderer
Can render an SvgHandle to a Cairo context.
IntrinsicDimensions
Contains the computed values of the <svg> element’s width, height, and viewBox.
Loader
Builder for loading an SvgHandle.
SvgHandle
Handle used to hold SVG data in memory.

Enums§

RenderingError
Errors that can happen while rendering or measuring an SVG document.

Constants§

DEFAULT_DPI_X 🔒
DEFAULT_DPI_Y 🔒

Functions§

url_from_file 🔒