Commit 7414995b authored by hybrid's avatar hybrid

Add implementations for new abstract methods of IGUIWindow

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@3084 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 0be2fc26
...@@ -276,7 +276,12 @@ void CGUIEditWindow::setDraggable(bool draggable) ...@@ -276,7 +276,12 @@ void CGUIEditWindow::setDraggable(bool draggable)
// we're supposed to supply these if we're creating an IGUIWindow // we're supposed to supply these if we're creating an IGUIWindow
// but we don't need them so we'll just return null // but we don't need them so we'll just return null
//! Returns the rectangle of the drawable area (without border, without titlebar and without scrollbars)
core::rect<s32> CGUIEditWindow::getClientRect() const
{
return core::recti();
}
IGUIButton* CGUIEditWindow::getCloseButton() const {return 0;} IGUIButton* CGUIEditWindow::getCloseButton() const {return 0;}
IGUIButton* CGUIEditWindow::getMinimizeButton() const {return 0;} IGUIButton* CGUIEditWindow::getMinimizeButton() const {return 0;}
IGUIButton* CGUIEditWindow::getMaximizeButton() const {return 0;} IGUIButton* CGUIEditWindow::getMaximizeButton() const {return 0;}
...@@ -38,6 +38,7 @@ namespace gui ...@@ -38,6 +38,7 @@ namespace gui
virtual void setDraggable(bool draggable); virtual void setDraggable(bool draggable);
// not used // not used
virtual core::rect<s32> getClientRect() const;
virtual IGUIButton* getCloseButton() const; virtual IGUIButton* getCloseButton() const;
virtual IGUIButton* getMinimizeButton() const; virtual IGUIButton* getMinimizeButton() const;
virtual IGUIButton* getMaximizeButton() const; virtual IGUIButton* getMaximizeButton() const;
......
...@@ -19,7 +19,7 @@ CGUITextureCacheBrowser::CGUITextureCacheBrowser(IGUIEnvironment* environment, s ...@@ -19,7 +19,7 @@ CGUITextureCacheBrowser::CGUITextureCacheBrowser(IGUIEnvironment* environment, s
CloseButton(0), Panel(0), SelectedTexture(-1), Dragging(false), IsDraggable(true) CloseButton(0), Panel(0), SelectedTexture(-1), Dragging(false), IsDraggable(true)
{ {
#ifdef _DEBUG #ifdef _DEBUG
setDebugName("CGUIWindow"); setDebugName("CGUITextureCacheBrowser");
#endif #endif
IGUISkin* skin = 0; IGUISkin* skin = 0;
...@@ -322,5 +322,11 @@ void CGUITextureCacheBrowser::setDraggable(bool draggable) ...@@ -322,5 +322,11 @@ void CGUITextureCacheBrowser::setDraggable(bool draggable)
} }
//! Returns the rectangle of the drawable area (without border, without titlebar and without scrollbars)
core::rect<s32> CGUITextureCacheBrowser::getClientRect() const
{
return core::recti();
}
} // namespace gui } // namespace gui
} // namespace irr } // namespace irr
...@@ -56,6 +56,7 @@ namespace gui ...@@ -56,6 +56,7 @@ namespace gui
virtual void setDraggable(bool draggable); virtual void setDraggable(bool draggable);
//! not used //! not used
virtual core::rect<s32> getClientRect() const;
virtual void setDrawBackground(bool draw) { } virtual void setDrawBackground(bool draw) { }
virtual bool getDrawBackground() const { return true; } virtual bool getDrawBackground() const { return true; }
virtual void setDrawTitlebar(bool draw) { } virtual void setDrawTitlebar(bool draw) { }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment