ShaderEffect subclasses from Effect, not DependencyObject
[moon.git] / cairo / src / cairo-region-private.h
blob588762e51496b06d6a3812325ec827d018cbb3e5
1 /* -*- Mode: c; tab-width: 8; c-basic-offset: 4; indent-tabs-mode: t; -*- */
2 /* Cairo - a vector graphics library with display and print output
4 * Copyright © 2007 Mozilla Corporation
6 * This library is free software; you can redistribute it and/or
7 * modify it either under the terms of the GNU Lesser General Public
8 * License version 2.1 as published by the Free Software Foundation
9 * (the "LGPL") or, at your option, under the terms of the Mozilla
10 * Public License Version 1.1 (the "MPL"). If you do not alter this
11 * notice, a recipient may use your version of this file under either
12 * the MPL or the LGPL.
14 * You should have received a copy of the LGPL along with this library
15 * in the file COPYING-LGPL-2.1; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 * You should have received a copy of the MPL along with this library
18 * in the file COPYING-MPL-1.1
20 * The contents of this file are subject to the Mozilla Public License
21 * Version 1.1 (the "License"); you may not use this file except in
22 * compliance with the License. You may obtain a copy of the License at
23 * http://www.mozilla.org/MPL/
25 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
26 * OF ANY KIND, either express or implied. See the LGPL or the MPL for
27 * the specific language governing rights and limitations.
29 * The Original Code is the cairo graphics library.
31 * The Initial Developer of the Original Code is Mozilla Corporation
33 * Contributor(s):
34 * Vladimir Vukicevic <vladimir@pobox.com>
37 #ifndef CAIRO_REGION_PRIVATE_H
38 #define CAIRO_REGION_PRIVATE_H
40 #include "cairo-compiler-private.h"
41 #include "cairo-types-private.h"
43 #include <pixman.h>
45 CAIRO_BEGIN_DECLS
47 /* #cairo_region_t is defined in cairoint.h */
49 struct _cairo_region {
50 pixman_region32_t rgn;
53 cairo_private void
54 _cairo_region_init (cairo_region_t *region);
56 cairo_private void
57 _cairo_region_init_rect (cairo_region_t *region,
58 cairo_rectangle_int_t *rect);
60 cairo_private cairo_int_status_t
61 _cairo_region_init_boxes (cairo_region_t *region,
62 cairo_box_int_t *boxes,
63 int count);
65 cairo_private void
66 _cairo_region_fini (cairo_region_t *region);
68 cairo_private cairo_int_status_t
69 _cairo_region_copy (cairo_region_t *dst,
70 cairo_region_t *src);
72 cairo_private int
73 _cairo_region_num_boxes (cairo_region_t *region);
75 cairo_private cairo_int_status_t
76 _cairo_region_get_boxes (cairo_region_t *region,
77 int *num_boxes,
78 cairo_box_int_t **boxes);
80 cairo_private void
81 _cairo_region_boxes_fini (cairo_region_t *region,
82 cairo_box_int_t *boxes);
84 cairo_private void
85 _cairo_region_get_extents (cairo_region_t *region,
86 cairo_rectangle_int_t *extents);
88 cairo_private cairo_int_status_t
89 _cairo_region_subtract (cairo_region_t *dst,
90 cairo_region_t *a,
91 cairo_region_t *b);
93 cairo_private cairo_int_status_t
94 _cairo_region_intersect (cairo_region_t *dst,
95 cairo_region_t *a,
96 cairo_region_t *b);
98 cairo_private cairo_int_status_t
99 _cairo_region_union_rect (cairo_region_t *dst,
100 cairo_region_t *src,
101 cairo_rectangle_int_t *rect);
103 cairo_private cairo_bool_t
104 _cairo_region_not_empty (cairo_region_t *region);
106 cairo_private void
107 _cairo_region_translate (cairo_region_t *region,
108 int x, int y);
110 cairo_private pixman_region_overlap_t
111 _cairo_region_contains_rectangle (cairo_region_t *region,
112 const cairo_rectangle_int_t *box);
115 CAIRO_END_DECLS
117 #endif /* CAIRO_REGION_PRIVATE_H */