~ubuntu-branches/ubuntu/karmic/moon/karmic

« back to all changes in this revision

Viewing changes to cairo/src/cairo-region-private.h

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-14 12:01:08 UTC
  • Revision ID: james.westby@ubuntu.com-20090214120108-06539vb25vhbd8bn
Tags: upstream-1.0
Import upstream version 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
3
 *
 
4
 * Copyright © 2007 Mozilla Corporation
 
5
 *
 
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.
 
13
 *
 
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
 
19
 *
 
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/
 
24
 *
 
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.
 
28
 *
 
29
 * The Original Code is the cairo graphics library.
 
30
 *
 
31
 * The Initial Developer of the Original Code is Mozilla Corporation
 
32
 *
 
33
 * Contributor(s):
 
34
 *      Vladimir Vukicevic <vladimir@pobox.com>
 
35
 */
 
36
 
 
37
#ifndef CAIRO_REGION_PRIVATE_H
 
38
#define CAIRO_REGION_PRIVATE_H
 
39
 
 
40
#include "cairo-compiler-private.h"
 
41
#include "cairo-types-private.h"
 
42
 
 
43
#include <pixman.h>
 
44
 
 
45
CAIRO_BEGIN_DECLS
 
46
 
 
47
/* #cairo_region_t is defined in cairoint.h */
 
48
 
 
49
struct _cairo_region {
 
50
    pixman_region32_t rgn;
 
51
};
 
52
 
 
53
cairo_private void
 
54
_cairo_region_init (cairo_region_t *region);
 
55
 
 
56
cairo_private void
 
57
_cairo_region_init_rect (cairo_region_t *region,
 
58
                         cairo_rectangle_int_t *rect);
 
59
 
 
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);
 
64
 
 
65
cairo_private void
 
66
_cairo_region_fini (cairo_region_t *region);
 
67
 
 
68
cairo_private cairo_int_status_t
 
69
_cairo_region_copy (cairo_region_t *dst,
 
70
                    cairo_region_t *src);
 
71
 
 
72
cairo_private int
 
73
_cairo_region_num_boxes (cairo_region_t *region);
 
74
 
 
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);
 
79
 
 
80
cairo_private void
 
81
_cairo_region_boxes_fini (cairo_region_t *region,
 
82
                          cairo_box_int_t *boxes);
 
83
 
 
84
cairo_private void
 
85
_cairo_region_get_extents (cairo_region_t *region,
 
86
                           cairo_rectangle_int_t *extents);
 
87
 
 
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);
 
92
 
 
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);
 
97
 
 
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);
 
102
 
 
103
cairo_private cairo_bool_t
 
104
_cairo_region_not_empty (cairo_region_t *region);
 
105
 
 
106
cairo_private void
 
107
_cairo_region_translate (cairo_region_t *region,
 
108
                         int x, int y);
 
109
 
 
110
cairo_private pixman_region_overlap_t
 
111
_cairo_region_contains_rectangle (cairo_region_t *region, cairo_rectangle_int_t *box);
 
112
 
 
113
 
 
114
CAIRO_END_DECLS
 
115
 
 
116
#endif /* CAIRO_REGION_PRIVATE_H */