Rogue Wave Views Foundation Package API Reference Guide |
Rogue Wave Views Documentation Home |
Animation handler class. More...
#include <ilviews/base/port.h>
Public Member Functions | |
virtual void | drawFrame (IlvPort *dst, IlvPalette *palette, const IlvRect &rect, IlUInt frame, const IlvRegion *clip, IlvPosition alignment, IlBoolean transparent) const =0 |
Called to draw the specified frame. More... | |
virtual IlUInt | getFrameDelay (IlUInt frame) const =0 |
Returns the delay between the specified frame and the next frame. More... | |
virtual IlUInt | getFramesCount () const =0 |
Returns the number of frames of the animation. More... | |
virtual IlBoolean | isLastFrame (IlUInt frame) const |
Returns IlTrue if the specified frame is the last one. More... | |
Animation handler class.
Library: xviews or winviews or mviews (mutually exclusive)
The IlvBitmapAnimationHandler
class is an abstract class that handles animation of IlvBitmap
. objects. It defines several virtual methods that need to be redefined in subclasses. The animation is supported by the following objects: IlvIcon
, IlvTransparentIcon
, and IlvGadgetItem
.
IlvBitmap
|
pure virtual |
Called to draw the specified frame.
dst | The port in which the drawing should be done. |
palette | The palette. |
rect | The bounding box of the bitmap. |
frame | The frame index. |
clip | The clip. |
alignment | The alignment of the bitmap inside rect. |
transparent | A Boolean value specifying whether the drawing should be transparent. |
Returns the delay between the specified frame and the next frame.
frame | The frame index. |
getFramesCount
|
pure virtual |
Returns the number of frames of the animation.
If you do not know how many frames your animation will have, redefine this member function to return (IlUInt)-1
. Then you need to redefine the isLastFrame
method.
isLastFrame
Returns IlTrue
if the specified frame is the last one.
The default implementation calls getFramesCount
and compares the returned value with frame. You can override this member function if you do not know how many frames your animation will have.
frame | The frame index. |
IlTrue
if frame is the last frame. getFramesCount
© Copyright 2016, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.