VSTGUI  4.10
Graphical User Interface Framework not only for VST plugins
UIViewFactory Class Reference

Default view factory. More...

+ Inheritance diagram for UIViewFactory:

Public Member Functions

 UIViewFactory ()
 
 ~UIViewFactory () noexcept override=default
 
CViewcreateView (const UIAttributes &attributes, const IUIDescription *description) const override
 
bool applyAttributeValues (CView *view, const UIAttributes &attributes, const IUIDescription *desc) const override
 
bool applyCustomViewAttributeValues (CView *customView, IdStringPtr baseViewName, const UIAttributes &attributes, const IUIDescription *desc) const override
 
- Public Member Functions inherited from ReferenceCounted< T >
 ReferenceCounted ()=default
 
virtual ~ReferenceCounted () noexcept=default
 
 ReferenceCounted (const ReferenceCounted &)
 
ReferenceCountedoperator= (const ReferenceCounted &)
 
void forget () override
 decrease refcount and delete object if refcount == 0 More...
 
void remember () override
 increase refcount More...
 
virtual int32_t getNbReference () const
 get refcount More...
 
virtual void beforeDelete ()
 
- Public Member Functions inherited from IViewFactory
virtual ~IViewFactory () noexcept=default
 

Static Public Member Functions

static IdStringPtr getViewName (CView *view)
 
static void registerViewCreator (const IViewCreator &viewCreator)
 
static void unregisterViewCreator (const IViewCreator &viewCreator)
 

Protected Member Functions

void evaluateAttributesAndRemember (CView *view, const UIAttributes &attributes, UIAttributes &evaluatedAttributes, const IUIDescription *description) const
 
CViewcreateViewByName (const std::string *className, const UIAttributes &attributes, const IUIDescription *description) const
 

Detailed Description

Default view factory.

Constructor & Destructor Documentation

◆ UIViewFactory()

◆ ~UIViewFactory()

~UIViewFactory ( )
overridedefaultnoexcept

Member Function Documentation

◆ applyAttributeValues()

bool applyAttributeValues ( CView view,
const UIAttributes attributes,
const IUIDescription desc 
) const
overridevirtual

Implements IViewFactory.

◆ applyCustomViewAttributeValues()

bool applyCustomViewAttributeValues ( CView customView,
IdStringPtr  baseViewName,
const UIAttributes attributes,
const IUIDescription desc 
) const
overridevirtual

Implements IViewFactory.

◆ createView()

CView * createView ( const UIAttributes attributes,
const IUIDescription description 
) const
overridevirtual

Implements IViewFactory.

◆ createViewByName()

CView * createViewByName ( const std::string *  className,
const UIAttributes attributes,
const IUIDescription description 
) const
protected

◆ evaluateAttributesAndRemember()

void evaluateAttributesAndRemember ( CView view,
const UIAttributes attributes,
UIAttributes evaluatedAttributes,
const IUIDescription description 
) const
protected

◆ getViewName()

IdStringPtr getViewName ( CView view)
static

◆ registerViewCreator()

void registerViewCreator ( const IViewCreator viewCreator)
static

◆ unregisterViewCreator()

void unregisterViewCreator ( const IViewCreator viewCreator)
static

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