GClasses
|
The easiest way to do bullets is to use the GWidgetBulletGroup class, but if you really want to manage individual bullets yourself, you can use this class to do it. More...
#include <GWidgets.h>
Public Member Functions | |
GWidgetBulletHole (GWidgetGroup *pParent, int x, int y, int w, int h) | |
virtual | ~GWidgetBulletHole () |
virtual WidgetType | type () |
virtual void | draw (GImage *pCanvas, int x, int y) |
Draws this widget on pCanvas at (x,y) | |
void | setChecked (bool checked) |
Puts a dot inside this bullet hole. | |
bool | isChecked () |
Returns true if there is a dot in this bullet hole. | |
Protected Member Functions | |
virtual void | grab (int button, int x, int y) |
virtual void | release (int button) |
Protected Attributes | |
bool | m_checked |
The easiest way to do bullets is to use the GWidgetBulletGroup class, but if you really want to manage individual bullets yourself, you can use this class to do it.
GClasses::GWidgetBulletHole::GWidgetBulletHole | ( | GWidgetGroup * | pParent, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h | ||
) |
virtual GClasses::GWidgetBulletHole::~GWidgetBulletHole | ( | ) | [virtual] |
virtual void GClasses::GWidgetBulletHole::draw | ( | GImage * | pCanvas, |
int | x, | ||
int | y | ||
) | [virtual] |
Draws this widget on pCanvas at (x,y)
Implements GClasses::GWidget.
virtual void GClasses::GWidgetBulletHole::grab | ( | int | button, |
int | x, | ||
int | y | ||
) | [protected, virtual] |
Reimplemented from GClasses::GWidgetAtomic.
bool GClasses::GWidgetBulletHole::isChecked | ( | ) | [inline] |
Returns true if there is a dot in this bullet hole.
virtual void GClasses::GWidgetBulletHole::release | ( | int | button | ) | [protected, virtual] |
Reimplemented from GClasses::GWidgetAtomic.
void GClasses::GWidgetBulletHole::setChecked | ( | bool | checked | ) |
Puts a dot inside this bullet hole.
virtual WidgetType GClasses::GWidgetBulletHole::type | ( | ) | [inline, virtual] |
Implements GClasses::GWidget.
bool GClasses::GWidgetBulletHole::m_checked [protected] |