]> Pileus Git - ~andy/gtk/blob - gtk/gtkstyleproviderprivate.h
a11y: Redo ref_accessible_at_point()
[~andy/gtk] / gtk / gtkstyleproviderprivate.h
1 /* GTK - The GIMP Toolkit
2  * Copyright (C) 2011 Benjamin Otte <otte@gnome.org>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20 #ifndef __GTK_STYLE_PROVIDER_PRIVATE_H__
21 #define __GTK_STYLE_PROVIDER_PRIVATE_H__
22
23 #include <glib-object.h>
24 #include "gtk/gtkcsslookupprivate.h"
25 #include <gtk/gtkenums.h>
26 #include <gtk/gtksymboliccolor.h>
27 #include <gtk/gtkwidgetpath.h>
28
29 G_BEGIN_DECLS
30
31 #define GTK_TYPE_STYLE_PROVIDER_PRIVATE          (_gtk_style_provider_private_get_type ())
32 #define GTK_STYLE_PROVIDER_PRIVATE(o)            (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_STYLE_PROVIDER_PRIVATE, GtkStyleProviderPrivate))
33 #define GTK_IS_STYLE_PROVIDER_PRIVATE(o)         (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_STYLE_PROVIDER_PRIVATE))
34 #define GTK_STYLE_PROVIDER_PRIVATE_GET_INTERFACE(o)  (G_TYPE_INSTANCE_GET_INTERFACE ((o), GTK_TYPE_STYLE_PROVIDER_PRIVATE, GtkStyleProviderPrivateInterface))
35
36 typedef struct _GtkStyleProviderPrivateInterface GtkStyleProviderPrivateInterface;
37 typedef struct _GtkStyleProviderPrivate GtkStyleProviderPrivate; /* dummy typedef */
38
39 struct _GtkStyleProviderPrivateInterface
40 {
41   GTypeInterface g_iface;
42
43   GtkSymbolicColor *    (* get_color)           (GtkStyleProviderPrivate *provider,
44                                                  const char              *name);
45   void                  (* lookup)              (GtkStyleProviderPrivate *provider,
46                                                  GtkWidgetPath           *path,
47                                                  GtkStateFlags            state,
48                                                  GtkCssLookup            *lookup);
49 };
50
51 GType                   _gtk_style_provider_private_get_type     (void) G_GNUC_CONST;
52
53 GtkSymbolicColor *      _gtk_style_provider_private_get_color    (GtkStyleProviderPrivate *provider,
54                                                                   const char              *name);
55 void                    _gtk_style_provider_private_lookup       (GtkStyleProviderPrivate *provider,
56                                                                   GtkWidgetPath           *path,
57                                                                   GtkStateFlags            state,
58                                                                   GtkCssLookup            *lookup);
59
60 G_END_DECLS
61
62 #endif /* __GTK_STYLE_PROVIDER_PRIVATE_H__ */