summaryrefslogtreecommitdiff
path: root/gtk/gtkbinlayout.h
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2019-03-04 15:03:34 +0000
committerEmmanuele Bassi <ebassi@gnome.org>2019-03-26 00:11:27 +0000
commitd6dfa41f1079db2bfb111a551ffab4f86c3ea816 (patch)
treeba71c5a0b806f143f8b4eab0957466ea1d85a3db /gtk/gtkbinlayout.h
parent8cf06befc030dfe70f63b0c9e103f25f213f9dd3 (diff)
downloadgtk+-d6dfa41f1079db2bfb111a551ffab4f86c3ea816.tar.gz
Add GtkBinLayout
Like GtkBin, but lets you lay out multiple children instead of just one.
Diffstat (limited to 'gtk/gtkbinlayout.h')
-rw-r--r--gtk/gtkbinlayout.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/gtk/gtkbinlayout.h b/gtk/gtkbinlayout.h
new file mode 100644
index 0000000000..b19581f2eb
--- /dev/null
+++ b/gtk/gtkbinlayout.h
@@ -0,0 +1,21 @@
+/* gtkbinlayout.h: Layout manager for bin-like widgets
+ *
+ * Copyright 2019 GNOME Foundation
+ *
+ * SPDX-License-Identifier: LGPL 2.1+
+ */
+#pragma once
+
+#include <gtk/gtklayoutmanager.h>
+
+G_BEGIN_DECLS
+
+#define GTK_TYPE_BIN_LAYOUT (gtk_bin_layout_get_type ())
+
+GDK_AVAILABLE_IN_ALL
+G_DECLARE_FINAL_TYPE (GtkBinLayout, gtk_bin_layout, GTK, BIN_LAYOUT, GtkLayoutManager)
+
+GDK_AVAILABLE_IN_ALL
+GtkLayoutManager * gtk_bin_layout_new (void);
+
+G_END_DECLS