]> Pileus Git - ~andy/gtk/blob - gtk/gtkcssshadowvalueprivate.h
a53badd0b632fb343c6d86adc1ab20f185f021d1
[~andy/gtk] / gtk / gtkcssshadowvalueprivate.h
1 /* GTK - The GIMP Toolkit
2  * Copyright (C) 2011 Red Hat, Inc.
3  *
4  * Author: Cosimo Cecchi <cosimoc@gnome.org>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library. If not, see <http://www.gnu.org/licenses/>.
18  */
19
20 #ifndef __GTK_SHADOW_H__
21 #define __GTK_SHADOW_H__
22
23 #include <cairo.h>
24 #include <pango/pango.h>
25
26 #include "gtktypes.h"
27 #include "gtkcssparserprivate.h"
28 #include "gtkcssvalueprivate.h"
29 #include "gtkroundedboxprivate.h"
30
31 G_BEGIN_DECLS
32
33 GtkCssValue *   _gtk_css_shadow_value_parse           (GtkCssParser             *parser);
34
35 GtkCssValue *   _gtk_css_shadow_value_compute         (GtkCssValue              *shadow,
36                                                        GtkStyleContext          *context);
37
38 void            _gtk_css_shadow_value_paint_layout    (const GtkCssValue        *shadow,
39                                                        cairo_t                  *cr,
40                                                        PangoLayout              *layout);
41
42 void            _gtk_css_shadow_value_paint_icon      (const GtkCssValue        *shadow,
43                                                        cairo_t                  *cr);
44
45 void            _gtk_css_shadow_value_paint_spinner   (const GtkCssValue        *shadow,
46                                                        cairo_t                  *cr,
47                                                        gdouble                   radius,
48                                                        gdouble                   progress);
49 void            _gtk_css_shadow_value_paint_box       (const GtkCssValue        *shadow,
50                                                        cairo_t                  *cr,
51                                                        const GtkRoundedBox      *padding_box);
52
53 G_END_DECLS
54
55 #endif /* __GTK_SHADOW_H__ */