added MouseWheel event support for Silverlight 3.0
[moon.git] / cairo / src / cairo-surface-fallback-private.h
blob2e10241c22a9f367a5e7c172b884763074711d1f
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
33 * California.
35 * Contributor(s):
36 * Carl D. Worth <cworth@cworth.org>
39 #ifndef CAIRO_SURFACE_FALLBACK_PRIVATE_H
40 #define CAIRO_SURFACE_FALLBACK_PRIVATE_H
42 #include "cairoint.h"
44 cairo_private cairo_status_t
45 _cairo_surface_fallback_paint (cairo_surface_t *surface,
46 cairo_operator_t op,
47 cairo_pattern_t *source);
48 cairo_private cairo_status_t
49 _cairo_surface_fallback_mask (cairo_surface_t *surface,
50 cairo_operator_t op,
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,
56 cairo_operator_t op,
57 cairo_pattern_t *source,
58 cairo_path_fixed_t *path,
59 cairo_stroke_style_t *stroke_style,
60 cairo_matrix_t *ctm,
61 cairo_matrix_t *ctm_inverse,
62 double tolerance,
63 cairo_antialias_t antialias);
65 cairo_private cairo_status_t
66 _cairo_surface_fallback_fill (cairo_surface_t *surface,
67 cairo_operator_t op,
68 cairo_pattern_t *source,
69 cairo_path_fixed_t *path,
70 cairo_fill_rule_t fill_rule,
71 double tolerance,
72 cairo_antialias_t antialias);
74 cairo_private cairo_status_t
75 _cairo_surface_fallback_show_glyphs (cairo_surface_t *surface,
76 cairo_operator_t op,
77 cairo_pattern_t *source,
78 cairo_glyph_t *glyphs,
79 int num_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,
87 cairo_pattern_t *src,
88 cairo_pattern_t *mask,
89 cairo_surface_t *dst,
90 int src_x,
91 int src_y,
92 int mask_x,
93 int mask_y,
94 int dst_x,
95 int dst_y,
96 unsigned int width,
97 unsigned int height);
99 cairo_private cairo_status_t
100 _cairo_surface_fallback_fill_rectangles (cairo_surface_t *surface,
101 cairo_operator_t op,
102 const cairo_color_t *color,
103 cairo_rectangle_int_t *rects,
104 int num_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,
111 int src_x,
112 int src_y,
113 int dst_x,
114 int dst_y,
115 unsigned int width,
116 unsigned int height,
117 cairo_trapezoid_t *traps,
118 int num_traps);
120 cairo_private cairo_status_t
121 _cairo_surface_fallback_clone_similar (cairo_surface_t *surface,
122 cairo_surface_t *src,
123 int src_x,
124 int src_y,
125 int width,
126 int height,
127 int *clone_offset_x,
128 int *clone_offset_y,
129 cairo_surface_t **clone_out);
131 #endif