diff options
author | David Walter Seikel | 2014-01-13 19:47:58 +1000 |
---|---|---|
committer | David Walter Seikel | 2014-01-13 19:47:58 +1000 |
commit | f9158592e1478b2013afc7041d9ed041cf2d2f4a (patch) | |
tree | b16e389d7988700e21b4c9741044cefa536dcbae /libraries/irrlicht-1.8/source/Irrlicht/CGUIModalScreen.h | |
parent | Libraries readme updated with change markers and more of the Irrlicht changes. (diff) | |
download | SledjHamr-f9158592e1478b2013afc7041d9ed041cf2d2f4a.zip SledjHamr-f9158592e1478b2013afc7041d9ed041cf2d2f4a.tar.gz SledjHamr-f9158592e1478b2013afc7041d9ed041cf2d2f4a.tar.bz2 SledjHamr-f9158592e1478b2013afc7041d9ed041cf2d2f4a.tar.xz |
Update Irrlicht to 1.8.1. Include actual change markers this time. lol
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/CGUIModalScreen.h')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/CGUIModalScreen.h | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CGUIModalScreen.h b/libraries/irrlicht-1.8/source/Irrlicht/CGUIModalScreen.h deleted file mode 100644 index 273e532..0000000 --- a/libraries/irrlicht-1.8/source/Irrlicht/CGUIModalScreen.h +++ /dev/null | |||
@@ -1,70 +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 __C_GUI_MODAL_SCREEN_H_INCLUDED__ | ||
6 | #define __C_GUI_MODAL_SCREEN_H_INCLUDED__ | ||
7 | |||
8 | #include "IrrCompileConfig.h" | ||
9 | #ifdef _IRR_COMPILE_WITH_GUI_ | ||
10 | |||
11 | #include "IGUIElement.h" | ||
12 | |||
13 | namespace irr | ||
14 | { | ||
15 | namespace gui | ||
16 | { | ||
17 | |||
18 | class CGUIModalScreen : public IGUIElement | ||
19 | { | ||
20 | public: | ||
21 | |||
22 | //! constructor | ||
23 | CGUIModalScreen(IGUIEnvironment* environment, IGUIElement* parent, s32 id); | ||
24 | |||
25 | //! called if an event happened. | ||
26 | virtual bool OnEvent(const SEvent& event); | ||
27 | |||
28 | //! Removes a child. | ||
29 | virtual void removeChild(IGUIElement* child); | ||
30 | |||
31 | //! Adds a child | ||
32 | virtual void addChild(IGUIElement* child); | ||
33 | |||
34 | |||
35 | //! draws the element and its children | ||
36 | virtual void draw(); | ||
37 | |||
38 | //! Updates the absolute position. | ||
39 | virtual void updateAbsolutePosition(); | ||
40 | |||
41 | //! Modalscreen is not a typical element, but rather acts like a state for it's children. | ||
42 | //! isVisible is overriden to give this a useful behavior, so that a modal will no longer | ||
43 | //! be active when its parent is invisible or all its children are invisible. | ||
44 | virtual bool isVisible() const; | ||
45 | |||
46 | //! Modals are infinite so every point is inside | ||
47 | virtual bool isPointInside(const core::position2d<s32>& point) const; | ||
48 | |||
49 | //! Writes attributes of the element. | ||
50 | virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const; | ||
51 | |||
52 | //! Reads attributes of the element | ||
53 | virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options); | ||
54 | |||
55 | protected: | ||
56 | virtual bool canTakeFocus(IGUIElement* target) const; | ||
57 | |||
58 | private: | ||
59 | |||
60 | u32 MouseDownTime; | ||
61 | }; | ||
62 | |||
63 | |||
64 | } // end namespace gui | ||
65 | } // end namespace irr | ||
66 | |||
67 | #endif // _IRR_COMPILE_WITH_GUI_ | ||
68 | |||
69 | #endif | ||
70 | |||