1 // Copyright (C) 2002-2012 Nikolaus Gebhardt
\r
2 // This file is part of the "Irrlicht Engine".
\r
3 // For conditions of distribution and use, see copyright notice in irrlicht.h
\r
5 #ifndef __I_GUI_CHECKBOX_H_INCLUDED__
\r
6 #define __I_GUI_CHECKBOX_H_INCLUDED__
\r
8 #include "IGUIElement.h"
\r
15 //! GUI Check box interface.
\r
16 /** \par This element can create the following events of type EGUI_EVENT_TYPE:
\r
17 \li EGET_CHECKBOX_CHANGED
\r
19 class IGUICheckBox : public IGUIElement
\r
24 IGUICheckBox(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
\r
25 : IGUIElement(EGUIET_CHECK_BOX, environment, parent, id, rectangle) {}
\r
27 //! Set if box is checked.
\r
28 virtual void setChecked(bool checked) = 0;
\r
30 //! Returns true if box is checked.
\r
31 virtual bool isChecked() const = 0;
\r
33 //! Sets whether to draw the background
\r
34 virtual void setDrawBackground(bool draw) = 0;
\r
36 //! Checks if background drawing is enabled
\r
37 /** \return true if background drawing is enabled, false otherwise */
\r
38 virtual bool isDrawBackgroundEnabled() const = 0;
\r
40 //! Sets whether to draw the border
\r
41 virtual void setDrawBorder(bool draw) = 0;
\r
43 //! Checks if border drawing is enabled
\r
44 /** \return true if border drawing is enabled, false otherwise */
\r
45 virtual bool isDrawBorderEnabled() const = 0;
\r
49 } // end namespace gui
\r
50 } // end namespace irr
\r