This is a base class for factories that construct the widgets available to the UI subsystem. More...
#include <widgetfactory.h>
Public Member Functions | |
WidgetFactory () | |
Class constructor. | |
virtual | ~WidgetFactory () |
Class destructor. | |
virtual Widget * | CreateWidget (Screen *Parent)=0 |
Creates a Widget of the type represented by this factory. More... | |
virtual Widget * | CreateWidget (const String &RendName, const NameValuePairMap &Params, Screen *Parent)=0 |
Creates a Widget of the type represented by this factory. More... | |
virtual Widget * | CreateWidget (const String &RendName, const UnifiedRect &RendRect, const NameValuePairMap &Params, Screen *Parent)=0 |
Creates a Widget of the type represented by this factory. More... | |
virtual Widget * | CreateWidget (const XML::Node &XMLNode, Screen *Parent)=0 |
Creates a Widget from XML. More... | |
virtual void | DestroyWidget (Widget *ToBeDestroyed)=0 |
Destroys a Widget created by this factory. More... | |
virtual String | GetWidgetTypeName () const =0 |
Gets the name of the Widget that is created by this factory. More... | |
This is a base class for factories that construct the widgets available to the UI subsystem.
Definition at line 61 of file widgetfactory.h.
Creates a Widget of the type represented by this factory.
Parent | The screen the created Widget will belong to. |
Implemented in Mezzanine::UI::GenericWidgetFactory, Mezzanine::UI::SpinnerFactory, Mezzanine::UI::GridContainerFactory, Mezzanine::UI::ListBoxFactory, Mezzanine::UI::ButtonFactory, Mezzanine::UI::EditBoxFactory, Mezzanine::UI::MenuEntryFactory, Mezzanine::UI::RadioButtonFactory, Mezzanine::UI::TabSetFactory, Mezzanine::UI::DropDownListFactory, Mezzanine::UI::HorizontalScrollbarFactory, Mezzanine::UI::VerticalScrollbarFactory, Mezzanine::UI::CheckBoxFactory, Mezzanine::UI::HorizontalContainerFactory, Mezzanine::UI::VerticalContainerFactory, and Mezzanine::UI::StackButtonFactory.
|
pure virtual |
Creates a Widget of the type represented by this factory.
RendName | The name to be given to the created widget. |
Params | A NameValuePairMap containing the params to be applied during construction. |
Parent | The screen the created Widget will belong to. |
Implemented in Mezzanine::UI::GenericWidgetFactory, Mezzanine::UI::SpinnerFactory, Mezzanine::UI::GridContainerFactory, Mezzanine::UI::ListBoxFactory, Mezzanine::UI::ButtonFactory, Mezzanine::UI::EditBoxFactory, Mezzanine::UI::MenuEntryFactory, Mezzanine::UI::RadioButtonFactory, Mezzanine::UI::TabSetFactory, Mezzanine::UI::DropDownListFactory, Mezzanine::UI::HorizontalScrollbarFactory, Mezzanine::UI::VerticalScrollbarFactory, Mezzanine::UI::CheckBoxFactory, Mezzanine::UI::HorizontalContainerFactory, Mezzanine::UI::VerticalContainerFactory, and Mezzanine::UI::StackButtonFactory.
|
pure virtual |
Creates a Widget of the type represented by this factory.
RendName | The name to be given to the created widget. |
RendRect | The dimensions that will be assigned to the created Widget. |
Params | A NameValuePairMap containing the params to be applied during construction. |
Parent | The screen the created Widget will belong to. |
Implemented in Mezzanine::UI::GenericWidgetFactory, Mezzanine::UI::SpinnerFactory, Mezzanine::UI::GridContainerFactory, Mezzanine::UI::ListBoxFactory, Mezzanine::UI::ButtonFactory, Mezzanine::UI::EditBoxFactory, Mezzanine::UI::MenuEntryFactory, Mezzanine::UI::RadioButtonFactory, Mezzanine::UI::TabSetFactory, Mezzanine::UI::DropDownListFactory, Mezzanine::UI::HorizontalScrollbarFactory, Mezzanine::UI::VerticalScrollbarFactory, Mezzanine::UI::CheckBoxFactory, Mezzanine::UI::HorizontalContainerFactory, Mezzanine::UI::VerticalContainerFactory, and Mezzanine::UI::StackButtonFactory.
|
pure virtual |
XMLNode | The node of the xml document to construct from. |
Parent | The screen the created Widget will belong to. |
Implemented in Mezzanine::UI::GenericWidgetFactory, Mezzanine::UI::SpinnerFactory, Mezzanine::UI::GridContainerFactory, Mezzanine::UI::ListBoxFactory, Mezzanine::UI::ButtonFactory, Mezzanine::UI::EditBoxFactory, Mezzanine::UI::MenuEntryFactory, Mezzanine::UI::RadioButtonFactory, Mezzanine::UI::TabSetFactory, Mezzanine::UI::DropDownListFactory, Mezzanine::UI::HorizontalScrollbarFactory, Mezzanine::UI::VerticalScrollbarFactory, Mezzanine::UI::CheckBoxFactory, Mezzanine::UI::HorizontalContainerFactory, Mezzanine::UI::VerticalContainerFactory, and Mezzanine::UI::StackButtonFactory.
|
pure virtual |
Destroys a Widget created by this factory.
ToBeDestroyed | A pointer to the Widget to be destroyed. |
Implemented in Mezzanine::UI::GenericWidgetFactory, Mezzanine::UI::SpinnerFactory, Mezzanine::UI::GridContainerFactory, Mezzanine::UI::ListBoxFactory, Mezzanine::UI::ButtonFactory, Mezzanine::UI::EditBoxFactory, Mezzanine::UI::MenuEntryFactory, Mezzanine::UI::RadioButtonFactory, Mezzanine::UI::TabSetFactory, Mezzanine::UI::DropDownListFactory, Mezzanine::UI::HorizontalScrollbarFactory, Mezzanine::UI::VerticalScrollbarFactory, Mezzanine::UI::CheckBoxFactory, Mezzanine::UI::HorizontalContainerFactory, Mezzanine::UI::VerticalContainerFactory, and Mezzanine::UI::StackButtonFactory.
|
pure virtual |
Gets the name of the Widget that is created by this factory.
Implemented in Mezzanine::UI::GenericWidgetFactory, Mezzanine::UI::GridContainerFactory, Mezzanine::UI::SpinnerFactory, Mezzanine::UI::ListBoxFactory, Mezzanine::UI::ButtonFactory, Mezzanine::UI::MenuEntryFactory, Mezzanine::UI::RadioButtonFactory, Mezzanine::UI::EditBoxFactory, Mezzanine::UI::TabSetFactory, Mezzanine::UI::DropDownListFactory, Mezzanine::UI::HorizontalScrollbarFactory, Mezzanine::UI::VerticalScrollbarFactory, Mezzanine::UI::CheckBoxFactory, Mezzanine::UI::HorizontalContainerFactory, Mezzanine::UI::VerticalContainerFactory, and Mezzanine::UI::StackButtonFactory.