30 using namespace VSTGUI;
31 using namespace Params;
39 fBackColor = CColor{200, 200, 200};
43 void draw(CDrawContext *iContext)
override;
46 CMouseEventResult onMouseDown(CPoint &where,
const CButtonState &buttons)
override;
48 CMouseEventResult onMouseUp(CPoint &where,
const CButtonState &buttons)
override;
50 CMouseEventResult onMouseCancel()
override;
52 int32_t onKeyDown(VstKeyCode &keyCode)
override;
54 int32_t onKeyUp(VstKeyCode &keyCode)
override;
57 bool sizeToFit()
override;
60 bool isOn()
const {
return getControlValue(); }
62 bool isOff()
const {
return !isOn(); }
67 void setFrames(
int iFrames);
72 void setOnColor(CColor
const &iColor) { fOnColor = iColor; }
99 CColor fOnColor{kRedCColor};
101 bool fInverse{
false};
103 bool fPressed{
false};
109 explicit Creator(
char const *iViewName =
nullptr,
char const *iDisplayName =
nullptr) :
Definition: CustomViewCreator.h:981
SharedPointer< CBitmap > BitmapSPtr
Definition: Types.h:36
CBitmap * BitmapPtr
Definition: Types.h:35
Definition: CustomControlView.h:63