Jamba C++ API 7.5.0
Loading...
Searching...
No Matches
TCustomViewCreator< TView >::MarginAttribute Class Reference

Specialization for the margin attribute. More...

Inherits TCustomViewCreator< TView >::TAttribute< T, T const &(TView::*)() const, void(TView::*)(T const &)>.

Public Member Functions

bool fromString (IUIDescription const *iDescription, std::string const &iAttributeValue, Margin &oValue) const override
 MarginAttribute (std::string const &iName, typename ByRefAttribute< Margin >::Getter iGetter, typename ByRefAttribute< Margin >::Setter iSetter)
Public Member Functions inherited from TCustomViewCreator< TView >::TAttribute< T, T const &(TView::*)() const, void(TView::*)(T const &)>
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)
Public Member Functions inherited from ViewAttribute
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)

Additional Inherited Members

Public Types inherited from TCustomViewCreator< TView >::TAttribute< T, T const &(TView::*)() const, void(TView::*)(T const &)>
using Getter
using Setter

Detailed Description

template<typename TView>
class pongasoft::VST::GUI::Views::TCustomViewCreator< TView >::MarginAttribute

Specialization for the margin attribute.

The view must have getter and setter as defined by the types below.

Constructor & Destructor Documentation

◆ MarginAttribute()

template<typename TView>
MarginAttribute ( std::string const & iName,
typename ByRefAttribute< Margin >::Getter iGetter,
typename ByRefAttribute< Margin >::Setter iSetter )
inline

Member Function Documentation

◆ fromString()

template<typename TView>
bool fromString ( IUIDescription const * iDescription,
std::string const & iAttributeValue,
Margin & oValue ) const
inlineoverride

The documentation for this class was generated from the following file: