summaryrefslogtreecommitdiff
path: root/gtk/gtkcssdimensionvalueprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2016-02-12 06:25:50 +0100
committerBenjamin Otte <otte@redhat.com>2016-02-13 04:49:07 +0100
commitb246d55472cdf7f8589a8cd8627e9dc4aead2fdd (patch)
tree2aca40d044987e4ca86f4a69f339b0457a63cdc2 /gtk/gtkcssdimensionvalueprivate.h
parente2d966eda52ed8833ebdafdc7d6d43284a503453 (diff)
downloadgtk+-b246d55472cdf7f8589a8cd8627e9dc4aead2fdd.tar.gz
css: Turn number values into a virtual type
GtkCssNumberValue is now a base class for numbers. Actual numbers are now implemented in GtkCssDimensionValue. The name is borrowed from the CSS spec, so there.
Diffstat (limited to 'gtk/gtkcssdimensionvalueprivate.h')
-rw-r--r--gtk/gtkcssdimensionvalueprivate.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/gtk/gtkcssdimensionvalueprivate.h b/gtk/gtkcssdimensionvalueprivate.h
new file mode 100644
index 0000000000..2e08eba785
--- /dev/null
+++ b/gtk/gtkcssdimensionvalueprivate.h
@@ -0,0 +1,35 @@
+/*
+ * Copyright © 2012 Red Hat Inc.
+ *
+ * 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/>.
+ *
+ * Authors: Alexander Larsson <alexl@gnome.org>
+ */
+
+#ifndef __GTK_CSS_DIMENSION_VALUE_PRIVATE_H__
+#define __GTK_CSS_DIMENSION_VALUE_PRIVATE_H__
+
+#include "gtkcssnumbervalueprivate.h"
+
+G_BEGIN_DECLS
+
+GtkCssValue * gtk_css_dimension_value_new (double value,
+ GtkCssUnit unit);
+/* This function implemented in gtkcssparser.c */
+GtkCssValue * gtk_css_dimension_value_parse (GtkCssParser *parser,
+ GtkCssNumberParseFlags flags);
+
+G_END_DECLS
+
+#endif /* __GTK_CSS_DIMENSION_VALUE_PRIVATE_H__ */