aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/drawable_control.hpp
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-03-22 22:49:14 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-13 22:40:51 +0100
commitb44ac46e4e54f228fd9c25c042da2efd2ab45b64 (patch)
tree558fe562a65f7608485fd0453f2f0403b3a73fb2 /src/menu/drawable_control.hpp
parentce83bbe3db755828faea0490ede53f8889ba0254 (diff)
downloadusdx-b44ac46e4e54f228fd9c25c042da2efd2ab45b64.tar.gz
usdx-b44ac46e4e54f228fd9c25c042da2efd2ab45b64.tar.xz
usdx-b44ac46e4e54f228fd9c25c042da2efd2ab45b64.zip
menu/container: cleanup while destruction of container
while a container is destructed, the parent of all containing controls will be removed, so that the controls it self do not try to unregister itself from the destroyed container later (while destruction the control class of the container and destroying all slave controls)
Diffstat (limited to 'src/menu/drawable_control.hpp')
-rw-r--r--src/menu/drawable_control.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/menu/drawable_control.hpp b/src/menu/drawable_control.hpp
index 64bd5a24..2acdd7ec 100644
--- a/src/menu/drawable_control.hpp
+++ b/src/menu/drawable_control.hpp
@@ -90,6 +90,8 @@ namespace usdx
const Dimension<int>& get_size(void) const;
int get_width(void) const;
int get_height(void) const;
+
+ void remove_parent(void);
};
};