1 /* cairo - a vector graphics library with display and print output
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
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.
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
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/
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.
31 * The Original Code is the cairo graphics library.
33 * The Initial Developer of the Original Code is University of Southern
37 * Henry Song <henry.song@samsung.com>
40 #ifndef CAIRO_SURFACE_SHADOW_PRIVATE_H
41 #define CAIRO_SURFACE_SHADOW_PRIVATE_H
43 #include "cairo-types-private.h"
45 #define MAX_SHADOW_CACHE_SIZE 1048576
49 cairo_private cairo_status_t
50 _cairo_surface_shadow_paint (cairo_surface_t *target,
52 const cairo_pattern_t *source,
53 const cairo_clip_t *clip,
54 const cairo_shadow_t *shadow);
56 cairo_private cairo_status_t
57 _cairo_surface_shadow_mask (cairo_surface_t *target,
59 const cairo_pattern_t *source,
60 const cairo_pattern_t *mask,
61 const cairo_clip_t *clip,
62 const cairo_shadow_t *shadow);
64 cairo_private cairo_status_t
65 _cairo_surface_shadow_stroke (cairo_surface_t *target,
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,
73 cairo_antialias_t antialias,
74 const cairo_clip_t *clip,
75 const cairo_shadow_t *shadow);
77 cairo_private cairo_status_t
78 _cairo_surface_shadow_fill (cairo_surface_t *target,
80 const cairo_pattern_t*source,
81 const cairo_path_fixed_t *path,
82 cairo_fill_rule_t fill_rule,
84 cairo_antialias_t antialias,
85 const cairo_clip_t *clip,
86 const cairo_shadow_t *shadow);
88 cairo_private cairo_status_t
89 _cairo_surface_shadow_glyphs (cairo_surface_t *target,
91 const cairo_pattern_t *source,
92 cairo_scaled_font_t *scaled_font,
93 cairo_glyph_t *glyphs,
95 const cairo_clip_t *clip,
96 const cairo_shadow_t *shadow);
98 #endif /* CAIRO_SURFACE_SHADOW_PRIVATE_H */