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
24G_BEGIN_DECLS
25
26typedef struct _GtkCssNodeStyleCache GtkCssNodeStyleCache;
27
28GtkCssNodeStyleCache * gtk_css_node_style_cache_new (GtkCssStyle *style);
29GtkCssNodeStyleCache * gtk_css_node_style_cache_ref (GtkCssNodeStyleCache *cache);
30void gtk_css_node_style_cache_unref (GtkCssNodeStyleCache *cache);
31
32GtkCssStyle * gtk_css_node_style_cache_get_style (GtkCssNodeStyleCache *cache);
33
34GtkCssNodeStyleCache * gtk_css_node_style_cache_insert (GtkCssNodeStyleCache *parent,
35 GtkCssNodeDeclaration *decl,
36 gboolean is_first,
37 gboolean is_last,
38 GtkCssStyle *style);
39GtkCssNodeStyleCache * gtk_css_node_style_cache_lookup (GtkCssNodeStyleCache *parent,
40 const GtkCssNodeDeclaration *decl,
41 gboolean is_first,
42 gboolean is_last);
43
44G_END_DECLS
45
46#endif /* __GTK_CSS_NODE_STYLE_CACHE_PRIVATE_H__ */
47

source code of gtk/gtk/gtkcssnodestylecacheprivate.h