aboutsummaryrefslogtreecommitdiffstats
path: root/src/menu/control.hpp
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2010-04-23 11:43:21 +0200
committerAlexander Sulfrian <alexander@sulfrian.net>2013-01-05 17:17:47 +0100
commitb3f87944ba62ee82684f30fc89d8bbd5cf472b48 (patch)
tree0099a83f05ae70506c1355fc2f3c7c29803664cd /src/menu/control.hpp
parentf2b29d039424262426fd4598ce076f54e31854cf (diff)
downloadusdx-b3f87944ba62ee82684f30fc89d8bbd5cf472b48.tar.gz
usdx-b3f87944ba62ee82684f30fc89d8bbd5cf472b48.tar.xz
usdx-b3f87944ba62ee82684f30fc89d8bbd5cf472b48.zip
added parent to control
parent is used to delete the objects if the parent is deleted
Diffstat (limited to 'src/menu/control.hpp')
-rw-r--r--src/menu/control.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/menu/control.hpp b/src/menu/control.hpp
index 2d47eb55..d0b70d4f 100644
--- a/src/menu/control.hpp
+++ b/src/menu/control.hpp
@@ -31,9 +31,16 @@ namespace usdx
{
class Control
{
+ private:
+ Control* parent;
+
public:
- Control();
+ Control(Control *parent);
virtual ~Control();
+
+ void set_parent(Control *parent);
+
+ Control* get_parent(void) const;
};
};