resvg - Rust
Description: C bindings.

# Crate resvg

source ·
Expand description

C bindings.

## Structs

- resvg_options
  @brief An SVG to #resvg_render_tree conversion options.
- resvg_rect
  @brief A rectangle representation.
- resvg_render_tree
  @brief An opaque pointer to the rendering tree.
- resvg_size
  @brief A size representation.
- resvg_transform
  @brief A 2D transform representation.

## Enums

- resvg_error
  @brief List of possible errors.
- resvg_image_rendering
  @brief A image rendering method.
- resvg_shape_rendering
  @brief A shape rendering method.
- resvg_text_rendering
  @brief A text rendering method.

## Functions

- resvg_get_image_bbox
  @brief Returns an image bounding box.
- resvg_get_image_size
  @brief Returns an image size.
- resvg_get_node_bbox
  @brief Returns node’s bounding box in canvas coordinates by ID.
- resvg_get_node_stroke_bbox
  @brief Returns node’s bounding box, including stroke, in canvas coordinates by ID.
- resvg_get_node_transform
  @brief Returns node’s transform by ID.
- resvg_get_object_bbox
  @brief Returns an object bounding box.
- resvg_init_log
  @brief Initializes the library log.
- resvg_is_image_empty
  @brief Checks that tree has any nodes.
- resvg_node_exists
  @brief Returns `true` if a renderable node with such an ID exists.
- resvg_options_create
  @brief Creates a new #resvg_options object.
- resvg_options_destroy
  @brief Destroys the #resvg_options.
- resvg_options_load_font_data
  @brief Loads a font data into the internal fonts database.
- resvg_options_load_font_file
  @brief Loads a font file into the internal fonts database.
- resvg_options_load_system_fonts
  @brief Loads system fonts into the internal fonts database.
- resvg_options_set_cursive_family
  @brief Sets the `cursive` font family.
- resvg_options_set_dpi
  @brief Sets the target DPI.
- resvg_options_set_fantasy_family
  @brief Sets the `fantasy` font family.
- resvg_options_set_font_family
  @brief Sets the default font family.
- resvg_options_set_font_size
  @brief Sets the default font size.
- resvg_options_set_image_rendering_mode
  @brief Sets the default image rendering method.
- resvg_options_set_languages
  @brief Sets a comma-separated list of languages.
- resvg_options_set_monospace_family
  @brief Sets the `monospace` font family.
- resvg_options_set_resources_dir
  @brief Sets a directory that will be used during relative paths resolving.
- resvg_options_set_sans_serif_family
  @brief Sets the `sans-serif` font family.
- resvg_options_set_serif_family
  @brief Sets the `serif` font family.
- resvg_options_set_shape_rendering_mode
  @brief Sets the default shape rendering method.
- resvg_options_set_stylesheet
  @brief Provides the content of a stylesheet that will be used when resolving CSS attributes.
- resvg_options_set_text_rendering_mode
  @brief Sets the default text rendering method.
- resvg_parse_tree_from_data
  @brief Creates #resvg_render_tree from data.
- resvg_parse_tree_from_file
  @brief Creates #resvg_render_tree from file.
- resvg_render
  @brief Renders the #resvg_render_tree onto the pixmap.
- resvg_render_node
  @brief Renders a Node by ID onto the image.
- resvg_transform_identity
  @brief Creates an identity transform.
- resvg_tree_destroy
  @brief Destroys the #resvg_render_tree.