Jamba C++ API
5.1.1
|
Base abstract class for an attribute of a view. More...
#include <CustomViewCreator.h>
Inherited by TCustomViewCreator< TView >::TAttribute< T, TGetter, TSetter >.
Public Member Functions | |
virtual bool | apply (CView *iView, const UIAttributes &iAttributes, const IUIDescription *iDescription)=0 |
Extracts the value from iAttributes for getName() attribute and "apply" it on the view provided. More... | |
std::string | getName () const |
Name of the attribute (which ends up being an attribute in the xml file) Ex: <view back-color="~ BlackCColor" .../> => back-color. More... | |
virtual IViewCreator::AttrType | getType ()=0 |
ViewAttribute (std::string iName) | |
Private Attributes | |
std::string | fName |
Base abstract class for an attribute of a view.
|
inlineexplicit |
|
pure virtual |
Extracts the value from iAttributes for getName() attribute and "apply" it on the view provided.
Subclass will handle the extraction based on type.
Implemented in TCustomViewCreator< TView >::TAttribute< T, TGetter, TSetter >.
|
inline |
Name of the attribute (which ends up being an attribute in the xml file) Ex: <view back-color="~ BlackCColor" .../> => back-color.
|
pure virtual |
Implemented in TCustomViewCreator< TView >::ListAttribute< T >, TCustomViewCreator< TView >::FontAttribute, TCustomViewCreator< TView >::BitmapAttribute, TCustomViewCreator< TView >::BooleanAttribute, TCustomViewCreator< TView >::GradientAttribute, TCustomViewCreator< TView >::ColorAttribute, TCustomViewCreator< TView >::FloatAttribute< TFloat >, TCustomViewCreator< TView >::IntegerAttribute< TInt >, TCustomViewCreator< TView >::TagAttribute, and TCustomViewCreator< TView >::TAttribute< T, TGetter, TSetter >.
|
private |