aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJoel Bodenmann <joel@unormal.org>2014-01-05 20:42:19 +0100
committerJoel Bodenmann <joel@unormal.org>2014-01-05 20:42:19 +0100
commit1778a7f3b1917fceb8bc6b5d48a5548d4e1ee7b9 (patch)
treefaa4489158f4230f57af27e54ae27f9a9b7e8840 /include
parentf3f3650ca9be377f20fb43159ce18d583f0705c4 (diff)
downloaduGFX-1778a7f3b1917fceb8bc6b5d48a5548d4e1ee7b9.tar.gz
uGFX-1778a7f3b1917fceb8bc6b5d48a5548d4e1ee7b9.tar.bz2
uGFX-1778a7f3b1917fceb8bc6b5d48a5548d4e1ee7b9.zip
gwinDestroy() and gwinRemoveChild()
Diffstat (limited to 'include')
-rw-r--r--include/gwin/gwin.h22
1 files changed, 19 insertions, 3 deletions
diff --git a/include/gwin/gwin.h b/include/gwin/gwin.h
index ded401d0..73f7ff82 100644
--- a/include/gwin/gwin.h
+++ b/include/gwin/gwin.h
@@ -389,15 +389,27 @@ extern "C" {
/**
* @brief Add a child widget to a parent one
*
- * @param[in] parent The parent widget (does not need to be parent yet)
- * @param[in] child The child widget
- * @param[in] last Should the child widget be added to the front or the back of the list?
+ * @param[in] parent The parent window (does not need to be parent yet)
+ * @param[in] child The child window
+ * @param[in] last Should the child window be added to the front or the back of the list?
*
* @api
*/
void gwinAddChild(GHandle parent, GHandle child, bool_t last);
/**
+ * @brief Remove a child from a parent
+ *
+ * @note Other children of the same parent stay
+ * @note Children of the child are lost, they have to be reassigned manually if necessary.
+ *
+ * @param[in] child The child window
+ *
+ * @api
+ */
+ void gwinRemoveChild(GHandle child);
+
+ /**
* @brief Get first child of a widget
*
* @return The first child or NULL if the widget has no children
@@ -882,6 +894,10 @@ extern "C" {
#include "gwin/image.h"
#endif
+ #if GWIN_NEED_LAYOUT || defined(__DOXYGEN__)
+ #include "gwin/layout.h"
+ #endif
+
#endif /* GFX_USE_GWIN */
#endif /* _GWIN_H */