#include <vstcontrols.h>
class CKickButton : public CControl;
Define a button with 2 states using 2 subpixmaps. One click on it, then the second subpixmap is displayed. When the mouse button is relaxed, the first subpixmap is framed.
CKickButton |
1.0 |
Creates a kick button object.
size |
The enclosing rectangle, in relative to the parent frame. |
---|---|
listener |
The object responsible for handling events in this control. |
tag |
The index of the control |
heightOfOneImage |
The height of one image, in pixel. |
handle |
The pixmap containing the images of the two different states. |
offset |
- |
~CKickButton |
1.0 |
Destroys a kickButton object. The pixmap is destroyed if there is no more reference on it.
draw |
1.0 |
mouse |
1.0 |
Called when there is a mouse-click inside this control object.