/* create a new line */
gfx_node_t *gfx_new_line(
- gfx_canvas_t * canvas,
+ gfx_canvas_t *canvas,
double X0,
double Y0,
double X1,
gfx_color_t color);
gfx_node_t *gfx_new_dashed_line(
- gfx_canvas_t * canvas,
+ gfx_canvas_t *canvas,
double X0,
double Y0,
double X1,
/* create a new area */
gfx_node_t *gfx_new_area(
- gfx_canvas_t * canvas,
+ gfx_canvas_t *canvas,
double X0,
double Y0,
double X1,
/* add a point to a line or to an area */
int gfx_add_point(
- gfx_node_t * node,
+ gfx_node_t *node,
double x,
double y);
/* close current path so it ends at the same point as it started */
void gfx_close_path(
- gfx_node_t * node);
+ gfx_node_t *node);
/* create a text node */
gfx_node_t *gfx_new_text(
- gfx_canvas_t * canvas,
+ gfx_canvas_t *canvas,
double x,
double y,
gfx_color_t color,
/* measure width of a text string */
double gfx_get_text_width(
- gfx_canvas_t * canvas,
+ gfx_canvas_t *canvas,
double start,
char *font,
double size,
/* save image to file */
int gfx_render(
- gfx_canvas_t * canvas,
+ gfx_canvas_t *canvas,
art_u32 width,
art_u32 height,
gfx_color_t background,
/* free memory used by nodes this will also remove memory required for
node chain and associated material */
int gfx_destroy(
- gfx_canvas_t * canvas);
+ gfx_canvas_t *canvas);
/* PNG support*/
int gfx_render_png(
- gfx_canvas_t * canvas,
+ gfx_canvas_t *canvas,
art_u32 width,
art_u32 height,
gfx_color_t background,
FILE * fo);
double gfx_get_text_width_libart(
- gfx_canvas_t * canvas,
+ gfx_canvas_t *canvas,
double start,
char *font,
double size,
/* SVG support */
int gfx_render_svg(
- gfx_canvas_t * canvas,
+ gfx_canvas_t *canvas,
art_u32 width,
art_u32 height,
gfx_color_t background,
/* EPS support */
int gfx_render_eps(
- gfx_canvas_t * canvas,
+ gfx_canvas_t *canvas,
art_u32 width,
art_u32 height,
gfx_color_t background,
/* PDF support */
int gfx_render_pdf(
- gfx_canvas_t * canvas,
+ gfx_canvas_t *canvas,
art_u32 width,
art_u32 height,
gfx_color_t background,