#include <vstcontrols.h>
class CMovieBitmap : public CControl;
A movie pixmap allows to display different subpixmaps according to its current value.
CMovieBitmap |
1.0 |
Create a movie pixmap with a given number and size of subpixmap.
size |
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 subpixmaps. |
heightOfOneImage |
The height of one subpixmap in pixels. |
handle |
The pixmap containing all the subpixmaps, stacked in height. |
offset |
MyEditor::open (void *ptr)
{
myPixmap = new CBitmap (kMyPixmapID);
CPoint offset (0,0);
CRect size (
kMyControl_left,
kMyControl_top,
kMyControl_left + myPixmap->getWidth (),
kMyControl_top + myPixmap->getHeight ()
/ kNumSubPixmaps
);
myControl = new CMovieBitmap (
size,
this,
kMyControl,
kNumSubPixmaps,
myPixmap->getHeight () / kNumSubPixmaps,
myPixmap,
offset
);
frame->addView (myControl);
}
~CMovieBitmap |
1.0 |
Destroy a movieBitmap 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.