2014-10-18 03:45:21 +00:00
|
|
|
/*
|
|
|
|
* Copyright © 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.1 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_DECLARATION_PRIVATE_H__
|
|
|
|
#define __GTK_CSS_NODE_DECLARATION_PRIVATE_H__
|
|
|
|
|
2020-01-26 03:37:17 +00:00
|
|
|
#include "gtkcountingbloomfilterprivate.h"
|
2015-02-09 10:24:29 +00:00
|
|
|
#include "gtkcsstypesprivate.h"
|
2014-10-18 03:45:21 +00:00
|
|
|
#include "gtkenums.h"
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
GtkCssNodeDeclaration * gtk_css_node_declaration_new (void);
|
|
|
|
GtkCssNodeDeclaration * gtk_css_node_declaration_ref (GtkCssNodeDeclaration *decl);
|
|
|
|
void gtk_css_node_declaration_unref (GtkCssNodeDeclaration *decl);
|
|
|
|
|
2015-09-04 17:38:50 +00:00
|
|
|
gboolean gtk_css_node_declaration_set_name (GtkCssNodeDeclaration **decl,
|
2020-01-23 23:43:26 +00:00
|
|
|
GQuark name);
|
|
|
|
GQuark gtk_css_node_declaration_get_name (const GtkCssNodeDeclaration *decl);
|
2015-01-19 23:33:34 +00:00
|
|
|
gboolean gtk_css_node_declaration_set_id (GtkCssNodeDeclaration **decl,
|
2020-01-23 23:43:26 +00:00
|
|
|
GQuark id);
|
|
|
|
GQuark gtk_css_node_declaration_get_id (const GtkCssNodeDeclaration *decl);
|
2014-10-18 03:45:21 +00:00
|
|
|
gboolean gtk_css_node_declaration_set_state (GtkCssNodeDeclaration **decl,
|
|
|
|
GtkStateFlags flags);
|
|
|
|
GtkStateFlags gtk_css_node_declaration_get_state (const GtkCssNodeDeclaration *decl);
|
|
|
|
|
|
|
|
gboolean gtk_css_node_declaration_add_class (GtkCssNodeDeclaration **decl,
|
|
|
|
GQuark class_quark);
|
|
|
|
gboolean gtk_css_node_declaration_remove_class (GtkCssNodeDeclaration **decl,
|
|
|
|
GQuark class_quark);
|
2015-09-12 00:58:28 +00:00
|
|
|
gboolean gtk_css_node_declaration_clear_classes (GtkCssNodeDeclaration **decl);
|
2014-10-18 03:45:21 +00:00
|
|
|
gboolean gtk_css_node_declaration_has_class (const GtkCssNodeDeclaration *decl,
|
|
|
|
GQuark class_quark);
|
2015-09-11 15:49:59 +00:00
|
|
|
const GQuark * gtk_css_node_declaration_get_classes (const GtkCssNodeDeclaration *decl,
|
|
|
|
guint *n_classes);
|
2014-10-18 03:45:21 +00:00
|
|
|
|
2020-01-26 03:37:17 +00:00
|
|
|
void gtk_css_node_declaration_add_bloom_hashes (const GtkCssNodeDeclaration *decl,
|
|
|
|
GtkCountingBloomFilter *filter);
|
|
|
|
void gtk_css_node_declaration_remove_bloom_hashes (const GtkCssNodeDeclaration *decl,
|
|
|
|
GtkCountingBloomFilter *filter);
|
|
|
|
|
2014-10-18 03:45:21 +00:00
|
|
|
guint gtk_css_node_declaration_hash (gconstpointer elem);
|
|
|
|
gboolean gtk_css_node_declaration_equal (gconstpointer elem1,
|
|
|
|
gconstpointer elem2);
|
|
|
|
|
2016-01-03 19:02:00 +00:00
|
|
|
void gtk_css_node_declaration_print (const GtkCssNodeDeclaration *decl,
|
|
|
|
GString *string);
|
|
|
|
|
2017-10-10 18:59:57 +00:00
|
|
|
char * gtk_css_node_declaration_to_string (const GtkCssNodeDeclaration *decl);
|
|
|
|
|
2014-10-18 03:45:21 +00:00
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __GTK_CSS_NODE_DECLARATION_PRIVATE_H__ */
|