CAutoAnimation

#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

CAutoAnimation ( CRect &size, CControlListener *listener, long tag, long subPixmaps, long heightOfOneImage, CBitmap *handle, CPoint &offset);

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
-

[source] source


~CAutoAnimation

1.0

~CAutoAnimation();

Destroys an autoAnimation object. The pixmap is destroyed if there is no more reference on it.

[source] source


draw

1.0

void draw (CDrawContext*);

Called when this control object needs to be drawn.

[source] source


mouse

1.0

void mouse (CDrawContext *context, CPoint &where);

Called when there is a mouse-click inside this control object.

[source] source

See also :


openWindow

1.0

void openWindow (void);

Opens virtually the window in order to begin the animation.

[source] source


closeWindow

1.0

void closeWindow (void);

Closes virtually the window in order to stop the animation.

[source] source


nextPixmap

1.0

void nextPixmap (void);

Increments the value in order to get the next Pixmap.

[source] source


previousPixmap

1.0

void previousPixmap (void);

Decrements the value in order to get the previous Pixmap.

[source] source


isWindowOpened

1.0

bool isWindowOpened ();

Returns true if the animation is opened else false.

[source] source


Copyright ©2003 Steinberg Media Technologies GmbH. All Rights Reserved.