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 © 2002 University of Southern California
5 * Copyright © 2005 Red Hat, Inc.
7 * This library is free software; you can redistribute it and/or
8 * modify it either under the terms of the GNU Lesser General Public
9 * License version 2.1 as published by the Free Software Foundation
10 * (the "LGPL") or, at your option, under the terms of the Mozilla
11 * Public License Version 1.1 (the "MPL"). If you do not alter this
12 * notice, a recipient may use your version of this file under either
13 * the MPL or the LGPL.
15 * You should have received a copy of the LGPL along with this library
16 * in the file COPYING-LGPL-2.1; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 * You should have received a copy of the MPL along with this library
19 * in the file COPYING-MPL-1.1
21 * The contents of this file are subject to the Mozilla Public License
22 * Version 1.1 (the "License"); you may not use this file except in
23 * compliance with the License. You may obtain a copy of the License at
24 * http://www.mozilla.org/MPL/
26 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
27 * OF ANY KIND, either express or implied. See the LGPL or the MPL for
28 * the specific language governing rights and limitations.
30 * The Original Code is the cairo graphics library.
32 * The Initial Developer of the Original Code is University of Southern
36 * Carl D. Worth <cworth@cworth.org>
39 #ifndef CAIRO_SURFACE_FALLBACK_PRIVATE_H
40 #define CAIRO_SURFACE_FALLBACK_PRIVATE_H
44 cairo_private cairo_status_t
45 _cairo_surface_fallback_paint (cairo_surface_t
*surface
,
47 cairo_pattern_t
*source
);
48 cairo_private cairo_status_t
49 _cairo_surface_fallback_mask (cairo_surface_t
*surface
,
51 cairo_pattern_t
*source
,
52 cairo_pattern_t
*mask
);
54 cairo_private cairo_status_t
55 _cairo_surface_fallback_stroke (cairo_surface_t
*surface
,
57 cairo_pattern_t
*source
,
58 cairo_path_fixed_t
*path
,
59 cairo_stroke_style_t
*stroke_style
,
61 cairo_matrix_t
*ctm_inverse
,
63 cairo_antialias_t antialias
);
65 cairo_private cairo_status_t
66 _cairo_surface_fallback_fill (cairo_surface_t
*surface
,
68 cairo_pattern_t
*source
,
69 cairo_path_fixed_t
*path
,
70 cairo_fill_rule_t fill_rule
,
72 cairo_antialias_t antialias
);
74 cairo_private cairo_status_t
75 _cairo_surface_fallback_show_glyphs (cairo_surface_t
*surface
,
77 cairo_pattern_t
*source
,
78 cairo_glyph_t
*glyphs
,
80 cairo_scaled_font_t
*scaled_font
);
82 cairo_private cairo_surface_t
*
83 _cairo_surface_fallback_snapshot (cairo_surface_t
*surface
);
85 cairo_private cairo_status_t
86 _cairo_surface_fallback_composite (cairo_operator_t op
,
88 cairo_pattern_t
*mask
,
99 cairo_private cairo_status_t
100 _cairo_surface_fallback_fill_rectangles (cairo_surface_t
*surface
,
102 const cairo_color_t
*color
,
103 cairo_rectangle_int_t
*rects
,
106 cairo_private cairo_status_t
107 _cairo_surface_fallback_composite_trapezoids (cairo_operator_t op
,
108 cairo_pattern_t
*pattern
,
109 cairo_surface_t
*dst
,
110 cairo_antialias_t antialias
,
117 cairo_trapezoid_t
*traps
,
120 cairo_private cairo_status_t
121 _cairo_surface_fallback_clone_similar (cairo_surface_t
*surface
,
122 cairo_surface_t
*src
,
129 cairo_surface_t
**clone_out
);