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