From 87296762b0b845907d3788b4f6896ec75aec97d7 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Fri, 17 Apr 2015 15:45:57 -0400 Subject: [PATCH] Added uiParentDestroy(). Now to implement. --- docs/uiParent.md | 5 ++++- ui.idl | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/uiParent.md b/docs/uiParent.md index 2d21cf48..3af1e81c 100644 --- a/docs/uiParent.md +++ b/docs/uiParent.md @@ -10,7 +10,10 @@ void *Internal; This pointer is used internally by libui. Do not attempt to alter it or access/alter its data. ## func Destroy() -TODO +```c +void uiParentDestroy(uiParent *p); +``` +Destroys the uiParent. This also destroys the main child, if any. This is called by `uiWindowDestroy()` and uiTab's/uiGroup's `uiControlDestroy()`. ## func Handle() ```c diff --git a/ui.idl b/ui.idl index 2fd25245..d89c6e9b 100644 --- a/ui.idl +++ b/ui.idl @@ -59,7 +59,7 @@ interface Control { interface Parent { field Internal *void; - // TODO destroy + func Destroy(void); // TODO object destruction debug handler func Handle(void) uintptr_t; func SetMainControl(c *Control);