ASPiK SDK
|
View creator interface. More...
#include <iviewcreator.h>
Public Types | |
enum | AttrType { kUnknownType, kBooleanType, kIntegerType, kFloatType, kStringType, kColorType, kFontType, kBitmapType, kPointType, kRectType, kTagType, kListType, kGradientType } |
Public Member Functions | |
virtual IdStringPtr | getViewName () const =0 |
virtual IdStringPtr | getBaseViewName () const =0 |
virtual CView * | create (const UIAttributes &attributes, const IUIDescription *description) const =0 |
virtual bool | apply (CView *view, const UIAttributes &attributes, const IUIDescription *description) const =0 |
virtual bool | getAttributeNames (std::list< std::string > &attributeNames) const =0 |
virtual AttrType | getAttributeType (const std::string &attributeName) const =0 |
virtual bool | getAttributeValue (CView *view, const std::string &attributeName, std::string &stringValue, const IUIDescription *desc) const =0 |
virtual bool | getPossibleListValues (const std::string &attributeName, std::list< const std::string *> &values) const =0 |
virtual bool | getAttributeValueRange (const std::string &attributeName, double &minValue, double &maxValue) const =0 |
virtual UTF8StringPtr | getDisplayName () const =0 |
View creator interface.
You can register your own custom views with the UIViewFactory by inheriting from this interface and register it with UIViewFactory::registerViewCreator().
Example for an imaginary view class called MyView which directly inherites from CView: