/work/workdir/UnpackedTarball/cairo/src/cairo-analysis-surface-private.h
Line | Count | Source |
1 | | /* |
2 | | * Copyright © 2005 Keith Packard |
3 | | * |
4 | | * This library is free software; you can redistribute it and/or |
5 | | * modify it either under the terms of the GNU Lesser General Public |
6 | | * License version 2.1 as published by the Free Software Foundation |
7 | | * (the "LGPL") or, at your option, under the terms of the Mozilla |
8 | | * Public License Version 1.1 (the "MPL"). If you do not alter this |
9 | | * notice, a recipient may use your version of this file under either |
10 | | * the MPL or the LGPL. |
11 | | * |
12 | | * You should have received a copy of the LGPL along with this library |
13 | | * in the file COPYING-LGPL-2.1; if not, write to the Free Software |
14 | | * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA |
15 | | * You should have received a copy of the MPL along with this library |
16 | | * in the file COPYING-MPL-1.1 |
17 | | * |
18 | | * The contents of this file are subject to the Mozilla Public License |
19 | | * Version 1.1 (the "License"); you may not use this file except in |
20 | | * compliance with the License. You may obtain a copy of the License at |
21 | | * http://www.mozilla.org/MPL/ |
22 | | * |
23 | | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY |
24 | | * OF ANY KIND, either express or implied. See the LGPL or the MPL for |
25 | | * the specific language governing rights and limitations. |
26 | | * |
27 | | * The Original Code is the cairo graphics library. |
28 | | * |
29 | | * The Initial Developer of the Original Code is Keith Packard |
30 | | * |
31 | | * Contributor(s): |
32 | | * Keith Packard <keithp@keithp.com> |
33 | | */ |
34 | | |
35 | | #ifndef CAIRO_ANALYSIS_SURFACE_H |
36 | | #define CAIRO_ANALYSIS_SURFACE_H |
37 | | |
38 | | #include "cairoint.h" |
39 | | |
40 | | cairo_private cairo_surface_t * |
41 | | _cairo_analysis_surface_create (cairo_surface_t *target, |
42 | | cairo_bool_t create_region_ids); |
43 | | |
44 | | cairo_private void |
45 | | _cairo_analysis_surface_set_ctm (cairo_surface_t *surface, |
46 | | const cairo_matrix_t *ctm); |
47 | | |
48 | | cairo_private void |
49 | | _cairo_analysis_surface_get_ctm (cairo_surface_t *surface, |
50 | | cairo_matrix_t *ctm); |
51 | | |
52 | | cairo_private cairo_region_t * |
53 | | _cairo_analysis_surface_get_supported (cairo_surface_t *surface); |
54 | | |
55 | | cairo_private cairo_region_t * |
56 | | _cairo_analysis_surface_get_unsupported (cairo_surface_t *surface); |
57 | | |
58 | | cairo_private cairo_bool_t |
59 | | _cairo_analysis_surface_has_supported (cairo_surface_t *surface); |
60 | | |
61 | | cairo_private cairo_bool_t |
62 | | _cairo_analysis_surface_has_unsupported (cairo_surface_t *surface); |
63 | | |
64 | | cairo_private void |
65 | | _cairo_analysis_surface_get_bounding_box (cairo_surface_t *surface, |
66 | | cairo_box_t *bbox); |
67 | | |
68 | | cairo_private unsigned int |
69 | | _cairo_analysis_surface_get_source_region_id (cairo_surface_t *surface); |
70 | | |
71 | | cairo_private unsigned int |
72 | | _cairo_analysis_surface_get_mask_region_id (cairo_surface_t *surface); |
73 | | |
74 | | cairo_private cairo_int_status_t |
75 | | _cairo_analysis_surface_merge_status (cairo_int_status_t status_a, |
76 | | cairo_int_status_t status_b); |
77 | | |
78 | | cairo_private cairo_surface_t * |
79 | | _cairo_null_surface_create (cairo_content_t content); |
80 | | |
81 | | static inline cairo_bool_t |
82 | | _cairo_surface_is_analysis (const cairo_surface_t *surface) |
83 | 0 | { |
84 | 0 | return (cairo_internal_surface_type_t)surface->backend->type == CAIRO_INTERNAL_SURFACE_TYPE_ANALYSIS; |
85 | 0 | } Unexecuted instantiation: cairo-recording-surface.c:_cairo_surface_is_analysis Unexecuted instantiation: cairo-analysis-surface.c:_cairo_surface_is_analysis Unexecuted instantiation: cairo-paginated-surface.c:_cairo_surface_is_analysis Unexecuted instantiation: cairo-user-font.c:_cairo_surface_is_analysis |
86 | | |
87 | | #endif /* CAIRO_ANALYSIS_SURFACE_H */ |