diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-10-18 21:40:25 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-10-18 21:40:25 +0000 |
commit | aa6a0b7b75bc05e51805b6f377ca6278f1f58436 (patch) | |
tree | 718c211089348a3b67641d16821a98ae88de0285 /src/gui/window.h | |
parent | d0333c99e0ff4c5510875bf8993056875d6c93af (diff) | |
download | mana-aa6a0b7b75bc05e51805b6f377ca6278f1f58436.tar.gz mana-aa6a0b7b75bc05e51805b6f377ca6278f1f58436.tar.bz2 mana-aa6a0b7b75bc05e51805b6f377ca6278f1f58436.tar.xz mana-aa6a0b7b75bc05e51805b6f377ca6278f1f58436.zip |
Added automatic widget cleanup to the window class.
Diffstat (limited to 'src/gui/window.h')
-rw-r--r-- | src/gui/window.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/window.h b/src/gui/window.h index c7eba732..4f20f721 100644 --- a/src/gui/window.h +++ b/src/gui/window.h @@ -29,6 +29,7 @@ #include "../guichanfwd.h" class ConfigListener; +class GCContainer; class Image; class ImageRect; class WindowContainer; @@ -75,12 +76,12 @@ class Window : public gcn::Window /** * Adds a widget to the window. */ - void add(gcn::Widget *w); + void add(gcn::Widget *wi, bool delChild=true); /** * Adds a widget to the window and also specifices its position. */ - void add(gcn::Widget *w, int x, int y); + void add(gcn::Widget *w, int x, int y, bool delChild=true); /** * Sets the width of the window contents. @@ -195,7 +196,7 @@ class Window : public gcn::Window virtual void resetToDefaultSize(); protected: - gcn::Container *mChrome; /**< Contained container */ + GCContainer *mChrome; /**< Contained container */ Window *mParent; /**< The parent window */ std::string mWindowName; /**< Name of the window */ int snapSize; /**< Snap distance to window edge */ |