29 using namespace Params;
37 fBackColor = CColor{200, 200, 200};
41 void draw(CDrawContext *iContext)
override;
44 CMouseEventResult onMouseDown(CPoint &where,
const CButtonState &buttons)
override;
46 CMouseEventResult onMouseUp(CPoint &where,
const CButtonState &buttons)
override;
48 CMouseEventResult onMouseCancel()
override;
50 int32_t onKeyDown(VstKeyCode &keyCode)
override;
52 int32_t onKeyUp(VstKeyCode &keyCode)
override;
55 bool sizeToFit()
override;
58 bool isOn()
const {
return getControlValue(); }
60 bool isOff()
const {
return !isOn(); }
65 void setFrames(
int iFrames);
70 void setOnColor(CColor
const &iColor) { fOnColor = iColor; }
97 CColor fOnColor{kRedCColor};
101 bool fPressed{
false};
107 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