summaryrefslogtreecommitdiffstats
path: root/include/widgets/container.h
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-01-05 18:33:57 +0100
committerDave Davenport <qball@gmpclient.org>2017-01-05 18:33:57 +0100
commit3eb450c37eee98bab34c014899b81964b01caee4 (patch)
tree2688a209936bebb6d1e91fd6c2f63fe147d1962b /include/widgets/container.h
parente6a6d5f8947c1950be2a8354d27040e32f4d49de (diff)
Add generic container (renamed window widget) put container around message.
Diffstat (limited to 'include/widgets/container.h')
-rw-r--r--include/widgets/container.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/include/widgets/container.h b/include/widgets/container.h
new file mode 100644
index 00000000..6b417075
--- /dev/null
+++ b/include/widgets/container.h
@@ -0,0 +1,34 @@
+#ifndef ROFI_CONTAINER_H
+#define ROFI_CONTAINER_H
+
+#include "widget.h"
+
+/**
+ * @defgroup container container
+ * @ingroup widget
+ *
+ *
+ * @{
+ */
+
+/**
+ * Abstract handle to the container widget internal state.
+ */
+typedef struct _window container;
+
+/**
+ * @param name The name of the widget.
+ *
+ * @returns a newly created container, free with #widget_free
+ */
+container * container_create ( const char *name );
+
+/**
+ * @param container Handle to the container widget.
+ * @param child Handle to the child widget to pack.
+ *
+ * Add a widget to the container.
+ */
+void container_add ( container *container, widget *child );
+/*@}*/
+#endif // ROFI_CONTAINER_H