29 using namespace Params;
44 fBackColor = CColor{200, 200, 200};
48 void draw(CDrawContext *iContext)
override;
51 CMouseEventResult onMouseDown(CPoint &where,
const CButtonState &buttons)
override;
53 CMouseEventResult onMouseUp(CPoint &where,
const CButtonState &buttons)
override;
55 CMouseEventResult onMouseCancel()
override;
57 int32_t onKeyDown(VstKeyCode &keyCode)
override;
59 int32_t onKeyUp(VstKeyCode &keyCode)
override;
62 bool sizeToFit()
override;
67 bool isOff()
const {
return !isOn(); }
74 void setFrames(
int iFrames);
79 void setOnColor(CColor
const &iColor) { fOnColor = iColor; }
87 void setStep(int32 step);
104 void registerParameters()
override;
108 CColor fOnColor{kRedCColor};
110 bool fInverse{
false};
112 bool fPressed{
false};
120 explicit Creator(
char const *iViewName =
nullptr,
char const *iDisplayName =
nullptr) :
Definition: CustomViewCreator.h:1049
SharedPointer< CBitmap > BitmapSPtr
Definition: Types.h:50
CBitmap * BitmapPtr
Definition: Types.h:49
Definition: CustomControlView.h:63