| asc-canvasasc-canvas — Draw text and render SVG graphics. |  | 
Includes
#include <appstream-compose.h>
 
Functions
asc_canvas_error_quark ()
GQuark
asc_canvas_error_quark (void);
 
asc_canvas_new ()
AscCanvas *
asc_canvas_new (gint width,
                gint height);
Creates a new AscFont.
 
asc_canvas_get_width ()
guint
asc_canvas_get_width (AscCanvas *canvas);
Gets the canvas width.
 
asc_canvas_get_height ()
guint
asc_canvas_get_height (AscCanvas *canvas);
Gets the canvas height.
 
asc_canvas_render_svg ()
gboolean
asc_canvas_render_svg (AscCanvas *canvas,
                       GInputStream *stream,
                       GError **error);
Render an SVG graphic from the SVG data provided.
 
asc_canvas_save_png ()
gboolean
asc_canvas_save_png (AscCanvas *canvas,
                     const gchar *fname,
                     GError **error);
Save canvas to PNG file.
 
 
Types and Values
ASC_TYPE_CANVAS
#define ASC_TYPE_CANVAS (asc_canvas_get_type ())
 
enum AscCanvasError
A drawing error.
 
ASC_CANVAS_ERROR
#define ASC_CANVAS_ERROR asc_canvas_error_quark ()
 
AscCanvas
typedef struct _AscCanvas AscCanvas;