diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/irrlicht-1.8/include/IGUIWindow.h | 148 |
1 files changed, 74 insertions, 74 deletions
diff --git a/libraries/irrlicht-1.8/include/IGUIWindow.h b/libraries/irrlicht-1.8/include/IGUIWindow.h index 6383bf0..23d45da 100644 --- a/libraries/irrlicht-1.8/include/IGUIWindow.h +++ b/libraries/irrlicht-1.8/include/IGUIWindow.h | |||
@@ -1,74 +1,74 @@ | |||
1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt | 1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt |
2 | // This file is part of the "Irrlicht Engine". | 2 | // This file is part of the "Irrlicht Engine". |
3 | // For conditions of distribution and use, see copyright notice in irrlicht.h | 3 | // For conditions of distribution and use, see copyright notice in irrlicht.h |
4 | 4 | ||
5 | #ifndef __I_GUI_WINDOW_H_INCLUDED__ | 5 | #ifndef __I_GUI_WINDOW_H_INCLUDED__ |
6 | #define __I_GUI_WINDOW_H_INCLUDED__ | 6 | #define __I_GUI_WINDOW_H_INCLUDED__ |
7 | 7 | ||
8 | #include "IGUIElement.h" | 8 | #include "IGUIElement.h" |
9 | #include "EMessageBoxFlags.h" | 9 | #include "EMessageBoxFlags.h" |
10 | 10 | ||
11 | namespace irr | 11 | namespace irr |
12 | { | 12 | { |
13 | namespace gui | 13 | namespace gui |
14 | { | 14 | { |
15 | class IGUIButton; | 15 | class IGUIButton; |
16 | 16 | ||
17 | //! Default moveable window GUI element with border, caption and close icons. | 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: | 18 | /** \par This element can create the following events of type EGUI_EVENT_TYPE: |
19 | \li EGET_ELEMENT_CLOSED | 19 | \li EGET_ELEMENT_CLOSED |
20 | */ | 20 | */ |
21 | class IGUIWindow : public IGUIElement | 21 | class IGUIWindow : public IGUIElement |
22 | { | 22 | { |
23 | public: | 23 | public: |
24 | 24 | ||
25 | //! constructor | 25 | //! constructor |
26 | IGUIWindow(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle) | 26 | IGUIWindow(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle) |
27 | : IGUIElement(EGUIET_WINDOW, environment, parent, id, rectangle) {} | 27 | : IGUIElement(EGUIET_WINDOW, environment, parent, id, rectangle) {} |
28 | 28 | ||
29 | //! Returns pointer to the close button | 29 | //! Returns pointer to the close button |
30 | /** You can hide the button by calling setVisible(false) on the result. */ | 30 | /** You can hide the button by calling setVisible(false) on the result. */ |
31 | virtual IGUIButton* getCloseButton() const = 0; | 31 | virtual IGUIButton* getCloseButton() const = 0; |
32 | 32 | ||
33 | //! Returns pointer to the minimize button | 33 | //! Returns pointer to the minimize button |
34 | /** You can hide the button by calling setVisible(false) on the result. */ | 34 | /** You can hide the button by calling setVisible(false) on the result. */ |
35 | virtual IGUIButton* getMinimizeButton() const = 0; | 35 | virtual IGUIButton* getMinimizeButton() const = 0; |
36 | 36 | ||
37 | //! Returns pointer to the maximize button | 37 | //! Returns pointer to the maximize button |
38 | /** You can hide the button by calling setVisible(false) on the result. */ | 38 | /** You can hide the button by calling setVisible(false) on the result. */ |
39 | virtual IGUIButton* getMaximizeButton() const = 0; | 39 | virtual IGUIButton* getMaximizeButton() const = 0; |
40 | 40 | ||
41 | //! Returns true if the window can be dragged with the mouse, false if not | 41 | //! Returns true if the window can be dragged with the mouse, false if not |
42 | virtual bool isDraggable() const = 0; | 42 | virtual bool isDraggable() const = 0; |
43 | 43 | ||
44 | //! Sets whether the window can be dragged by the mouse | 44 | //! Sets whether the window can be dragged by the mouse |
45 | virtual void setDraggable(bool draggable) = 0; | 45 | virtual void setDraggable(bool draggable) = 0; |
46 | 46 | ||
47 | //! Set if the window background will be drawn | 47 | //! Set if the window background will be drawn |
48 | virtual void setDrawBackground(bool draw) = 0; | 48 | virtual void setDrawBackground(bool draw) = 0; |
49 | 49 | ||
50 | //! Get if the window background will be drawn | 50 | //! Get if the window background will be drawn |
51 | virtual bool getDrawBackground() const = 0; | 51 | virtual bool getDrawBackground() const = 0; |
52 | 52 | ||
53 | //! Set if the window titlebar will be drawn | 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 | 54 | //! Note: If the background is not drawn, then the titlebar is automatically also not drawn |
55 | virtual void setDrawTitlebar(bool draw) = 0; | 55 | virtual void setDrawTitlebar(bool draw) = 0; |
56 | 56 | ||
57 | //! Get if the window titlebar will be drawn | 57 | //! Get if the window titlebar will be drawn |
58 | virtual bool getDrawTitlebar() const = 0; | 58 | virtual bool getDrawTitlebar() const = 0; |
59 | 59 | ||
60 | //! Returns the rectangle of the drawable area (without border and without titlebar) | 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> | 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> | 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. | 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 | 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. */ | 65 | the menu area additionally. */ |
66 | virtual core::rect<s32> getClientRect() const = 0; | 66 | virtual core::rect<s32> getClientRect() const = 0; |
67 | }; | 67 | }; |
68 | 68 | ||
69 | 69 | ||
70 | } // end namespace gui | 70 | } // end namespace gui |
71 | } // end namespace irr | 71 | } // end namespace irr |
72 | 72 | ||
73 | #endif | 73 | #endif |
74 | 74 | ||