Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
gvloadimage_rsvg.c File Reference
#include <assert.h>
#include <common/render.h>
#include <common/utils.h>
#include <stdbool.h>
#include <stddef.h>
#include <gvc/gvplugin_loadimage.h>
#include <librsvg/rsvg.h>
#include <librsvg/rsvg-cairo.h>
#include <cairo-svg.h>
Include dependency graph for gvloadimage_rsvg.c:

Go to the source code of this file.

Enumerations

enum  format_type { FORMAT_SVG_CAIRO }
 

Functions

static void gvloadimage_rsvg_free (usershape_t *us)
 
static RsvgHandle * gvloadimage_rsvg_load (GVJ_t *job, usershape_t *us)
 
static void gvloadimage_rsvg_cairo (GVJ_t *job, usershape_t *us, boxf b, bool filled)
 

Variables

static gvloadimage_engine_t engine_cairo
 
gvplugin_installed_t gvloadimage_rsvg_types []
 

Enumeration Type Documentation

◆ format_type

Enumerator
FORMAT_SVG_CAIRO 

Definition at line 25 of file gvloadimage_rsvg.c.

Function Documentation

◆ gvloadimage_rsvg_cairo()

static void gvloadimage_rsvg_cairo ( GVJ_t job,
usershape_t us,
boxf  b,
bool  filled 
)
static

Definition at line 89 of file gvloadimage_rsvg.c.

References GVJ_s::context, gvloadimage_rsvg_load(), usershape_s::h, boxf::LL, NULL, boxf::UR, usershape_s::w, pointf_s::x, and pointf_s::y.

Here is the call graph for this function:

◆ gvloadimage_rsvg_free()

static void gvloadimage_rsvg_free ( usershape_t us)
static

Definition at line 30 of file gvloadimage_rsvg.c.

References usershape_s::data.

Referenced by gvloadimage_rsvg_load().

Here is the caller graph for this function:

◆ gvloadimage_rsvg_load()

static RsvgHandle * gvloadimage_rsvg_load ( GVJ_t job,
usershape_t us 
)
static

Definition at line 35 of file gvloadimage_rsvg.c.

References usershape_s::data, usershape_s::datafree, err, FT_SVG, gvloadimage_rsvg_free(), gvusershape_file_access(), gvusershape_file_release(), usershape_s::name, NULL, POINTS_PER_INCH, safefile(), and usershape_s::type.

Referenced by gvloadimage_rsvg_cairo().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ engine_cairo

gvloadimage_engine_t engine_cairo
static
Initial value:
= {
}
static void gvloadimage_rsvg_cairo(GVJ_t *job, usershape_t *us, boxf b, bool filled)

Definition at line 121 of file gvloadimage_rsvg.c.

◆ gvloadimage_rsvg_types

gvplugin_installed_t gvloadimage_rsvg_types[]
Initial value:
= {
{FORMAT_SVG_CAIRO, "svg:cairo", 1, &engine_cairo, NULL},
{0, NULL, 0, NULL, NULL}
}
node NULL
Definition grammar.y:163
static gvloadimage_engine_t engine_cairo
@ FORMAT_SVG_CAIRO

Definition at line 125 of file gvloadimage_rsvg.c.