tizen 2.3.1 release
[framework/graphics/cairo.git] / src / cairo-surface-shadow-private.h
1 /* cairo - a vector graphics library with display and print output
2  *
3  * Copyright © 2002 University of Southern California
4  * Copyright © 2005 Red Hat, Inc.
5  * Copyright © 2009 Chris Wilson
6  * Copyright © 2013 Samsung Research America, Silicon Valley
7  *
8  * This library is free software; you can redistribute it and/or
9  * modify it either under the terms of the GNU Lesser General Public
10  * License version 2.1 as published by the Free Software Foundation
11  * (the "LGPL") or, at your option, under the terms of the Mozilla
12  * Public License Version 1.1 (the "MPL"). If you do not alter this
13  * notice, a recipient may use your version of this file under either
14  * the MPL or the LGPL.
15  *
16  * You should have received a copy of the LGPL along with this library
17  * in the file COPYING-LGPL-2.1; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA
19  * You should have received a copy of the MPL along with this library
20  * in the file COPYING-MPL-1.1
21  *
22  * The contents of this file are subject to the Mozilla Public License
23  * Version 1.1 (the "License"); you may not use this file except in
24  * compliance with the License. You may obtain a copy of the License at
25  * http://www.mozilla.org/MPL/
26  *
27  * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
28  * OF ANY KIND, either express or implied. See the LGPL or the MPL for
29  * the specific language governing rights and limitations.
30  *
31  * The Original Code is the cairo graphics library.
32  *
33  * The Initial Developer of the Original Code is University of Southern
34  * California.
35  *
36  * Contributor(s):
37  *      Henry Song <henry.song@samsung.com>
38  */
39
40 #ifndef CAIRO_SURFACE_SHADOW_PRIVATE_H
41 #define CAIRO_SURFACE_SHADOW_PRIVATE_H
42
43 #include "cairo-types-private.h"
44
45 #define MAX_SHADOW_CACHE_SIZE 1048576
46
47 CAIRO_BEGIN_DECLS
48
49 cairo_private cairo_status_t
50 _cairo_surface_shadow_paint (cairo_surface_t *target,
51                              cairo_operator_t    op,
52                              const cairo_pattern_t *source,
53                              const cairo_clip_t     *clip,
54                              const cairo_shadow_t   *shadow);
55
56 cairo_private cairo_status_t
57 _cairo_surface_shadow_mask (cairo_surface_t *target,
58                             cairo_operator_t     op,
59                             const cairo_pattern_t *source,
60                             const cairo_pattern_t *mask,
61                             const cairo_clip_t      *clip,
62                             const cairo_shadow_t  *shadow);
63
64 cairo_private cairo_status_t
65 _cairo_surface_shadow_stroke (cairo_surface_t *target,
66                               cairo_operator_t           op,
67                               const cairo_pattern_t     *source,
68                               const cairo_path_fixed_t  *path,
69                               const cairo_stroke_style_t        *stroke_style,
70                               const cairo_matrix_t              *ctm,
71                               const cairo_matrix_t              *ctm_inverse,
72                               double                     tolerance,
73                               cairo_antialias_t  antialias,
74                               const cairo_clip_t                *clip,
75                               const cairo_shadow_t      *shadow);
76
77 cairo_private cairo_status_t
78 _cairo_surface_shadow_fill (cairo_surface_t     *target,
79                             cairo_operator_t     op,
80                             const cairo_pattern_t*source,
81                             const cairo_path_fixed_t    *path,
82                             cairo_fill_rule_t    fill_rule,
83                             double               tolerance,
84                             cairo_antialias_t    antialias,
85                             const cairo_clip_t          *clip,
86                             const cairo_shadow_t *shadow);
87
88 cairo_private cairo_status_t
89 _cairo_surface_shadow_glyphs (cairo_surface_t           *target,
90                               cairo_operator_t           op,
91                               const cairo_pattern_t     *source,
92                               cairo_scaled_font_t       *scaled_font,
93                               cairo_glyph_t             *glyphs,
94                               int                        num_glyphs,
95                               const cairo_clip_t                *clip,
96                               const cairo_shadow_t      *shadow);
97
98 #endif /* CAIRO_SURFACE_SHADOW_PRIVATE_H */