Lumiera  0.pre.03
»edit your freedom«
rsvg-convert.c File Reference

Go to the source code of this file.

Description

Invoke the rSVG library to render SVG vector graphics with the help of Cairo.

Note
This tool is tightly integrated into the Lumiera build process in order to render icons and UI decorations designed as vector graphics, for those cases where it is beneficial to use bitmap graphics within the UI toolkit.

Definition in file rsvg-convert.c.

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <locale.h>
#include <librsvg/rsvg.h>
#include <librsvg/rsvg-cairo.h>

Classes

struct  RsvgSizeCallbackData
 
struct  RsvgSourceRectangle
 

Macros

#define _(X)   X
 
#define N_(X)   X
 

Functions

static void display_error (GError *err)
 
int main (int argc, char **argv)
 
static void rsvg_cairo_size_callback (int *width, int *height, gpointer data)
 
static cairo_status_t rsvg_cairo_write_func (void *closure, const unsigned char *data, unsigned int length)
 

Class Documentation

◆ RsvgSizeCallbackData

struct RsvgSizeCallbackData
Class Members
gint width
gint height
+ Collaboration diagram for RsvgSizeCallbackData:

◆ RsvgSourceRectangle

struct RsvgSourceRectangle
Class Members
double left
double top
double width
double height
+ Collaboration diagram for RsvgSourceRectangle: