MezzanineEngine 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
Mezzanine::UI::MenuButtonFactory Class Reference

This is the factory implementation for MenuButton widgets. More...

#include <menubutton.h>

+ Inheritance diagram for Mezzanine::UI::MenuButtonFactory:
+ Collaboration diagram for Mezzanine::UI::MenuButtonFactory:

Public Member Functions

 MenuButtonFactory ()
 Class constructor.
 
virtual ~MenuButtonFactory ()
 Class destructor.
 
virtual MenuButtonCreateMenuButton (const String &RendName, Screen *Parent)
 Creates a new MenuButton. More...
 
virtual MenuButtonCreateMenuButton (const String &RendName, const UnifiedRect &RendRect, Screen *Parent)
 Creates a new MenuButton. More...
 
virtual MenuButtonCreateMenuButton (const XML::Node &XMLNode, Screen *Parent)
 Creates a new MenuButton. More...
 
virtual WidgetCreateWidget (Screen *Parent)
 Creates a Widget of the type represented by this factory. More...
 
virtual WidgetCreateWidget (const String &RendName, const NameValuePairMap &Params, Screen *Parent)
 Creates a Widget of the type represented by this factory. More...
 
virtual WidgetCreateWidget (const String &RendName, const UnifiedRect &RendRect, const NameValuePairMap &Params, Screen *Parent)
 Creates a Widget of the type represented by this factory. More...
 
virtual WidgetCreateWidget (const XML::Node &XMLNode, Screen *Parent)
 Creates a Widget from XML. More...
 
virtual void DestroyWidget (Widget *ToBeDestroyed)
 Destroys a Widget created by this factory. More...
 
virtual String GetWidgetTypeName () const
 Gets the name of the Widget that is created by this factory. More...
 
- Public Member Functions inherited from Mezzanine::UI::WidgetFactory
 WidgetFactory ()
 Class constructor.
 
virtual ~WidgetFactory ()
 Class destructor.
 

Detailed Description

This is the factory implementation for MenuButton widgets.

Definition at line 108 of file menubutton.h.

Member Function Documentation

MenuButton * Mezzanine::UI::MenuButtonFactory::CreateMenuButton ( const String RendName,
Screen Parent 
)
virtual

Creates a new MenuButton.

Parameters
RendNameThe name to be given to the created MenuButton.
ParentThe screen the created MenuButton will belong to.
Returns
Returns a pointer to the created MenuButton.

Definition at line 166 of file menubutton.cpp.

MenuButton * Mezzanine::UI::MenuButtonFactory::CreateMenuButton ( const String RendName,
const UnifiedRect RendRect,
Screen Parent 
)
virtual

Creates a new MenuButton.

Parameters
RendNameThe name to be given to the created MenuButton.
RendRectThe dimensions that will be assigned to the created MenuButton.
ParentThe screen the created MenuButton will belong to.
Returns
Returns a pointer to the created MenuButton.

Definition at line 169 of file menubutton.cpp.

MenuButton * Mezzanine::UI::MenuButtonFactory::CreateMenuButton ( const XML::Node XMLNode,
Screen Parent 
)
virtual

Creates a new MenuButton.

Parameters
XMLNodeThe node of the xml document to construct from.
ParentThe screen the created MenuButton will belong to.
Returns
Returns a pointer to the created MenuButton.

Definition at line 172 of file menubutton.cpp.

Widget * Mezzanine::UI::MenuButtonFactory::CreateWidget ( Screen Parent)
virtual

Creates a Widget of the type represented by this factory.

Parameters
ParentThe screen the created Widget will belong to.
Returns
Returns a pointer to the created Widget.

Implements Mezzanine::UI::WidgetFactory.

Definition at line 175 of file menubutton.cpp.

Widget * Mezzanine::UI::MenuButtonFactory::CreateWidget ( const String RendName,
const NameValuePairMap Params,
Screen Parent 
)
virtual

Creates a Widget of the type represented by this factory.

Parameters
RendNameThe name to be given to the created widget.
ParamsA NameValuePairMap containing the params to be applied during construction.
ParentThe screen the created Widget will belong to.
Returns
Returns a pointer to the created Widget.

Implements Mezzanine::UI::WidgetFactory.

Definition at line 178 of file menubutton.cpp.

Widget * Mezzanine::UI::MenuButtonFactory::CreateWidget ( const String RendName,
const UnifiedRect RendRect,
const NameValuePairMap Params,
Screen Parent 
)
virtual

Creates a Widget of the type represented by this factory.

Parameters
RendNameThe name to be given to the created widget.
RendRectThe dimensions that will be assigned to the created Widget.
ParamsA NameValuePairMap containing the params to be applied during construction.
ParentThe screen the created Widget will belong to.
Returns
Returns a pointer to the created Widget.

Implements Mezzanine::UI::WidgetFactory.

Definition at line 181 of file menubutton.cpp.

Widget * Mezzanine::UI::MenuButtonFactory::CreateWidget ( const XML::Node XMLNode,
Screen Parent 
)
virtual

Creates a Widget from XML.

Parameters
XMLNodeThe node of the xml document to construct from.
ParentThe screen the created Widget will belong to.
Returns
Returns a pointer to the Widget created.

Implements Mezzanine::UI::WidgetFactory.

Definition at line 184 of file menubutton.cpp.

void Mezzanine::UI::MenuButtonFactory::DestroyWidget ( Widget ToBeDestroyed)
virtual

Destroys a Widget created by this factory.

Parameters
ToBeDestroyedA pointer to the Widget to be destroyed.

Implements Mezzanine::UI::WidgetFactory.

Definition at line 187 of file menubutton.cpp.

String Mezzanine::UI::MenuButtonFactory::GetWidgetTypeName ( ) const
virtual

Gets the name of the Widget that is created by this factory.

Returns
Returns the typename of the Widget created by this factory.

Implements Mezzanine::UI::WidgetFactory.

Definition at line 163 of file menubutton.cpp.


The documentation for this class was generated from the following files: