GClasses
|
An image with multiple frames. More...
#include <GWidgets.h>
Public Member Functions | |
GWidgetAnimation (GWidgetGroup *pParent, int x, int y, GImage *pImage, int nFrames) | |
virtual | ~GWidgetAnimation () |
virtual WidgetType | type () |
virtual void | draw (GImage *pCanvas, int x, int y) |
Draws this widget on pCanvas at (x,y) | |
void | setFrame (int nFrame) |
Sets the current animation frame. | |
Protected Attributes | |
GImage | m_image |
int | m_nFrames |
int | m_nFrame |
An image with multiple frames.
GClasses::GWidgetAnimation::GWidgetAnimation | ( | GWidgetGroup * | pParent, |
int | x, | ||
int | y, | ||
GImage * | pImage, | ||
int | nFrames | ||
) |
virtual GClasses::GWidgetAnimation::~GWidgetAnimation | ( | ) | [virtual] |
virtual void GClasses::GWidgetAnimation::draw | ( | GImage * | pCanvas, |
int | x, | ||
int | y | ||
) | [virtual] |
Draws this widget on pCanvas at (x,y)
Implements GClasses::GWidget.
void GClasses::GWidgetAnimation::setFrame | ( | int | nFrame | ) |
Sets the current animation frame.
virtual WidgetType GClasses::GWidgetAnimation::type | ( | ) | [inline, virtual] |
Implements GClasses::GWidget.
GImage GClasses::GWidgetAnimation::m_image [protected] |
int GClasses::GWidgetAnimation::m_nFrame [protected] |
int GClasses::GWidgetAnimation::m_nFrames [protected] |