aboutsummaryrefslogtreecommitdiffstats
path: root/include/gwin
diff options
context:
space:
mode:
Diffstat (limited to 'include/gwin')
-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 */