Irrlicht 3D Engine
 
Loading...
Searching...
No Matches
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
11namespace irr
12{
13namespace 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
Axis aligned bounding box in 3d dimensional space.
Definition aabbox3d.h:22
GUI Button interface.
Definition IGUIButton.h:59
Base class of all GUI elements.
Definition IGUIElement.h:26
virtual void draw()
Draws the element and its children.
GUI Environment. Used as factory and manager of all other GUI elements.
Default moveable window GUI element with border, caption and close icons.
Definition IGUIWindow.h:22
virtual IGUIButton * getMinimizeButton() const =0
Returns pointer to the minimize button.
virtual bool isDraggable() const =0
Returns true if the window can be dragged with the mouse, false if not.
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 bool getDrawBackground() const =0
Get if the window background will be drawn.
virtual IGUIButton * getMaximizeButton() const =0
Returns pointer to the maximize button.
virtual void setDrawBackground(bool draw)=0
Set if the window background will be drawn.
IGUIWindow(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
Definition IGUIWindow.h:26
virtual void setDrawTitlebar(bool draw)=0
virtual void setDraggable(bool draggable)=0
Sets whether the window can be dragged by the mouse.
virtual IGUIButton * getCloseButton() const =0
Returns pointer to the close button.
@ EGUIET_WINDOW
A window.
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
signed int s32
32 bit signed variable.
Definition irrTypes.h:66