VSTGUI
4.10
Graphical User Interface Framework not only for VST plugins
|
View creator interface. More...
Public Types | |
enum | AttrType { kUnknownType, kBooleanType, kIntegerType, kFloatType, kStringType, kColorType, kFontType, kBitmapType, kPointType, kRectType, kTagType, kListType, kGradientType } |
using | string = std::string |
using | StringList = std::list< string > |
using | ConstStringPtrList = std::list< const string * > |
Public Member Functions | |
virtual | ~IViewCreator () noexcept=default |
virtual IdStringPtr | getViewName () const =0 |
virtual IdStringPtr | getBaseViewName () const =0 |
virtual CView * | create (const UIAttributes &attributes, const IUIDescription *description) const =0 |
virtual bool | apply (CView *view, const UIAttributes &attributes, const IUIDescription *description) const =0 |
virtual bool | getAttributeNames (StringList &attributeNames) const =0 |
virtual AttrType | getAttributeType (const string &attributeName) const =0 |
virtual bool | getAttributeValue (CView *view, const string &attributeName, string &stringValue, const IUIDescription *desc) const =0 |
virtual bool | getPossibleListValues (const string &attributeName, ConstStringPtrList &values) const =0 |
virtual bool | getAttributeValueRange (const string &attributeName, double &minValue, double &maxValue) const =0 |
virtual UTF8StringPtr | getDisplayName () const =0 |
View creator interface.
You can register your own custom views with the UIViewFactory by inheriting from this interface and register it with UIViewFactory::registerViewCreator().
Example for an imaginary view class called MyView which directly inherites from CView:
using ConstStringPtrList = std::list<const string*> |
using string = std::string |
using StringList = std::list<string> |
enum AttrType |
|
virtualdefaultnoexcept |
|
pure virtual |
Implemented in ViewCreatorAdapter, MultiBitmapControlCreator, SliderCreator, KnobCreator, RowColumnViewCreator, SegmentButtonCreator, SplitViewCreator, StringListControlCreator, UIViewSwitchContainerCreator, AnimationSplashScreenCreator, AnimKnobCreator, AutoAnimationCreator, CheckBoxCreator, ControlCreator, GradientViewCreator, LayeredViewContainerCreator, MultiLineTextLabelCreator, OptionMenuCreator, ParamDisplayCreator, ScrollViewCreator, SearchTextEditCreator, ShadowViewContainerCreator, TextButtonCreator, TextEditCreator, TextLabelCreator, ViewContainerCreator, ViewCreator, VuMeterCreator, XYPadCreator, SwitchBaseCreator, KnobBaseCreator, and SliderBaseCreator.
|
pure virtual |
Implemented in HorizontalSwitchCreator, SliderCreator, KnobCreator, VerticalSwitchCreator, RowColumnViewCreator, SegmentButtonCreator, UIViewSwitchContainerCreator, AnimationSplashScreenCreator, AnimKnobCreator, AutoAnimationCreator, CheckBoxCreator, ControlCreator, GradientViewCreator, KickButtonCreator, LayeredViewContainerCreator, MovieBitmapCreator, MovieButtonCreator, MultiLineTextLabelCreator, OnOffButtonCreator, OptionMenuCreator, ParamDisplayCreator, RockerSwitchCreator, ScrollViewCreator, SearchTextEditCreator, ShadowViewContainerCreator, SplitViewCreator, StringListControlCreator, TextButtonCreator, TextEditCreator, TextLabelCreator, ViewContainerCreator, ViewCreator, VuMeterCreator, and XYPadCreator.
|
pure virtual |
Implemented in ViewCreatorAdapter, SliderCreator, KnobCreator, MultiBitmapControlCreator, RowColumnViewCreator, SegmentButtonCreator, SplitViewCreator, StringListControlCreator, UIViewSwitchContainerCreator, AnimationSplashScreenCreator, AnimKnobCreator, AutoAnimationCreator, CheckBoxCreator, ControlCreator, GradientViewCreator, LayeredViewContainerCreator, MultiLineTextLabelCreator, OptionMenuCreator, ParamDisplayCreator, ScrollViewCreator, SearchTextEditCreator, ShadowViewContainerCreator, TextButtonCreator, TextEditCreator, TextLabelCreator, ViewContainerCreator, ViewCreator, VuMeterCreator, XYPadCreator, KnobBaseCreator, SliderBaseCreator, and SwitchBaseCreator.
Implemented in ViewCreatorAdapter, SliderCreator, KnobCreator, MultiBitmapControlCreator, RowColumnViewCreator, SegmentButtonCreator, SplitViewCreator, StringListControlCreator, UIViewSwitchContainerCreator, AnimationSplashScreenCreator, AnimKnobCreator, AutoAnimationCreator, CheckBoxCreator, ControlCreator, GradientViewCreator, LayeredViewContainerCreator, MultiLineTextLabelCreator, OptionMenuCreator, ParamDisplayCreator, ScrollViewCreator, SearchTextEditCreator, ShadowViewContainerCreator, TextButtonCreator, TextEditCreator, TextLabelCreator, ViewContainerCreator, ViewCreator, VuMeterCreator, XYPadCreator, KnobBaseCreator, SliderBaseCreator, and SwitchBaseCreator.
|
pure virtual |
Implemented in ViewCreatorAdapter, MultiBitmapControlCreator, SliderCreator, KnobCreator, SegmentButtonCreator, TextButtonCreator, RowColumnViewCreator, SplitViewCreator, StringListControlCreator, UIViewSwitchContainerCreator, AnimationSplashScreenCreator, AnimKnobCreator, AutoAnimationCreator, CheckBoxCreator, ControlCreator, GradientViewCreator, LayeredViewContainerCreator, MultiLineTextLabelCreator, OptionMenuCreator, ParamDisplayCreator, ScrollViewCreator, SearchTextEditCreator, ShadowViewContainerCreator, TextEditCreator, TextLabelCreator, ViewContainerCreator, ViewCreator, VuMeterCreator, XYPadCreator, KnobBaseCreator, SliderBaseCreator, and SwitchBaseCreator.
|
pure virtual |
Implemented in ViewCreatorAdapter, GradientViewCreator, ParamDisplayCreator, ShadowViewContainerCreator, and ViewCreator.
|
pure virtual |
Implemented in HorizontalSwitchCreator, SliderCreator, KnobCreator, VerticalSwitchCreator, RowColumnViewCreator, SegmentButtonCreator, UIViewSwitchContainerCreator, AnimationSplashScreenCreator, AnimKnobCreator, AutoAnimationCreator, CheckBoxCreator, ControlCreator, GradientViewCreator, KickButtonCreator, LayeredViewContainerCreator, MovieBitmapCreator, MovieButtonCreator, MultiLineTextLabelCreator, OnOffButtonCreator, OptionMenuCreator, ParamDisplayCreator, RockerSwitchCreator, ScrollViewCreator, SearchTextEditCreator, ShadowViewContainerCreator, SplitViewCreator, StringListControlCreator, TextButtonCreator, TextEditCreator, TextLabelCreator, ViewContainerCreator, ViewCreator, VuMeterCreator, and XYPadCreator.
|
pure virtual |
Implemented in ViewCreatorAdapter, HorizontalSwitchCreator, SliderCreator, KnobCreator, VerticalSwitchCreator, RowColumnViewCreator, SegmentButtonCreator, UIViewSwitchContainerCreator, AnimationSplashScreenCreator, AnimKnobCreator, AutoAnimationCreator, CheckBoxCreator, ControlCreator, GradientViewCreator, KickButtonCreator, LayeredViewContainerCreator, MovieBitmapCreator, MovieButtonCreator, MultiLineTextLabelCreator, OnOffButtonCreator, OptionMenuCreator, ParamDisplayCreator, RockerSwitchCreator, ScrollViewCreator, SearchTextEditCreator, ShadowViewContainerCreator, SplitViewCreator, StringListControlCreator, TextButtonCreator, TextEditCreator, TextLabelCreator, ViewContainerCreator, ViewCreator, VuMeterCreator, and XYPadCreator.
|
pure virtual |
|
pure virtual |
Implemented in HorizontalSwitchCreator, SliderCreator, KnobCreator, VerticalSwitchCreator, RowColumnViewCreator, SegmentButtonCreator, UIViewSwitchContainerCreator, AnimationSplashScreenCreator, AnimKnobCreator, AutoAnimationCreator, CheckBoxCreator, ControlCreator, GradientViewCreator, KickButtonCreator, LayeredViewContainerCreator, MovieBitmapCreator, MovieButtonCreator, MultiLineTextLabelCreator, OnOffButtonCreator, OptionMenuCreator, ParamDisplayCreator, RockerSwitchCreator, ScrollViewCreator, SearchTextEditCreator, ShadowViewContainerCreator, SplitViewCreator, StringListControlCreator, TextButtonCreator, TextEditCreator, TextLabelCreator, ViewContainerCreator, ViewCreator, VuMeterCreator, and XYPadCreator.