summaryrefslogtreecommitdiff
path: root/gtk/gtkcssparserprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2019-03-24 21:11:53 +0100
committerBenjamin Otte <otte@redhat.com>2019-04-12 19:34:28 +0200
commit753ad64cbcbe83a15feb2f1b684d92fe564085a8 (patch)
tree2c1c73172df2803d6144ecd13347b9013060f6e8 /gtk/gtkcssparserprivate.h
parent3fb44ae6512f6922ec2ea7cc0aaa017be1922f64 (diff)
downloadgtk+-753ad64cbcbe83a15feb2f1b684d92fe564085a8.tar.gz
cssparser: Introduce gtk_css_parser_consume_function()
This is a vfunc-based function parser.
Diffstat (limited to 'gtk/gtkcssparserprivate.h')
-rw-r--r--gtk/gtkcssparserprivate.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/gtkcssparserprivate.h b/gtk/gtkcssparserprivate.h
index 22973526c5..019d417f16 100644
--- a/gtk/gtkcssparserprivate.h
+++ b/gtk/gtkcssparserprivate.h
@@ -83,6 +83,14 @@ gboolean _gtk_css_parser_try_double (GtkCssParser *parser
gboolean _gtk_css_parser_try_hash_color (GtkCssParser *parser,
GdkRGBA *rgba);
+gboolean gtk_css_parser_consume_number (GtkCssParser *self,
+ double *number);
+gboolean gtk_css_parser_consume_function (GtkCssParser *self,
+ guint min_args,
+ guint max_args,
+ guint (* parse_func) (GtkCssParser *, guint, gpointer),
+ gpointer data);
+
gboolean _gtk_css_parser_has_number (GtkCssParser *parser);
char * _gtk_css_parser_read_string (GtkCssParser *parser);
GFile * _gtk_css_parser_read_url (GtkCssParser *parser);