#include <vstcontrols.h>
class CAutoAnimation : public CControl;
An auto-animation control contains a given number of subpixmap which can be displayed in loop. Two functions allows to get the previous or the next subpixmap (these functions increase or decrease the current value of this control).
CAutoAnimation |
1.0 |
Create an auto-animation.
size |
|
The coordinates of the enclosing rectangle, relative to the parent frame. |
---|---|---|
listener |
|
The object responsible for handling events in this control. |
tag |
|
The index of the control. |
subPixmaps |
|
The number of images. |
heightOfOneImage |
|
The height of one image in pixels. |
handle |
|
The pixmap containing the images, stacked in height. |
offset |
|
- |
~CAutoAnimation |
1.0 |
Destroys an autoAnimation object. The pixmap is destroyed if there is no more reference on it.
draw |
1.0 |
Called when this control object needs to be drawn.
mouse |
1.0 |
Called when there is a mouse-click inside this control object.
CControlListener
's valueChanged
method which is called when the value has changed.
openWindow |
1.0 |
Opens virtually the window in order to begin the animation.
closeWindow |
1.0 |
Closes virtually the window in order to stop the animation.
nextPixmap |
1.0 |
Increments the value in order to get the next Pixmap.
previousPixmap |
1.0 |
Decrements the value in order to get the previous Pixmap.
isWindowOpened |
1.0 |
Returns true if the animation is opened else false.