diff options
author | Alexander Larsson <alexl@redhat.com> | 2013-05-30 19:45:59 +0200 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-09-05 16:08:19 +0100 |
commit | 7ab34f302be72d9dda54d936b6d69bc7c534c885 (patch) | |
tree | 104b98a222cebac9d300cfcf99108050eae1186a /src/cairo.h | |
parent | 38217d67fc2226778dde8d05817cb916691d4d22 (diff) | |
download | cairo-7ab34f302be72d9dda54d936b6d69bc7c534c885.tar.gz |
surface: expose the device scale
This adds the new public functions
cairo_surface_set_device_scale and cairo_surface_get_device_scale and
updates old users of the internal functions.
Diffstat (limited to 'src/cairo.h')
-rw-r--r-- | src/cairo.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cairo.h b/src/cairo.h index a2f5aa37e..de3512619 100644 --- a/src/cairo.h +++ b/src/cairo.h @@ -2456,6 +2456,16 @@ cairo_surface_mark_dirty_rectangle (cairo_surface_t *surface, int height); cairo_public void +cairo_surface_set_device_scale (cairo_surface_t *surface, + double x_scale, + double y_scale); + +cairo_public void +cairo_surface_get_device_scale (cairo_surface_t *surface, + double *x_scale, + double *y_scale); + +cairo_public void cairo_surface_set_device_offset (cairo_surface_t *surface, double x_offset, double y_offset); |