|
| bool | fromString (IUIDescription const *iDescription, std::string const &iAttributeValue, GradientPtr &oValue) const override |
| |
| IViewCreator::AttrType | getType () override |
| |
| | GradientAttribute (std::string const &iName, typename ByValAttribute< GradientPtr >::Getter iGetter, typename ByValAttribute< GradientPtr >::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) More...
|
| |
| 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. More...
|
| |
| | 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. More...
|
| |
| | ViewAttribute (std::string iName) |
| |
template<typename TView>
class pongasoft::VST::GUI::Views::TCustomViewCreator< TView >::GradientAttribute
Specialization for the color attribute.
The view must have getter and setter as defined by the types below.