![]() |
Gorgon Game Engine
|
Provides the basis for the automatic UI organizers. More...
Public Member Functions | |
virtual | ~Base () |
Ensuring correct destruction. More... | |
void | AttachTo (WidgetContainer &container) |
Attaches this organizer to a container. More... | |
WidgetContainer & | GetAttached () const |
Returns the container that this organizer is attached to. More... | |
bool | IsAttached () const |
Returns if this organizer is attached to a container. More... | |
void | RemoveFrom () |
Removes the organizer from the container. More... | |
void | Reorganize () |
Reorganizes the widgets that are organized by this organizer. More... | |
Protected Member Functions | |
virtual void | attachmentchanged () |
Called when the attachment of the organizer is changed. More... | |
virtual void | reorganize ()=0 |
Should reorganize the contents of the organizer. More... | |
Provides the basis for the automatic UI organizers.
|
virtual |
Ensuring correct destruction.
|
protectedvirtual |
Called when the attachment of the organizer is changed.
void AttachTo | ( | WidgetContainer & | container | ) |
Attaches this organizer to a container.
References Base::attachmentchanged(), and WidgetContainer::AttachOrganizer().
WidgetContainer& GetAttached | ( | ) | const |
Returns the container that this organizer is attached to.
If organizer is not attached, this function will throw.
bool IsAttached | ( | ) | const |
Returns if this organizer is attached to a container.
void RemoveFrom | ( | ) |
Removes the organizer from the container.
References Base::attachmentchanged(), and WidgetContainer::RemoveOrganizer().
void Reorganize | ( | ) |
Reorganizes the widgets that are organized by this organizer.
References Base::IsAttached(), and Base::reorganize().
|
protectedpure virtual |
Should reorganize the contents of the organizer.
This will only be called if the organizer is attached.
Implemented in List.