2
0

IGUICheckBox.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. #pragma once
  5. #include "IGUIElement.h"
  6. namespace irr
  7. {
  8. namespace gui
  9. {
  10. //! GUI Check box interface.
  11. /** \par This element can create the following events of type EGUI_EVENT_TYPE:
  12. \li EGET_CHECKBOX_CHANGED
  13. */
  14. class IGUICheckBox : public IGUIElement
  15. {
  16. public:
  17. //! constructor
  18. IGUICheckBox(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect<s32> rectangle) :
  19. IGUIElement(EGUIET_CHECK_BOX, environment, parent, id, rectangle) {}
  20. //! Set if box is checked.
  21. virtual void setChecked(bool checked) = 0;
  22. //! Returns true if box is checked.
  23. virtual bool isChecked() const = 0;
  24. //! Sets whether to draw the background
  25. virtual void setDrawBackground(bool draw) = 0;
  26. //! Checks if background drawing is enabled
  27. /** \return true if background drawing is enabled, false otherwise */
  28. virtual bool isDrawBackgroundEnabled() const = 0;
  29. //! Sets whether to draw the border
  30. virtual void setDrawBorder(bool draw) = 0;
  31. //! Checks if border drawing is enabled
  32. /** \return true if border drawing is enabled, false otherwise */
  33. virtual bool isDrawBorderEnabled() const = 0;
  34. };
  35. } // end namespace gui
  36. } // end namespace irr