1 | /* GTK - The GIMP Toolkit |
2 | * Copyright (C) 2016 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_NODE_STYLE_CACHE_PRIVATE_H__ |
19 | #define __GTK_CSS_NODE_STYLE_CACHE_PRIVATE_H__ |
20 | |
21 | #include "gtkcssnodedeclarationprivate.h" |
22 | #include "gtkcssstyleprivate.h" |
23 | |
24 | G_BEGIN_DECLS |
25 | |
26 | typedef struct _GtkCssNodeStyleCache GtkCssNodeStyleCache; |
27 | |
28 | GtkCssNodeStyleCache * gtk_css_node_style_cache_new (GtkCssStyle *style); |
29 | GtkCssNodeStyleCache * gtk_css_node_style_cache_ref (GtkCssNodeStyleCache *cache); |
30 | void gtk_css_node_style_cache_unref (GtkCssNodeStyleCache *cache); |
31 | |
32 | GtkCssStyle * gtk_css_node_style_cache_get_style (GtkCssNodeStyleCache *cache); |
33 | |
34 | GtkCssNodeStyleCache * gtk_css_node_style_cache_insert (GtkCssNodeStyleCache *parent, |
35 | GtkCssNodeDeclaration *decl, |
36 | gboolean is_first, |
37 | gboolean is_last, |
38 | GtkCssStyle *style); |
39 | GtkCssNodeStyleCache * gtk_css_node_style_cache_lookup (GtkCssNodeStyleCache *parent, |
40 | const GtkCssNodeDeclaration *decl, |
41 | gboolean is_first, |
42 | gboolean is_last); |
43 | |
44 | G_END_DECLS |
45 | |
46 | #endif /* __GTK_CSS_NODE_STYLE_CACHE_PRIVATE_H__ */ |
47 | |