summaryrefslogtreecommitdiff
path: root/gtk/gtkcsspositionvalueprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-04-03 22:21:16 +0200
committerBenjamin Otte <otte@redhat.com>2012-04-17 08:59:18 +0200
commit5377169ef33d7b17d953ccd464e64dbd32335c47 (patch)
treecf0a00eb15aef8b41d6437bb710bb684dcd61a6b /gtk/gtkcsspositionvalueprivate.h
parentaed7600425f42d568102c944fb4db8cac28fcf12 (diff)
downloadgtk+-5377169ef33d7b17d953ccd464e64dbd32335c47.tar.gz
cssvalue: Add a value for background-position
Diffstat (limited to 'gtk/gtkcsspositionvalueprivate.h')
-rw-r--r--gtk/gtkcsspositionvalueprivate.h42
1 files changed, 42 insertions, 0 deletions
diff --git a/gtk/gtkcsspositionvalueprivate.h b/gtk/gtkcsspositionvalueprivate.h
new file mode 100644
index 0000000000..61a5b43074
--- /dev/null
+++ b/gtk/gtkcsspositionvalueprivate.h
@@ -0,0 +1,42 @@
+/*
+ * 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_POSITION_VALUE_PRIVATE_H__
+#define __GTK_CSS_POSITION_VALUE_PRIVATE_H__
+
+#include "gtkcssparserprivate.h"
+#include "gtkcssvalueprivate.h"
+
+G_BEGIN_DECLS
+
+GtkCssValue * _gtk_css_position_value_new (GtkCssValue *x,
+ GtkCssValue *y);
+GtkCssValue * _gtk_css_position_value_parse (GtkCssParser *parser);
+
+double _gtk_css_position_value_get_x (const GtkCssValue *position,
+ double one_hundred_percent);
+double _gtk_css_position_value_get_y (const GtkCssValue *position,
+ double one_hundred_percent);
+GtkCssValue * _gtk_css_position_value_compute (GtkCssValue *position,
+ GtkStyleContext *context);
+
+
+G_END_DECLS
+
+#endif /* __GTK_CSS_POSITION_VALUE_PRIVATE_H__ */