canvascv::WidgetFactoryT< T > Class Template Reference
The WidgetFactoryT class. More...
#include <widgetfactory.h>
Inheritance diagram for canvascv::WidgetFactoryT< T >:
Static Public Member Functions | |
static bool | addType (std::string name) |
addType adds type 'T' under name 'name' More... | |
static std::shared_ptr< T > | newWidget (Layout &layoutVal, const cv::Point &pos=cv::Point(0, 0)) |
newWidget More... | |
Static Public Member Functions inherited from canvascv::WidgetFactory | |
static std::shared_ptr< Widget > | newWidget (std::string type, Layout &layoutVal, const cv::Point &pos) |
newWidget More... | |
Detailed Description
template<class T>
class canvascv::WidgetFactoryT< T >
This is the compile-time type-safe version of the WidgetFactory. Types added here with addType() are guranteed to exist at compile time. Types created by newWidget() are guranteed to exist at compile time.
- Examples:
- example_add_widget.cpp.
Member Function Documentation
template<class T >
|
static |
- Parameters
-
name
- Returns
- true if type 'T' is registering for the first time ot false otherwise
- See also
- CCV_REGISTER_WIDGET macro in WidgetFactory.h
template<class T >
|
static |
The documentation for this class was generated from the following file:
- CanvasCV-doxygen/src/canvascv/widgets/widgetfactory.h
Generated by 1.8.11