GClasses
|
An image with multiple frames.
#include <GWidgets.h>
Public Member Functions | |
GWidgetAnimation (GWidgetGroup *pParent, int x, int y, GImage *pImage, int nFrames) | |
virtual | ~GWidgetAnimation () |
virtual void | draw (GImage *pCanvas, int x, int y) |
Draws this widget on pCanvas at (x,y) More... | |
void | setFrame (int nFrame) |
Sets the current animation frame. More... | |
virtual WidgetType | type () |
Public Member Functions inherited from GClasses::GWidgetAtomic | |
GWidgetAtomic (GWidgetGroup *pParent, int x, int y, int w, int h) | |
virtual | ~GWidgetAtomic () |
virtual bool | isAtomic () |
virtual bool | isClickable () |
virtual void | onChar (char c) |
virtual void | onGetFocus () |
virtual void | onLoseFocus () |
virtual void | onMouseMove (int dx, int dy) |
virtual void | onSpecialKey (int key) |
Public Member Functions inherited from GClasses::GWidget | |
GWidget (GWidgetGroup *m_pParent, int x, int y, int w, int h) | |
virtual | ~GWidget () |
int | id () |
GWidgetGroup * | parent () |
GRect * | rect () |
void | setPos (int x, int y) |
Protected Attributes | |
GImage | m_image |
int | m_nFrame |
int | m_nFrames |
Protected Attributes inherited from GClasses::GWidget | |
GWidgetCommon * | m_common |
int | m_nID |
GWidgetGroup * | m_pParent |
GRect | m_rect |
Additional Inherited Members | |
Public Types inherited from GClasses::GWidget | |
Protected Member Functions inherited from GClasses::GWidgetAtomic | |
virtual void | grab (int button, int x, int y) |
virtual void | release (int button) |
GClasses::GWidgetAnimation::GWidgetAnimation | ( | GWidgetGroup * | pParent, |
int | x, | ||
int | y, | ||
GImage * | pImage, | ||
int | nFrames | ||
) |
|
virtual |
|
virtual |
Draws this widget on pCanvas at (x,y)
Implements GClasses::GWidget.
void GClasses::GWidgetAnimation::setFrame | ( | int | nFrame | ) |
Sets the current animation frame.
|
inlinevirtual |
Implements GClasses::GWidget.
|
protected |
|
protected |
|
protected |