summaryrefslogtreecommitdiff
path: root/gtk/gtkcssbgsizevalueprivate.h
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-04-04 12:39:55 +0200
committerBenjamin Otte <otte@redhat.com>2012-04-17 08:59:18 +0200
commitcfc64627304916e1a1848230dbb426e7dc22251f (patch)
treed853cd9ec13cf6d8aee3d42bd7178c2befd1c2fd /gtk/gtkcssbgsizevalueprivate.h
parentf785f7177c455369f1482ff6582cebf69ddddb7a (diff)
downloadgtk+-cfc64627304916e1a1848230dbb426e7dc22251f.tar.gz
cssvalue: Add a cssvalue for background-size
Diffstat (limited to 'gtk/gtkcssbgsizevalueprivate.h')
-rw-r--r--gtk/gtkcssbgsizevalueprivate.h45
1 files changed, 45 insertions, 0 deletions
diff --git a/gtk/gtkcssbgsizevalueprivate.h b/gtk/gtkcssbgsizevalueprivate.h
new file mode 100644
index 0000000000..cae8d13285
--- /dev/null
+++ b/gtk/gtkcssbgsizevalueprivate.h
@@ -0,0 +1,45 @@
+/*
+ * 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_BG_SIZE_VALUE_PRIVATE_H__
+#define __GTK_CSS_BG_SIZE_VALUE_PRIVATE_H__
+
+#include "gtkcssparserprivate.h"
+#include "gtkcssimageprivate.h"
+#include "gtkcssvalueprivate.h"
+
+G_BEGIN_DECLS
+
+GtkCssValue * _gtk_css_bg_size_value_new (GtkCssValue *x,
+ GtkCssValue *y);
+GtkCssValue * _gtk_css_bg_size_value_parse (GtkCssParser *parser);
+
+void _gtk_css_bg_size_value_compute_size (const GtkCssValue *bg_size,
+ GtkCssImage *image,
+ double area_width,
+ double area_height,
+ double *out_width,
+ double *out_height);
+GtkCssValue * _gtk_css_bg_size_value_compute (GtkCssValue *bg_size,
+ GtkStyleContext *context);
+
+
+G_END_DECLS
+
+#endif /* __GTK_CSS_BG_SIZE_VALUE_PRIVATE_H__ */