[][src]Crate rsvg_internals

The implementation of librsvg

The implementation of librsvg is in the rsvg_internals crate. It is not a public crate; instead, it exports the primitives necessary to implement librsvg's public APIs, both the C and Rust APIs. It has the XML and CSS parsing code, the SVG element definitions and tree of elements, and all the drawing logic.

Some interesting parts of rsvg_internals:

Re-exports

pub use crate::rect::IRect;
pub use crate::surface_utils::iterators::Pixels;
pub use crate::surface_utils::shared_surface::SharedImageSurface;
pub use crate::surface_utils::shared_surface::SurfaceType;

Modules

allowed_url
angle
aspect_ratio

Handling of preserveAspectRatio values

bbox
clip_path
color
cond
coord_units
create_node
css

Representation of CSS types, and the CSS parsing and matching engine.

dasharray
document
dpi
drawing_ctx
error
filter
filters
float_eq_cairo
font_props
gradient
handle
image
io
iri
length

CSS length values.

limits
link
log
marker
mask
node
number_list
paint_server
parsers
path_builder
path_parser
pattern
properties
property_bag
property_defs
property_macros
rect
shapes
space
srgb

Utility functions for dealing with sRGB colors.

structure
style
surface_utils

Various utilities for working with Cairo image surfaces.

text
transform
unit_interval
util
viewbox
xml
xml2
xml2_load

Macros

assert_approx_eq_cairo
coord_units

Creates a newtype around CoordUnits, with a default value.

make_property

Generates a property definition that simply parses strings to enum variants or to a tuple struct of the given type.

rsvg_log

Structs

ColorSpec
Dpi
Handle
IntrinsicDimensions

Intrinsic dimensions of an SVG document fragment

Length

A CSS length value.

LoadOptions
RsvgDimensionData
RsvgLength

A CSS length value.

RsvgPositionData
SizeCallback
ViewBox

Enums

ColorKind
DefsLookupErrorKind
HrefError

Errors returned when creating an Href out of a string

LengthUnit

Units for length values.

LoadingError
RenderingError

Constants

RSVG_ERROR_FAILED

Functions

rsvg_css_parse_color
rsvg_rust_error_quark
rsvg_rust_set_default_dpi_x_y
set_gerror

Type Definitions

RsvgSizeFunc