Gui::WidgetProducer< CLASS > Class Template Reference

The WidgetProducer class is a value-based template class that provides the ability to create widgets dynamically. More...

#include <WidgetFactory.h>

Public Member Functions

virtual void * Produce () const
 Creates an instance of the specified widget. More...
 
 WidgetProducer ()
 Register a special type of widget to the WidgetFactoryInst. More...
 
virtual ~WidgetProducer ()
 
- Public Member Functions inherited from Base::AbstractProducer
 AbstractProducer ()
 
virtual void * Produce () const =0
 overwritten by a concrete producer to produce the needed object More...
 
virtual ~AbstractProducer ()
 

Detailed Description

template<class CLASS>
class Gui::WidgetProducer< CLASS >

The WidgetProducer class is a value-based template class that provides the ability to create widgets dynamically.

Author
Werner Mayer

Constructor & Destructor Documentation

◆ WidgetProducer()

template<class CLASS >
Gui::WidgetProducer< CLASS >::WidgetProducer ( )

Register a special type of widget to the WidgetFactoryInst.

References Base::Factory::AddProducer(), and Gui::WidgetFactoryInst::instance().

◆ ~WidgetProducer()

template<class CLASS >
virtual Gui::WidgetProducer< CLASS >::~WidgetProducer ( )
virtual

Member Function Documentation

◆ Produce()

template<class CLASS >
virtual void * Gui::WidgetProducer< CLASS >::Produce ( ) const
virtual

Creates an instance of the specified widget.

Implements Base::AbstractProducer.


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