|
VSTGUI 4.10
Graphical User Interface Framework not only for VST plugins
|
Customization helper for an UIDesc window. More...
#include <customization.h>
Inheritance diagram for Customization:Public Types | |
| using | CreateViewControllerFunc = std::function< IController *(const UTF8StringView &name, IController *parent, const IUIDescription *uiDesc)> |
Public Member Functions | |
| void | addCreateViewControllerFunc (const UTF8String &name, CreateViewControllerFunc func) |
| IController * | createController (const UTF8StringView &name, IController *parent, const IUIDescription *uiDesc) override |
| Create a sub controller. More... | |
Public Member Functions inherited from CustomizationAdapter | |
| IController * | createController (const UTF8StringView &name, IController *parent, const IUIDescription *uiDesc) override |
| Create a sub controller. More... | |
| void | onUIDescriptionParsed (const IUIDescription *uiDesc) override |
| Notification that the UIDescription was sucessfully parsed. More... | |
| virtual IController * | createController (const UTF8StringView &name, IController *parent, const IUIDescription *uiDesc)=0 |
| Create a sub controller. More... | |
| virtual void | onUIDescriptionParsed (const IUIDescription *uiDesc)=0 |
| Notification that the UIDescription was sucessfully parsed. More... | |
Public Member Functions inherited from Interface | |
| virtual | ~Interface () noexcept |
| Interface ()=default | |
| Interface (const Interface &)=delete | |
| Interface (Interface &&)=delete | |
| Interface & | operator= (const Interface &)=delete |
| Interface & | operator= (Interface &&)=delete |
| template<typename T > | |
| const auto | dynamicCast () const |
| template<typename T > | |
| auto | dynamicCast () |
Static Public Member Functions | |
| static std::shared_ptr< Customization > | make () |
Customization helper for an UIDesc window.
Use this class to create controllers for your views
Example:
The view controller MyFirstViewController will be created when the sub-controller attribute of a view is equal to "MyFirstController" and the same for "MySecondViewController".
| using CreateViewControllerFunc = std::function<IController*( const UTF8StringView& name, IController* parent, const IUIDescription* uiDesc)> |
|
inline |
|
inlineoverridevirtual |
Create a sub controller.
A sub controller can be defined in the UI editor for a view and will be responsible as a controller for the view and its children.
The controller will be automatically destroyed when the view is destroyed. You should always create a new controller instance here and do not cache it.
| name | name of the sub controller |
| parent | the parent controller |
| uiDesc | the UIDescription instance |
Reimplemented from CustomizationAdapter.
|
inlinestatic |