diff options
author | Benjamin Otte <otte@redhat.com> | 2015-01-10 00:47:32 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-03-18 15:23:28 +0100 |
commit | be596f3967c184e66f8ba5fde2880b4220989a75 (patch) | |
tree | 0f3a96e6c6375c8dcfb239c8a80f0062ea6012a9 /gtk/gtkcssnodeprivate.h | |
parent | 99c4f2dd3947c290e3ea19153202be3e43b22add (diff) | |
download | gtk+-be596f3967c184e66f8ba5fde2880b4220989a75.tar.gz |
stylecontext: Split out GtkCssNode into own file
The functionality of it is supposed to grow, so better put it in a
custom file early.
This is just a naive split so far, the next patches will split things
further.
Diffstat (limited to 'gtk/gtkcssnodeprivate.h')
-rw-r--r-- | gtk/gtkcssnodeprivate.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/gtk/gtkcssnodeprivate.h b/gtk/gtkcssnodeprivate.h new file mode 100644 index 0000000000..c8f2ff83a6 --- /dev/null +++ b/gtk/gtkcssnodeprivate.h @@ -0,0 +1,47 @@ +/* GTK - The GIMP Toolkit + * Copyright (C) 2014 Benjamin Otte <otte@gnome.org> + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library. If not, see <http://www.gnu.org/licenses/>. + */ + +#ifndef __GTK_CSS_NODE_PRIVATE_H__ +#define __GTK_CSS_NODE_PRIVATE_H__ + +#include "gtkcssnodedeclarationprivate.h" +#include "gtkcssstyleprivate.h" + +G_BEGIN_DECLS + +typedef struct _GtkCssNode GtkCssNode; + +struct _GtkCssNode +{ + GtkCssNodeDeclaration *decl; + GtkCssNode *parent; + GtkCssStyle *style; +}; + +GtkCssNode * gtk_css_node_new (void); + +void gtk_css_node_free (GtkCssNode *cssnode); + +GtkCssNode * gtk_css_node_get_parent (GtkCssNode *cssnode); + +GtkCssStyle * gtk_css_node_get_style (GtkCssNode *cssnode); +void gtk_css_node_set_style (GtkCssNode *cssnode, + GtkCssStyle *style); + +G_END_DECLS + +#endif /* __GTK_CSS_NODE_PRIVATE_H__ */ |