 |
Gorgon Game Engine
|
Go to the documentation of this file.
3 namespace Gorgon {
namespace UI {
22 explicit operator bool()
const {
return GetState(); }
48 virtual bool SetState(
bool value,
bool force =
false) = 0;
bool Clear()
Changes the state of the checkbox.
Definition: TwoStateControl.h:32
This class provides event mechanism.
Definition: Event.h:134
bool Toggle()
Changes the state of the checkbox.
Definition: TwoStateControl.h:42
virtual bool GetState() const =0
Returns the state of the checkbox.
virtual ~TwoStateControl()
Definition: TwoStateControl.h:17
Event< TwoStateControl, bool, bool & > StateChangingEvent
This event.
Definition: TwoStateControl.h:51
bool Check()
Changes the state of the widget.
Definition: TwoStateControl.h:29
Root namespace for Gorgon Game Engine.
Definition: Any.h:19
bool ForceClear()
Changes the state of the checkbox.
Definition: TwoStateControl.h:39
TwoStateControl()
Definition: TwoStateControl.h:15
bool operator!() const
Returns the inverse state of the checkbox.
Definition: TwoStateControl.h:25
This class is designed to be the interface class for all checkbox like UI elements.
Definition: TwoStateControl.h:13
virtual bool SetState(bool value, bool force=false)=0
Changes the state of the checkbox.
bool ForceCheck()
Changes the state of the widget.
Definition: TwoStateControl.h:36
TwoStateControl & operator=(bool value)
Definition: TwoStateControl.h:19