xfltk::WidgetFactory Class Reference

#include <WidgetCreator.h>

Inheritance diagram for xfltk::WidgetFactory:

xfltk::HierarhyWidgetFactory List of all members.

Public Member Functions

virtual WidgetCreatorgetCreator (GUI &gui)=0
virtual ~WidgetFactory ()

Static Public Member Functions

static WidgetFactoryfind (const char *name)
static WidgetCreatorgetCreator (const char *name, GUI &gui)

Protected Member Functions

 WidgetFactory (const char *name)

Detailed Description

Construct widget creator witch can create widget and set its attributes. It includes static map (register): WidgetFactory name string -> WidgetFactory objects

Definition at line 54 of file WidgetCreator.h.


Constructor & Destructor Documentation

xfltk::WidgetFactory::WidgetFactory const char *  name  )  [protected]
 

Creates WidgetCreators and registers it under name.

Parameters:
name widget name

Definition at line 73 of file WidgetCreator.cpp.

virtual xfltk::WidgetFactory::~WidgetFactory  )  [inline, virtual]
 

Do nothing.

Definition at line 97 of file WidgetCreator.h.


Member Function Documentation

WidgetFactory * xfltk::WidgetFactory::find const char *  name  )  [static]
 

Find creator with given name in register.

Parameters:
name 
Returns:
pointer to finded widget or 0 (when there is no widget creator for given name)

Definition at line 78 of file WidgetCreator.cpp.

virtual WidgetCreator* xfltk::WidgetFactory::getCreator GUI gui  )  [pure virtual]
 

This method should create and initialize widget. It is invoked before any children widgets are create.

Parameters:
attr widget atributes (null-teriminated array) (attr[i], attr[i+1]) = (attribute name, attribute value) when i = 0, 2, 4, ...
Returns:
pointer to created widget or 0 (when there is no widget creator for given name)

WidgetCreator * xfltk::WidgetFactory::getCreator const char *  name,
GUI gui
[static]
 

Returns:
widget creator witch can create widget with given name

Definition at line 83 of file WidgetCreator.cpp.


The documentation for this class was generated from the following files:
Generated on Tue Jan 3 14:32:39 2006 for xfltk by  doxygen 1.4.6-NO