Specialization for an Integer attribute (which can be any kind of integer, like short, int32_t, etc..).
More...
Inherits TCustomViewCreator< TView >::TAttribute< T, T(TView::*)() const, void(TView::*)(T)>.
|
| bool | fromString (IUIDescription const *iDescription, std::string const &iAttributeValue, TInt &oValue) const override |
| IViewCreator::AttrType | getType () override |
| | IntegerAttribute (std::string const &iName, Getter iGetter, Setter iSetter) |
| bool | apply (CView *iView, const UIAttributes &iAttributes, const IUIDescription *iDescription) override |
| | apply => calls the setter on the view to set the attribute (use fromString)
|
| virtual bool | fromString (IUIDescription const *iDescription, std::string const &iAttributeValue, T &oValue) const |
| | Subclasses need to implement this method to convert a string (iAttributeValue) to a T.
|
| IViewCreator::AttrType | getType () override |
| | TAttribute (std::string const &iName, Getter iGetter, Setter iSetter) |
| 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.
|
| | ViewAttribute (std::string iName) |
template<typename TView>
template<typename TInt>
class pongasoft::VST::GUI::Views::TCustomViewCreator< TView >::IntegerAttribute< TInt >
Specialization for an Integer attribute (which can be any kind of integer, like short, int32_t, etc..).
The view must have getter and setter as defined by the types below.
◆ Getter
template<typename TView>
template<typename TInt>
◆ Setter
template<typename TView>
template<typename TInt>
◆ IntegerAttribute()
template<typename TView>
template<typename TInt>
| IntegerAttribute |
( |
std::string const & | iName, |
|
|
Getter | iGetter, |
|
|
Setter | iSetter ) |
|
inline |
◆ fromString()
template<typename TView>
template<typename TInt>
| bool fromString |
( |
IUIDescription const * | iDescription, |
|
|
std::string const & | iAttributeValue, |
|
|
TInt & | oValue ) const |
|
inlineoverride |
◆ getType()
template<typename TView>
template<typename TInt>
| IViewCreator::AttrType getType |
( |
| ) |
|
|
inlineoverridevirtual |
- Returns
- the type of this attribute => subclass will define it
Implements ViewAttribute.
The documentation for this class was generated from the following file: