Irrlicht 3D Engine
IGUIWindow.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2012 Nikolaus Gebhardt
2 // This file is part of the "Irrlicht Engine".
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
4 
5 #ifndef __I_GUI_WINDOW_H_INCLUDED__
6 #define __I_GUI_WINDOW_H_INCLUDED__
7 
8 #include "IGUIElement.h"
9 #include "EMessageBoxFlags.h"
10 
11 namespace irr
12 {
13 namespace gui
14 {
15  class IGUIButton;
16 
18 
21  class IGUIWindow : public IGUIElement
22  {
23  public:
24 
26  IGUIWindow(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
27  : IGUIElement(EGUIET_WINDOW, environment, parent, id, rectangle) {}
28 
30 
31  virtual IGUIButton* getCloseButton() const = 0;
32 
34 
35  virtual IGUIButton* getMinimizeButton() const = 0;
36 
38 
39  virtual IGUIButton* getMaximizeButton() const = 0;
40 
42  virtual bool isDraggable() const = 0;
43 
45  virtual void setDraggable(bool draggable) = 0;
46 
48  virtual void setDrawBackground(bool draw) = 0;
49 
51  virtual bool getDrawBackground() const = 0;
52 
55  virtual void setDrawTitlebar(bool draw) = 0;
56 
58  virtual bool getDrawTitlebar() const = 0;
59 
61 
66  virtual core::rect<s32> getClientRect() const = 0;
67  };
68 
69 
70 } // end namespace gui
71 } // end namespace irr
72 
73 #endif
74 
virtual bool getDrawBackground() const =0
Get if the window background will be drawn.
Default moveable window GUI element with border, caption and close icons.
Definition: IGUIWindow.h:21
GUI Button interface.
Definition: IGUIButton.h:109
virtual void setDraggable(bool draggable)=0
Sets whether the window can be dragged by the mouse.
virtual IGUIButton * getMinimizeButton() const =0
Returns pointer to the minimize button.
virtual void setDrawTitlebar(bool draw)=0
Everything in the Irrlicht Engine can be found in this namespace.
Definition: aabbox3d.h:12
GUI Environment. Used as factory and manager of all other GUI elements.
virtual bool isDraggable() const =0
Returns true if the window can be dragged with the mouse, false if not.
signed int s32
32 bit signed variable.
Definition: irrTypes.h:70
IGUIWindow(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
Definition: IGUIWindow.h:26
virtual void draw()
Draws the element and its children.
Definition: IGUIElement.h:309
virtual IGUIButton * getCloseButton() const =0
Returns pointer to the close button.
Base class of all GUI elements.
Definition: IGUIElement.h:23
virtual void setDrawBackground(bool draw)=0
Set if the window background will be drawn.
virtual core::rect< s32 > getClientRect() const =0
Returns the rectangle of the drawable area (without border and without titlebar)
virtual bool getDrawTitlebar() const =0
Get if the window titlebar will be drawn.
virtual IGUIButton * getMaximizeButton() const =0
Returns pointer to the maximize button.