 |
Gorgon Game Engine
|
Go to the documentation of this file.
3 #include "../UI/ComponentStackWidget.h"
4 #include "../UI/WidgetContainer.h"
5 #include "../Property.h"
6 #include "../Input/KeyRepeater.h"
10 namespace Gorgon {
namespace Widgets {
80 void ScrollTo(
int x,
int y,
bool clip =
true);
94 void ScrollBy(
int x,
int y,
bool clip =
true) {
158 using Widget::EnsureVisible;
162 using Widget::Enable;
163 using Widget::Disable;
164 using Widget::ToggleEnabled;
168 ComponentStackWidget::SetEnabled(value);
174 return ComponentStackWidget::IsEnabled();
182 virtual void focused()
override;
218 ComponentStackWidget::parentenabledchanged(state);
This class represents boundaries of 2D objects.
Definition: Bounds.h:27
void Remove(const I_ &first, const I_ &end)
This function works with collection iterators.
Definition: Iterator.h:386
@ ContentsTag
Definition: Template.h:872
This class stores visual information about a widget template.
Definition: Template.h:392
Layer & GetLayerOf(int ind)
Returns the layer of the given component index.
Definition: ComponentStack.cpp:1356
void SetValueTransitionSpeed(std::array< float, 4 > val)
Changes the value transition speed.
Definition: ComponentStack.h:130
T_ X
X coordinate.
Definition: Point.h:368
T_ Height
Height of this size object.
Definition: Size.h:261
@ HScroll
There is space horizontally to be scrolled.
Definition: Template.h:248
Geometry::Bounds TagBounds(ComponentTemplate::Tag tag)
Returns the boundaries of the component marked with the given tag.
Definition: ComponentStack.cpp:1297
virtual bool IsVisible() const
Returns whether this layer is effectively visible.
Definition: Layer.h:459
unsigned long DeltaTime()
Returns the time passed since the last frame.
Definition: Time.h:258
void ASSERT_FALSE(const std::string &message, int skip=1, int depth=4)
Definition: Assert.h:192
@ HScrollTag
Definition: Template.h:856
T_ Left
Left-most boundary.
Definition: Bounds.h:399
Root namespace for Gorgon Game Engine.
Definition: Any.h:19
This class represents a 2D geometric size.
Definition: Size.h:23
uint32_t Char
Definition: Types.h:46
void SetFrameEvent(std::function< void()> handler)
Sets a function to be called before update check.
Definition: ComponentStack.h:413
@ ViewPortTag
Definition: Template.h:873
@ VScrollTag
Definition: Template.h:857
@ VScroll
There is space vertically to be scrolled.
Definition: Template.h:251
void SetValue(float first)
Sets the value for this stack.
Definition: ComponentStack.h:93
std::array< float, 4 > GetValue() const
Returns the value of the stack.
Definition: ComponentStack.h:123
int IndexOfTag(ComponentTemplate::Tag tag)
Returns the index of the component with the specified tag.
Definition: ComponentStack.cpp:1437
This structure is used to transfer extender request response.
Definition: WidgetContainer.h:15
void RemoveFrameEvent()
Removes the function that will be called before update check.
Definition: ComponentStack.h:433
This class is the base class for all layer types.
Definition: Layer.h:79
This class represents a 2D point.
Definition: Point.h:32
T_ Clamp(T_ v, T_ min, T_ max)
Performs clamping on the given value and returns the result.
Definition: Types.h:99
Widget * GetWidget(ComponentTemplate::Tag tag)
Returns the widget associated with the tag.
Definition: ComponentStack.cpp:3610
@ Active
This is for widgets that can be activated, like a count down timer.
Definition: Template.h:245
void Reorganize()
Reorganizes the widgets that are organized by this organizer.
Definition: Base.cpp:31
T_ Right
Right-most boundary.
Definition: Bounds.h:405
T_ Bottom
Bottom-most boundary.
Definition: Bounds.h:408
@ HVScroll
There is space both horizontally and vertically to be scrolled.
Definition: Template.h:254
T_ Y
Y coordinate.
Definition: Point.h:371
basic_Point< T_ > TopLeft() const
Returns top left corner.
Definition: Bounds.h:105
T_ Width
Width of this size object.
Definition: Size.h:258
basic_Size< T_ > GetSize() const
Returns the size of the bounds object.
Definition: Bounds.h:141
void Resize(const Geometry::Size &size)
Resizes the active context.
Definition: OpenGL.cpp:273
void SetTagLocation(ComponentTemplate::Tag tag, Geometry::Point location)
Set a fixed location for a tagged component.
Definition: ComponentStack.h:362
void SetTagSize(ComponentTemplate::Tag tag, Geometry::Size size)
Set a fixed size for a tagged component.
Definition: ComponentStack.h:382
Tag
Tags mark a component to be modified in a way meaningful to specific widgets.
Definition: Template.h:850
T_ Top
Top-most boundary.
Definition: Bounds.h:402
Geometry::Size GetSize() const
Returns the size of the layer.
Definition: Layer.h:362