 |
Gorgon Game Engine
|
Go to the documentation of this file.
3 #include "../UI/ComponentStackWidget.h"
4 #include "../Property.h"
9 namespace Gorgon {
namespace Widgets {
32 void SetText(
const std::string &value);
34 std::string
GetText()
const {
return text; }
58 bool HasIcon()
const {
return icon !=
nullptr; }
64 throw std::runtime_error(
"This widget has no icon.");
Object property allows the consumers of the property to be able to access object's member functions a...
Definition: Property.h:323
@ Icon
Data will effect the displayed graphics.
Definition: Template.h:678
void SetData(ComponentTemplate::DataEffect effect, const std::string &text)
Sets the data for a specific data effect.
Definition: ComponentStack.cpp:725
A regular drawable animation provider.
Definition: Animations.h:28
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
void RemoveData(ComponentTemplate::DataEffect effect)
Removes the data associated with data effect.
Definition: ComponentStack.cpp:759
@ Text
Works only for TextholderTemplate, data will affect the text that is displayed.
Definition: Template.h:651
Root namespace for Gorgon Game Engine.
Definition: Any.h:19
virtual Animation & CreateAnimation(Gorgon::Animation::ControllerBase &timer) const override=0
This function should create a new animation with the given controller and if owner parameter is set t...
This object contains an bitmap image.
Definition: Bitmap.h:25
virtual void DeleteAnimation() const
Deletes this animation.
Definition: Animation.h:379
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
A regular drawable animation.
Definition: Animations.h:14
@ Graphics
Definition: Template.h:164
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