aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/irrlicht-1.8/include/IGUIWindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/irrlicht-1.8/include/IGUIWindow.h')
-rw-r--r--libraries/irrlicht-1.8/include/IGUIWindow.h74
1 files changed, 0 insertions, 74 deletions
diff --git a/libraries/irrlicht-1.8/include/IGUIWindow.h b/libraries/irrlicht-1.8/include/IGUIWindow.h
deleted file mode 100644
index 23d45da..0000000
--- a/libraries/irrlicht-1.8/include/IGUIWindow.h
+++ /dev/null
@@ -1,74 +0,0 @@
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
17 //! Default moveable window GUI element with border, caption and close icons.
18 /** \par This element can create the following events of type EGUI_EVENT_TYPE:
19 \li EGET_ELEMENT_CLOSED
20 */
21 class IGUIWindow : public IGUIElement
22 {
23 public:
24
25 //! constructor
26 IGUIWindow(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
27 : IGUIElement(EGUIET_WINDOW, environment, parent, id, rectangle) {}
28
29 //! Returns pointer to the close button
30 /** You can hide the button by calling setVisible(false) on the result. */
31 virtual IGUIButton* getCloseButton() const = 0;
32
33 //! Returns pointer to the minimize button
34 /** You can hide the button by calling setVisible(false) on the result. */
35 virtual IGUIButton* getMinimizeButton() const = 0;
36
37 //! Returns pointer to the maximize button
38 /** You can hide the button by calling setVisible(false) on the result. */
39 virtual IGUIButton* getMaximizeButton() const = 0;
40
41 //! Returns true if the window can be dragged with the mouse, false if not
42 virtual bool isDraggable() const = 0;
43
44 //! Sets whether the window can be dragged by the mouse
45 virtual void setDraggable(bool draggable) = 0;
46
47 //! Set if the window background will be drawn
48 virtual void setDrawBackground(bool draw) = 0;
49
50 //! Get if the window background will be drawn
51 virtual bool getDrawBackground() const = 0;
52
53 //! Set if the window titlebar will be drawn
54 //! Note: If the background is not drawn, then the titlebar is automatically also not drawn
55 virtual void setDrawTitlebar(bool draw) = 0;
56
57 //! Get if the window titlebar will be drawn
58 virtual bool getDrawTitlebar() const = 0;
59
60 //! Returns the rectangle of the drawable area (without border and without titlebar)
61 /** The coordinates are given relative to the top-left position of the gui element.<br>
62 So to get absolute positions you have to add the resulting rectangle to getAbsolutePosition().UpperLeftCorner.<br>
63 To get it relative to the parent element you have to add the resulting rectangle to getRelativePosition().UpperLeftCorner.
64 Beware that adding a menu will not change the clientRect as menus are own gui elements, so in that case you might want to subtract
65 the menu area additionally. */
66 virtual core::rect<s32> getClientRect() const = 0;
67 };
68
69
70} // end namespace gui
71} // end namespace irr
72
73#endif
74