]> Pileus Git - ~andy/gtk/blob - gtk/gtkwin32themeprivate.h
stylecontext: Do invalidation on first resize container
[~andy/gtk] / gtk / gtkwin32themeprivate.h
1 /* GTK - The GIMP Toolkit
2  * Copyright (C) 2011 Red Hat, Inc.
3  *
4  * Authors: Alexander Larsson <alexl@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_WIN32_THEME_PART_H__
21 #define __GTK_WIN32_THEME_PART_H__
22
23 #include "gtkcssparserprivate.h"
24
25 #ifdef G_OS_WIN32
26
27 #include <windows.h>
28
29 typedef HANDLE HTHEME;
30
31 #else /* !G_OS_WIN32 */
32
33 typedef void * HTHEME;
34
35 #endif /* G_OS_WIN32 */
36
37 G_BEGIN_DECLS
38
39 #define GTK_WIN32_THEME_SYMBOLIC_COLOR_NAME "-gtk-win32-color"
40
41 HTHEME             _gtk_win32_lookup_htheme_by_classname (const char  *classname);
42 cairo_surface_t *  _gtk_win32_theme_part_create_surface  (HTHEME       theme,
43                                                           int          xp_part,
44                                                           int          state,
45                                                           int          margins[4],
46                                                           int          width,
47                                                           int          height,
48                                                           int         *x_offs_out,
49                                                           int         *y_offs_out);
50
51 int                _gtk_win32_theme_int_parse     (GtkCssParser      *parser,
52                                                    int               *value);
53 gboolean           _gtk_win32_theme_color_resolve (const char        *theme_class,
54                                                    gint               id,
55                                                    GdkRGBA           *color);
56 const char *      _gtk_win32_theme_get_default    (void);
57
58 G_END_DECLS
59
60 #endif /* __GTK_WIN32_THEME_PART_H__ */