 |
Gorgon Game Engine
|
Go to the documentation of this file.
7 #include "../Input/Keyboard.h"
10 namespace Gorgon {
namespace UI {
12 class WidgetContainer;
213 if(value != isenabled) {
269 return (
int)
widgets.GetCount();
291 throw std::runtime_error(
"Container does not have a default");
313 throw std::runtime_error(
"Container does not have a default");
319 virtual bool HasCancel()
const {
return cancel!=
nullptr; }
348 template <
class O_,
class ...Args_>
350 auto &org = *
new O_(std::forward<Args_>(args)...);
367 return organizer !=
nullptr;
373 if(organizer ==
nullptr) {
374 throw std::runtime_error(
"The container does not have an organizer");
441 bool isenabled =
true;
442 bool tabswitch =
true;
445 Widget *focused =
nullptr;
448 bool ownorganizer =
false;
Provides the basis for the automatic UI organizers.
Definition: Base.h:18
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
WidgetContainer * Extender
If the extender is provided by the request.
Definition: WidgetContainer.h:21
Collection is a container for reference typed objects.
Definition: Collection.h:21
void RemoveFrom()
Removes the organizer from the container.
Definition: Base.cpp:17
This structure is used to transfer extender request response.
Definition: WidgetContainer.h:15
This class is the base class for all layer types.
Definition: Layer.h:79
Geometry::Point CoordinatesInExtender
Coordinates of the given point in the extender container.
Definition: WidgetContainer.h:24
This class represents a 2D point.
Definition: Point.h:32
Geometry::Size TotalSize
Total size of the container. -1 means infinite.
Definition: WidgetContainer.h:27
void AttachTo(WidgetContainer &container)
Attaches this organizer to a container.
Definition: Base.cpp:6
bool Transformed
If the coordinates are properly translated.
Definition: WidgetContainer.h:18
void Reorganize()
Reorganizes the widgets that are organized by this organizer.
Definition: Base.cpp:31