Expand description
Main SVG document structure.
Structsยง
- Acquired
Node - Acquired
Nodes - Detects circular references between nodes, and enforces referencing limits.
- Document
- A loaded SVG file and its derived data.
- Document
Builder - Used to build a tree of SVG nodes while an XML document is being read.
- Load
Options - Loading options for SVG documents.
- Node
Stack - Keeps a stack of nodes and can check if a certain node is contained in the stack
- Rendering
Options - Document-level rendering options.
- Resources ๐
- Set of external resources (other SVG documents, or raster images) referenced by an SVG.
Enumsยง
- NodeId
- Identifier of a node
- Resource
- Any kind of resource loaded while processing an SVG document: images, or SVGs themselves.
Functionsยง
- content_
type_ ๐for_ image - human_
readable_ ๐url - Formats a URL for human consumption, as in error messages. This is to
reduce very long
data:
URLs to an abbreviated version. - image_
format ๐ - Decides whether the specified MIME type is supported as a raster image format.
- image_
loading_ ๐error_ from_ cairo - Converts a
cairo::Error
that happened while wrapping a decoded raster image into aLoadingError
augmented with the imageโs URL. - load_
image_ ๐resource_ from_ bytes - Decodes
BinaryData
that is presumed to be a raster image. - load_
image_ ๐with_ image_ rs - load_
resource ๐ - Loads the entire contents of a URL, sniffs them, and decodes them as a
Resource
for an SVG or raster image. - load_
svg_ ๐resource_ from_ bytes - Parses
BinaryData
that is known to be an SVG document, using librsvg itself. - unit_
rectangle ๐