ReSvgBindings class
Bindings for src/resvg.h
.
Regenerate bindings with dart run ffigen --config ffigen.yaml
.
Constructors
- ReSvgBindings(DynamicLibrary dynamicLibrary)
-
The symbols are looked up in
dynamicLibrary
. -
ReSvgBindings.fromLookup(Pointer<
T> lookup<T extends NativeType>(String symbolName) ) -
The symbols are looked up with
lookup
.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resvg_get_image_bbox(
Pointer< resvg_render_tree> tree, Pointer<resvg_rect> bbox) → bool - @brief Returns an image bounding box.
-
resvg_get_image_size(
Pointer< resvg_render_tree> tree) → resvg_size - @brief Returns an image size.
-
resvg_get_node_bbox(
Pointer< resvg_render_tree> tree, Pointer<Char> id, Pointer<resvg_rect> bbox) → bool - @brief Returns node's bounding box in canvas coordinates by ID.
-
resvg_get_node_stroke_bbox(
Pointer< resvg_render_tree> tree, Pointer<Char> id, Pointer<resvg_rect> bbox) → bool - @brief Returns node's bounding box, including stroke, in canvas coordinates by ID.
-
resvg_get_node_transform(
Pointer< resvg_render_tree> tree, Pointer<Char> id, Pointer<resvg_transform> transform) → bool - @brief Returns node's transform by ID.
-
resvg_init_log(
) → void - @brief Initializes the library log.
-
resvg_is_image_empty(
Pointer< resvg_render_tree> tree) → bool - @brief Checks that tree has any nodes.
-
resvg_node_exists(
Pointer< resvg_render_tree> tree, Pointer<Char> id) → bool -
@brief Returns
true
if a renderable node with such an ID exists. -
resvg_options_create(
) → Pointer< resvg_options> - @brief Creates a new #resvg_options object.
-
resvg_options_destroy(
Pointer< resvg_options> opt) → void - @brief Destroys the #resvg_options.
-
resvg_options_load_font_data(
Pointer< resvg_options> opt, Pointer<Char> data, int len) → void - @brief Loads a font data into the internal fonts database.
-
resvg_options_load_font_file(
Pointer< resvg_options> opt, Pointer<Char> file_path) → int - @brief Loads a font file into the internal fonts database.
-
resvg_options_load_system_fonts(
Pointer< resvg_options> opt) → void - @brief Loads system fonts into the internal fonts database.
-
resvg_options_set_cursive_family(
Pointer< resvg_options> opt, Pointer<Char> family) → void -
@brief Sets the
cursive
font family. -
resvg_options_set_dpi(
Pointer< resvg_options> opt, double dpi) → void - @brief Sets the target DPI.
-
resvg_options_set_fantasy_family(
Pointer< resvg_options> opt, Pointer<Char> family) → void -
@brief Sets the
fantasy
font family. -
resvg_options_set_font_family(
Pointer< resvg_options> opt, Pointer<Char> family) → void - @brief Sets the default font family.
-
resvg_options_set_font_size(
Pointer< resvg_options> opt, double size) → void - @brief Sets the default font size.
-
resvg_options_set_image_rendering_mode(
Pointer< resvg_options> opt, resvg_image_rendering mode) → void - @brief Sets the default image rendering method.
-
resvg_options_set_languages(
Pointer< resvg_options> opt, Pointer<Char> languages) → void - @brief Sets a comma-separated list of languages.
-
resvg_options_set_monospace_family(
Pointer< resvg_options> opt, Pointer<Char> family) → void -
@brief Sets the
monospace
font family. -
resvg_options_set_resources_dir(
Pointer< resvg_options> opt, Pointer<Char> path) → void - @brief Sets a directory that will be used during relative paths resolving.
-
resvg_options_set_sans_serif_family(
Pointer< resvg_options> opt, Pointer<Char> family) → void -
@brief Sets the
sans-serif
font family. -
resvg_options_set_serif_family(
Pointer< resvg_options> opt, Pointer<Char> family) → void -
@brief Sets the
serif
font family. -
resvg_options_set_shape_rendering_mode(
Pointer< resvg_options> opt, resvg_shape_rendering mode) → void - @brief Sets the default shape rendering method.
-
resvg_options_set_text_rendering_mode(
Pointer< resvg_options> opt, resvg_text_rendering mode) → void - @brief Sets the default text rendering method.
-
resvg_parse_tree_from_data(
Pointer< Char> data, int len, Pointer<resvg_options> opt, Pointer<Pointer< tree) → intresvg_render_tree> > - @brief Creates #resvg_render_tree from data.
-
resvg_parse_tree_from_file(
Pointer< Char> file_path, Pointer<resvg_options> opt, Pointer<Pointer< tree) → intresvg_render_tree> > - @brief Creates #resvg_render_tree from file.
-
resvg_render(
Pointer< resvg_render_tree> tree, resvg_transform transform, int width, int height, Pointer<Char> pixmap) → void - @brief Renders the #resvg_render_tree onto the pixmap.
-
resvg_render_node(
Pointer< resvg_render_tree> tree, Pointer<Char> id, resvg_transform transform, int width, int height, Pointer<Char> pixmap) → bool - @brief Renders a Node by ID onto the image.
-
resvg_transform_identity(
) → resvg_transform - @brief Creates an identity transform.
-
resvg_tree_destroy(
Pointer< resvg_render_tree> tree) → void - @brief Destroys the #resvg_render_tree.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited