summaryrefslogtreecommitdiff
path: root/src/cairo-boxes-private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cairo-boxes-private.h')
-rw-r--r--src/cairo-boxes-private.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/cairo-boxes-private.h b/src/cairo-boxes-private.h
index 890d1b2d2..57d1228b2 100644
--- a/src/cairo-boxes-private.h
+++ b/src/cairo-boxes-private.h
@@ -42,11 +42,14 @@
struct _cairo_boxes_t {
cairo_status_t status;
+
cairo_box_t limit;
const cairo_box_t *limits;
int num_limits;
+
int num_boxes;
- unsigned int is_pixel_aligned : 1;
+
+ unsigned int is_pixel_aligned;
struct _cairo_boxes_chunk {
struct _cairo_boxes_chunk *next;
@@ -70,6 +73,10 @@ _cairo_boxes_init_for_array (cairo_boxes_t *boxes,
int num_boxes);
cairo_private void
+_cairo_boxes_init_from_rectangle (cairo_boxes_t *boxes,
+ int x, int y, int w, int h);
+
+cairo_private void
_cairo_boxes_limit (cairo_boxes_t *boxes,
const cairo_box_t *limits,
int num_limits);
@@ -81,7 +88,7 @@ _cairo_boxes_add (cairo_boxes_t *boxes,
cairo_private void
_cairo_boxes_extents (const cairo_boxes_t *boxes,
- cairo_rectangle_int_t *extents);
+ cairo_box_t *box);
cairo_private cairo_box_t *
_cairo_boxes_to_array (const cairo_boxes_t *boxes,
@@ -104,6 +111,11 @@ _cairo_boxes_intersect (const cairo_boxes_t *a,
cairo_private void
_cairo_boxes_clear (cairo_boxes_t *boxes);
+cairo_private_no_warn cairo_bool_t
+_cairo_boxes_for_each_box (cairo_boxes_t *boxes,
+ cairo_bool_t (*func) (cairo_box_t *box, void *data),
+ void *data);
+
cairo_private void
_cairo_boxes_fini (cairo_boxes_t *boxes);