]> Pileus Git - ~andy/gtk/blob - gtk/gtkshadowprivate.h
Replace GArray with GSequence in GtkTreeModelSort
[~andy/gtk] / gtk / gtkshadowprivate.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, write to the
18  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21
22 #ifndef __GTK_SHADOW_H__
23 #define __GTK_SHADOW_H__
24
25 #include <glib-object.h>
26
27 #include "gtkstyleproperties.h"
28 #include "gtksymboliccolor.h"
29 #include "gtkicontheme.h"
30 #include "gtkcsstypesprivate.h"
31 #include "gtkroundedboxprivate.h"
32
33 G_BEGIN_DECLS
34
35 typedef struct _GtkShadow GtkShadow;
36
37 #define GTK_TYPE_SHADOW (_gtk_shadow_get_type ())
38
39 GType      _gtk_shadow_get_type       (void) G_GNUC_CONST;
40
41 GtkShadow *_gtk_shadow_new            (void);
42 GtkShadow *_gtk_shadow_ref            (GtkShadow          *shadow);
43 void       _gtk_shadow_unref          (GtkShadow          *shadow);
44
45 void       _gtk_shadow_append         (GtkShadow          *shadow,
46                                        gdouble             hoffset,
47                                        gdouble             voffset,
48                                        gdouble             radius,
49                                        gdouble             spread,
50                                        gboolean            inset,
51                                        GtkSymbolicColor   *color);
52
53 void       _gtk_shadow_print          (GtkShadow          *shadow,
54                                        GString            *string);
55
56 GtkShadow *_gtk_shadow_resolve        (GtkShadow          *shadow,
57                                        GtkStyleProperties *props);
58 gboolean   _gtk_shadow_get_resolved   (GtkShadow          *shadow);
59
60 void       _gtk_text_shadow_paint_layout (GtkShadow       *shadow,
61                                           cairo_t         *cr,
62                                           PangoLayout     *layout);
63
64 void       _gtk_icon_shadow_paint        (GtkShadow *shadow,
65                                           cairo_t *cr);
66
67 void       _gtk_icon_shadow_paint_spinner (GtkShadow *shadow,
68                                            cairo_t   *cr,
69                                            gdouble    radius,
70                                            gdouble    progress);
71 void       _gtk_box_shadow_render         (GtkShadow           *shadow,
72                                            cairo_t             *cr,
73                                            const GtkRoundedBox *padding_box);
74
75 G_END_DECLS
76
77 #endif /* __GTK_SHADOW_H__ */