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; }
109 void setStep(int32 step);
137 void registerParameters()
override;
141 CColor fOnColor{kRedCColor};
143 bool fInverse{
false};
145 bool fPressed{
false};
153 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:1312
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