]> Pileus Git - ~andy/gtk/blob - gtk/gtkshadowprivate.h
1594dc6a20ef4b9065f9cf16136a548ff1481460
[~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 #include <gtk/gtkstyleproperties.h>
27 #include <gtk/gtksymboliccolor.h>
28 #include <gtk/gtkicontheme.h>
29
30 G_BEGIN_DECLS
31
32 typedef struct _GtkShadow GtkShadow;
33
34 #define GTK_TYPE_SHADOW (_gtk_shadow_get_type ())
35
36 GType      _gtk_shadow_get_type       (void) G_GNUC_CONST;
37
38 GtkShadow *_gtk_shadow_new            (void);
39 GtkShadow *_gtk_shadow_ref            (GtkShadow          *shadow);
40 void       _gtk_shadow_unref          (GtkShadow          *shadow);
41
42 void       _gtk_shadow_append         (GtkShadow          *shadow,
43                                        gdouble             hoffset,
44                                        gdouble             voffset,
45                                        gdouble             radius,
46                                        gdouble             spread,
47                                        gboolean            inset,
48                                        GtkSymbolicColor   *color);
49
50 void       _gtk_shadow_print          (GtkShadow          *shadow,
51                                        GString            *string);
52
53 GtkShadow *_gtk_shadow_resolve        (GtkShadow          *shadow,
54                                        GtkStyleProperties *props);
55 gboolean   _gtk_shadow_get_resolved   (GtkShadow          *shadow);
56
57 void       _gtk_text_shadow_paint_layout (GtkShadow       *shadow,
58                                           cairo_t         *cr,
59                                           PangoLayout     *layout);
60
61 G_END_DECLS
62
63 #endif /* __GTK_SHADOW_H__ */