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, see <http://www.gnu.org/licenses/>. |
16 | */ |
17 | |
18 | #ifndef __GTK_CSS_LOOKUP_PRIVATE_H__ |
19 | #define __GTK_CSS_LOOKUP_PRIVATE_H__ |
20 | |
21 | #include <glib-object.h> |
22 | |
23 | #include "gtk/gtkbitmaskprivate.h" |
24 | #include "gtk/gtkcssstaticstyleprivate.h" |
25 | |
26 | #include "gtk/css/gtkcsssection.h" |
27 | |
28 | |
29 | G_BEGIN_DECLS |
30 | |
31 | typedef struct _GtkCssLookup GtkCssLookup; |
32 | |
33 | typedef struct { |
34 | GtkCssSection *section; |
35 | GtkCssValue *value; |
36 | } GtkCssLookupValue; |
37 | |
38 | struct _GtkCssLookup { |
39 | GtkBitmask *set_values; |
40 | GtkCssLookupValue values[GTK_CSS_PROPERTY_N_PROPERTIES]; |
41 | }; |
42 | |
43 | void _gtk_css_lookup_init (GtkCssLookup *lookup); |
44 | void _gtk_css_lookup_destroy (GtkCssLookup *lookup); |
45 | gboolean _gtk_css_lookup_is_missing (const GtkCssLookup *lookup, |
46 | guint id); |
47 | void _gtk_css_lookup_set (GtkCssLookup *lookup, |
48 | guint id, |
49 | GtkCssSection *section, |
50 | GtkCssValue *value); |
51 | |
52 | static inline const GtkBitmask * |
53 | _gtk_css_lookup_get_set_values (const GtkCssLookup *lookup) |
54 | { |
55 | return lookup->set_values; |
56 | } |
57 | |
58 | G_END_DECLS |
59 | |
60 | #endif /* __GTK_CSS_LOOKUP_PRIVATE_H__ */ |
61 |