#include <vstcontrols.h>
class CRockerSwitch : public CControl;
Define a rocker switch with 3 states using 3 subpixmaps. One click on its leftside, then the first subpixmap is displayed. One click on its rightside, then the third subpixmap is displayed. When the mouse button is relaxed, the second subpixmap is framed.
CRockerSwitch |
1.0 |
Creates a rocker switch object.
~CRockerSwitch |
1.0 |
Destroys a rockerSwitch object. The pixmap is destroyed if there is no more reference on it.
draw |
1.0 |
Called when this control object needs to be drawed.
mouse |
1.0 |
Called when there is a mouse-click inside this control object.
onWheel |
2.1 |