diff options
Diffstat (limited to 'libraries/irrlicht-1.8/source/Irrlicht/CGUICheckBox.h')
-rw-r--r-- | libraries/irrlicht-1.8/source/Irrlicht/CGUICheckBox.h | 110 |
1 files changed, 55 insertions, 55 deletions
diff --git a/libraries/irrlicht-1.8/source/Irrlicht/CGUICheckBox.h b/libraries/irrlicht-1.8/source/Irrlicht/CGUICheckBox.h index 09ed36b..e2cef3b 100644 --- a/libraries/irrlicht-1.8/source/Irrlicht/CGUICheckBox.h +++ b/libraries/irrlicht-1.8/source/Irrlicht/CGUICheckBox.h | |||
@@ -1,55 +1,55 @@ | |||
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 __C_GUI_CHECKBOX_H_INCLUDED__ | 5 | #ifndef __C_GUI_CHECKBOX_H_INCLUDED__ |
6 | #define __C_GUI_CHECKBOX_H_INCLUDED__ | 6 | #define __C_GUI_CHECKBOX_H_INCLUDED__ |
7 | 7 | ||
8 | #include "IrrCompileConfig.h" | 8 | #include "IrrCompileConfig.h" |
9 | #ifdef _IRR_COMPILE_WITH_GUI_ | 9 | #ifdef _IRR_COMPILE_WITH_GUI_ |
10 | 10 | ||
11 | #include "IGUICheckBox.h" | 11 | #include "IGUICheckBox.h" |
12 | 12 | ||
13 | namespace irr | 13 | namespace irr |
14 | { | 14 | { |
15 | namespace gui | 15 | namespace gui |
16 | { | 16 | { |
17 | 17 | ||
18 | class CGUICheckBox : public IGUICheckBox | 18 | class CGUICheckBox : public IGUICheckBox |
19 | { | 19 | { |
20 | public: | 20 | public: |
21 | 21 | ||
22 | //! constructor | 22 | //! constructor |
23 | CGUICheckBox(bool checked, IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle); | 23 | CGUICheckBox(bool checked, IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle); |
24 | 24 | ||
25 | //! set if box is checked | 25 | //! set if box is checked |
26 | virtual void setChecked(bool checked); | 26 | virtual void setChecked(bool checked); |
27 | 27 | ||
28 | //! returns if box is checked | 28 | //! returns if box is checked |
29 | virtual bool isChecked() const; | 29 | virtual bool isChecked() const; |
30 | 30 | ||
31 | //! called if an event happened. | 31 | //! called if an event happened. |
32 | virtual bool OnEvent(const SEvent& event); | 32 | virtual bool OnEvent(const SEvent& event); |
33 | 33 | ||
34 | //! draws the element and its children | 34 | //! draws the element and its children |
35 | virtual void draw(); | 35 | virtual void draw(); |
36 | 36 | ||
37 | //! Writes attributes of the element. | 37 | //! Writes attributes of the element. |
38 | virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const; | 38 | virtual void serializeAttributes(io::IAttributes* out, io::SAttributeReadWriteOptions* options) const; |
39 | 39 | ||
40 | //! Reads attributes of the element | 40 | //! Reads attributes of the element |
41 | virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options); | 41 | virtual void deserializeAttributes(io::IAttributes* in, io::SAttributeReadWriteOptions* options); |
42 | 42 | ||
43 | private: | 43 | private: |
44 | 44 | ||
45 | u32 checkTime; | 45 | u32 checkTime; |
46 | bool Pressed; | 46 | bool Pressed; |
47 | bool Checked; | 47 | bool Checked; |
48 | }; | 48 | }; |
49 | 49 | ||
50 | } // end namespace gui | 50 | } // end namespace gui |
51 | } // end namespace irr | 51 | } // end namespace irr |
52 | 52 | ||
53 | #endif // __C_GUI_CHECKBOX_H_INCLUDED__ | 53 | #endif // __C_GUI_CHECKBOX_H_INCLUDED__ |
54 | 54 | ||
55 | #endif // _IRR_COMPILE_WITH_GUI_ | 55 | #endif // _IRR_COMPILE_WITH_GUI_ |