#include <glib.h>
#include <cairo.h>
#include "mdvi.h"
Go to the source code of this file.
void mdvi_cairo_device_free |
( |
DviDevice * |
device) | |
|
Definition at line 300 of file cairo-device.c.
306 if (cairo_device->
cr)
307 cairo_destroy (cairo_device->
cr);
309 g_free (cairo_device);
cairo_surface_t* mdvi_cairo_device_get_surface |
( |
DviDevice * |
device) | |
|
Definition at line 313 of file cairo-device.c.
319 return cairo_surface_reference (cairo_get_target (cairo_device->
cr));
G_BEGIN_DECLS void mdvi_cairo_device_init |
( |
DviDevice * |
device) | |
|
Definition at line 323 of file cairo-device.c.
328 cairo_surface_t *surface;
332 if (cairo_device->
cr)
333 cairo_destroy (cairo_device->
cr);
338 surface = cairo_image_surface_create (CAIRO_FORMAT_ARGB32,
339 page_width, page_height);
341 cairo_device->
cr = cairo_create (surface);
342 cairo_surface_destroy (surface);
344 cairo_set_source_rgb (cairo_device->
cr, 1., 1., 1.);
345 cairo_paint (cairo_device->
cr);
void mdvi_cairo_device_set_margins |
( |
DviDevice * |
device, |
|
|
gint |
xmargin, |
|
|
gint |
ymargin |
|
) |
| |
void mdvi_cairo_device_set_scale |
( |
DviDevice * |
device, |
|
|
gdouble |
xscale, |
|
|
gdouble |
yscale |
|
) |
| |