diff options
author | Søren Sandmann <sandmann@daimi.au.dk> | 2009-02-15 18:55:17 -0500 |
---|---|---|
committer | Søren Sandmann <sandmann@redhat.com> | 2009-02-15 18:57:31 -0500 |
commit | f6daa664c1b2c894ba3baf2e7a72566bda1fd636 (patch) | |
tree | 625b5b5bc72a06f7274e2fbf01eafa1a588a3916 /src/cairo-region-private.h | |
parent | fcb13d262c5a09e56dc25c76103ef4ba623929ff (diff) |
Delete _cairo_region_get_boxes() in favor of _cairo_region_get_box()
The _cairo_region_get_boxes() interface was difficult to use and often
caused unnecessary memory allocation. With _cairo_region_get_box() it
is possible to access the boxes of a region without allocating a big
temporary array.
Diffstat (limited to 'src/cairo-region-private.h')
-rw-r--r-- | src/cairo-region-private.h | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/cairo-region-private.h b/src/cairo-region-private.h index 588762e5..d969116a 100644 --- a/src/cairo-region-private.h +++ b/src/cairo-region-private.h @@ -72,14 +72,10 @@ _cairo_region_copy (cairo_region_t *dst, cairo_private int _cairo_region_num_boxes (cairo_region_t *region); -cairo_private cairo_int_status_t -_cairo_region_get_boxes (cairo_region_t *region, - int *num_boxes, - cairo_box_int_t **boxes); - cairo_private void -_cairo_region_boxes_fini (cairo_region_t *region, - cairo_box_int_t *boxes); +_cairo_region_get_box (cairo_region_t *region, + int nth_box, + cairo_box_int_t *box); cairo_private void _cairo_region_get_extents (cairo_region_t *region, |