 |
Gorgon Game Engine
|
Go to the documentation of this file.
3 #include "../UI/ComponentStackWidget.h"
4 #include "../UI/TwoStateControl.h"
5 #include "../Property.h"
8 namespace Gorgon {
namespace Widgets {
110 void SetText(
const std::string &value);
115 virtual bool GetState()
const override {
return state; }
118 virtual bool SetState(
bool value,
bool force =
false)
override;
130 bool spacedown =
false;
bool Clear()
Changes the state of the checkbox.
Definition: TwoStateControl.h:32
void SetData(ComponentTemplate::DataEffect effect, const std::string &text)
Sets the data for a specific data effect.
Definition: ComponentStack.cpp:725
This class provides event mechanism.
Definition: Event.h:134
bool Toggle()
Changes the state of the checkbox.
Definition: TwoStateControl.h:42
This class stores visual information about a widget template.
Definition: Template.h:392
Supports everything that string class supports including +, +=, length()
Definition: Property.h:562
constexpr Type Text
Stores text data, no longer a resource.
Definition: GID.h:134
Event< TwoStateControl, bool, bool & > StateChangingEvent
This event.
Definition: TwoStateControl.h:51
void RemoveCondition(ComponentCondition condition, bool transition=true)
Removes a condition and its associated components.
Definition: ComponentStack.h:54
@ Text
Works only for TextholderTemplate, data will affect the text that is displayed.
Definition: Template.h:651
bool Check()
Changes the state of the widget.
Definition: TwoStateControl.h:29
Root namespace for Gorgon Game Engine.
Definition: Any.h:19
void AddCondition(ComponentCondition condition, bool transition=true)
Adds a condition and its associated components to the stack.
Definition: ComponentStack.h:48
This class is designed to be the interface class for all checkbox like UI elements.
Definition: TwoStateControl.h:13
void SetClickEvent(std::function< void(ComponentTemplate::Tag, Geometry::Point, Input::Mouse::Button)> handler)
Sets the mouse down event.
Definition: ComponentStack.h:490
@ Active
This is for widgets that can be activated, like a count down timer.
Definition: Template.h:245
@ State2
Second state of the widget, first state is Always.
Definition: Template.h:201
void HandleMouse(Input::Mouse::Button accepted=Input::Mouse::Button::All)
This function instructs stack to handle mouse to automatically change hover/down states,...
Definition: ComponentStack.cpp:1023
void SetMouseDownEvent(std::function< void(ComponentTemplate::Tag, Geometry::Point, Input::Mouse::Button)> handler)
Sets the mouse down event.
Definition: ComponentStack.h:465
void SetMouseUpEvent(std::function< void(ComponentTemplate::Tag, Geometry::Point, Input::Mouse::Button)> handler)
Sets the mouse up event.
Definition: ComponentStack.h:478