Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
IGUICheckBox.hpp
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 nirtcpp/nirtcpp.hpp
4
5#ifndef NIRT_I_GUI_CHECKBOX_HPP_INCLUDED
6#define NIRT_I_GUI_CHECKBOX_HPP_INCLUDED
7
8#include <nirtcpp/core/engine/IGUIElement.hpp>
9
10namespace nirt
11{
12namespace gui
13{
14
16
20 {
21 public:
22
24 IGUICheckBox(IGUIEnvironment* environment, IGUIElement* parent, s32 id, core::rect<s32> rectangle)
25 : IGUIElement(EGUIET_CHECK_BOX, environment, parent, id, rectangle) {}
26
28 virtual void setChecked(bool checked) = 0;
29
31 virtual bool isChecked() const = 0;
32
34 virtual void setDrawBackground(bool draw) = 0;
35
37
38 virtual bool isDrawBackgroundEnabled() const = 0;
39
41 virtual void setDrawBorder(bool draw) = 0;
42
44
45 virtual bool isDrawBorderEnabled() const = 0;
46
47 };
48
49} // end namespace gui
50} // end namespace nirt
51
52#endif
Axis aligned bounding box in 3d dimensional space.
Definition aabbox3d.hpp:22
GUI Check box interface.
Definition IGUICheckBox.hpp:20
virtual bool isChecked() const =0
Returns true if box is checked.
virtual bool isDrawBorderEnabled() const =0
Checks if border drawing is enabled.
virtual bool isDrawBackgroundEnabled() const =0
Checks if background drawing is enabled.
virtual void setDrawBackground(bool draw)=0
Sets whether to draw the background.
IGUICheckBox(IGUIEnvironment *environment, IGUIElement *parent, s32 id, core::rect< s32 > rectangle)
constructor
Definition IGUICheckBox.hpp:24
virtual void setChecked(bool checked)=0
Set if box is checked.
virtual void setDrawBorder(bool draw)=0
Sets whether to draw the border.
Base class of all GUI elements.
Definition IGUIElement.hpp:24
virtual void draw()
Draws the element and its children.
Definition IGUIElement.hpp:331
GUI Environment. Used as factory and manager of all other GUI elements.
Definition IGUIEnvironment.hpp:73
@ EGUIET_CHECK_BOX
A check box (IGUICheckBox)
Definition EGUIElementTypes.hpp:23
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
signed int s32
32 bit signed variable.
Definition irrTypes.hpp:72

Nirtcpp    @cppfx.xyz

Utxcpp    utx::print