diff options
Diffstat (limited to 'src/guichan/widgets/window.cpp')
-rw-r--r-- | src/guichan/widgets/window.cpp | 30 |
1 files changed, 17 insertions, 13 deletions
diff --git a/src/guichan/widgets/window.cpp b/src/guichan/widgets/window.cpp index 1a2279811..e82758e5f 100644 --- a/src/guichan/widgets/window.cpp +++ b/src/guichan/widgets/window.cpp @@ -58,28 +58,32 @@ namespace gcn { Window::Window() : + Container(), + MouseListener(), + mAlignment(Graphics::CENTER), + mPadding(2), + mTitleBarHeight(16), + mMovable(true), + mOpaque(true), mMoved(false) { - setFrameSize(1); - setPadding(2); - setTitleBarHeight(16); - setAlignment(Graphics::CENTER); + mFrameSize = 1; addMouseListener(this); - setMovable(true); - setOpaque(true); } Window::Window(const std::string& caption) : + Container(), + MouseListener(), + mCaption(caption), + mAlignment(Graphics::CENTER), + mPadding(2), + mTitleBarHeight(16), + mMovable(true), + mOpaque(true), mMoved(false) { - setCaption(caption); - setFrameSize(1); - setPadding(2); - setTitleBarHeight(16); - setAlignment(Graphics::CENTER); + mFrameSize = 1; addMouseListener(this); - setMovable(true); - setOpaque(true); } Window::~Window() |