 |
Gorgon Game Engine
|
Go to the documentation of this file.
7 namespace Gorgon {
namespace UI {
126 virtual void show()
override {
133 virtual void hide()
override {
@ Disabled
Component is visible when the widget is disabled.
Definition: Template.h:184
Component stack is the backbone of a widget.
Definition: ComponentStack.h:25
void Add(Layer &layer)
Adds the given layer as a child.
Definition: Layer.cpp:23
Geometry::Point GetLocation() const
Returns the current location of the layer.
Definition: Layer.h:403
This class stores visual information about a widget template.
Definition: Template.h:392
Geometry::Size GetSize() const
Returns the size of the template.
Definition: Template.h:520
void RemoveCondition(ComponentCondition condition, bool transition=true)
Removes a condition and its associated components.
Definition: ComponentStack.h:54
Root namespace for Gorgon Game Engine.
Definition: Any.h:19
This class represents a 2D geometric size.
Definition: Size.h:23
void PlaceBefore(int before)
Places this layer before the given index.
Definition: Layer.h:290
virtual void Resize(const Geometry::Size &value) override
Notifies the stack about a size change.
Definition: ComponentStack.h:245
virtual void Move(const Geometry::Point &location)
Moves this layer to the given location.
Definition: Layer.h:327
void Remove(Layer &layer)
Removes the given layer.
Definition: Layer.h:203
This class is the base class for all layer types.
Definition: Layer.h:79
This class represents a 2D point.
Definition: Point.h:32
void AddCondition(ComponentCondition condition, bool transition=true)
Adds a condition and its associated components to the stack.
Definition: ComponentStack.h:48
@ Focused
Widget has the focus.
Definition: Template.h:190
virtual void Hide()
Hides this layer.
Definition: Layer.h:456
virtual void Show()
Displays this layer.
Definition: Layer.h:453
void FinalizeTransitions()
Finalizes on-going transitions immediately.
Definition: ComponentStack.cpp:666
Tag
Tags mark a component to be modified in a way meaningful to specific widgets.
Definition: Template.h:850
Geometry::Size GetSize() const
Returns the size of the layer.
Definition: Layer.h:362