Jamba C++ API 7.5.0
Loading...
Searching...
No Matches
CustomView::Creator Class Reference

Defines and registers the attributes exposed in the VSTGUI Editor and XML file (.uidesc) for CustomView. More...

#include <CustomView.h>

Inherits TCustomViewCreator< CustomView >.

Public Member Functions

 Creator (char const *iViewName=nullptr, char const *iDisplayName=nullptr)
Public Member Functions inherited from TCustomViewCreator< CustomView >
bool apply (CView *view, const UIAttributes &attributes, const IUIDescription *description) const override
 Extract all the attribute values and apply them to the view.
CView * create (const UIAttributes &attributes, const IUIDescription *description) const override
 This is the factory method which will instantiate the view.
bool getAttributeNames (std::list< std::string > &attributeNames) const override
AttrType getAttributeType (const std::string &attributeName) const override
IdStringPtr getBaseViewName () const override
UTF8StringPtr getDisplayName () const override
IdStringPtr getViewName () const override
void registerAttributes (TCustomViewCreator< XView > const &iOther)
 This method is called to register all the attributes from another CustomViewCreator (used in case of inheritance).
void registerBitmapAttribute (std::string const &iName, typename BitmapAttribute::Getter iGetter, typename BitmapAttribute::Setter iSetter)
 Registers a bitmap attribute with the given name and getter/setter.
void registerBooleanAttribute (std::string const &iName, typename BooleanAttribute::Getter iGetter, typename BooleanAttribute::Setter iSetter)
 Registers a boolean attribute with the given name and getter/setter.
void registerColorAttribute (std::string const &iName, typename ColorAttribute::Getter iGetter, typename ColorAttribute::Setter iSetter)
 Registers a color attribute with the given name and getter/setter.
void registerDoubleAttribute (std::string const &iName, typename FloatAttribute< double >::Getter iGetter, typename FloatAttribute< double >::Setter iSetter)
 Registers a double attribute with the given name and getter/setter.
void registerFloatAttribute (std::string const &iName, typename FloatAttribute< float >::Getter iGetter, typename FloatAttribute< float >::Setter iSetter)
 Registers a float attribute with the given name and getter/setter.
void registerFontAttribute (std::string const &iName, typename FontAttribute::Getter iGetter, typename FontAttribute::Setter iSetter)
 Registers a font attribute with the given name and getter/setter.
void registerGradientAttribute (std::string const &iName, typename GradientAttribute::Getter iGetter, typename GradientAttribute::Setter iSetter)
 Registers a gradient attribute with the given name and getter/setter.
void registerIntAttribute (std::string const &iName, typename IntegerAttribute< int32_t >::Getter iGetter, typename IntegerAttribute< int32_t >::Setter iSetter)
 Registers an int attribute with the given name and getter/setter.
void registerIntegerAttribute (std::string const &iName, typename IntegerAttribute< TInt >::Getter iGetter, typename IntegerAttribute< TInt >::Setter iSetter)
 Registers an Integer (any kind) attribute with the given name and getter/setter.
void registerListAttribute (std::string const &iName, typename ListAttribute< T >::Getter iGetter, typename ListAttribute< T >::Setter iSetter, AttrValInitList< T > const &iAttributeValues)
 Registers a list attribute with the given name and getter/setter.
void registerMarginAttribute (std::string const &iName, typename MarginAttribute::Getter iGetter, typename MarginAttribute::Setter iSetter)
 Registers a Margin attribute with the given name and getter/setter.
void registerRangeAttribute (std::string const &iName, typename RangeAttribute::Getter iGetter, typename RangeAttribute::Setter iSetter)
 Registers a Range attribute with the given name and getter/setter.
void registerTagAttribute (std::string const &iName, typename TagAttribute::Getter iGetter, typename TagAttribute::Setter iSetter)
 Registers a tag attribute with the given name and getter/setter.
void registerVectorStringAttribute (std::string const &iName, typename VectorStringAttribute::Getter iGetter, typename VectorStringAttribute::Setter iSetter, char iDelimiter=',', bool iSkipEmptyEntries=false)
 Registers a Range attribute with the given name and getter/setter.
 ~TCustomViewCreator () override

Detailed Description

Defines and registers the attributes exposed in the VSTGUI Editor and XML file (.uidesc) for CustomView.

Note
Although not required, for clarity and consistency, each custom view defines the creator class with the same Creator name as an inner class of the view.

Constructor & Destructor Documentation

◆ Creator()

Creator ( char const * iViewName = nullptr,
char const * iDisplayName = nullptr )
inlineexplicit

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