26 using namespace Params;
54 fBackColor = CColor{200, 200, 200};
58 void draw(CDrawContext *iContext)
override;
61 CMouseEventResult onMouseDown(CPoint &where,
const CButtonState &buttons)
override;
63 CMouseEventResult onMouseUp(CPoint &where,
const CButtonState &buttons)
override;
65 CMouseEventResult onMouseCancel()
override;
67 int32_t onKeyDown(VstKeyCode &keyCode)
override;
69 int32_t onKeyUp(VstKeyCode &keyCode)
override;
72 bool sizeToFit()
override;
77 bool isOff()
const {
return !isOn(); }
88 void setFrames(
int iFrames);
96 void setOnColor(CColor
const &iColor) { fOnColor = iColor; }
108 void setStep(int32 step);
136 void registerParameters()
override;
140 CColor fOnColor{kRedCColor};
142 bool fInverse{
false};
144 bool fPressed{
false};
152 explicit Creator(
char const *iViewName =
nullptr,
char const *iDisplayName =
nullptr) :
Inherit from this class to provide the factory for a custom view.
Definition: CustomViewCreator.h:1311
SharedPointer< CBitmap > BitmapSPtr
Definition: Types.h:50
Definition: CustomController.h:24
Specialization of TCustomControlView for discrete values.
Definition: CustomControlView.h:152
CBitmap * BitmapPtr
Definition: Types.h:49