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 void | draw (GImage *pCanvas, int x, int y) |
Draws this widget on pCanvas at (x,y) More... | |
bool | isChecked () |
Returns true if there is a dot in this bullet hole. More... | |
void | setChecked (bool checked) |
Puts a dot inside this bullet hole. More... | |
virtual WidgetType | type () |
![]() | |
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) |
![]() | |
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 Member Functions | |
virtual void | grab (int button, int x, int y) |
virtual void | release (int button) |
Protected Attributes | |
bool | m_checked |
![]() | |
GWidgetCommon * | m_common |
int | m_nID |
GWidgetGroup * | m_pParent |
GRect | m_rect |
Additional Inherited Members | |
![]() | |
enum | WidgetType { Animation, BulletGroup, BulletHole, Canvas, CheckBox, Custom, Dialog, FileSystemBrowser, Grid, GroupBox, HorizSlider, HScrollBar, PolarChart, ProgressBar, SliderTab, TextBox, TextButton, TextLabel, TextTab, VCRButton, VertSlider, VScrollBar, Wave } |
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 |
|
virtual |
Draws this widget on pCanvas at (x,y)
Implements GClasses::GWidget.
|
protectedvirtual |
Reimplemented from GClasses::GWidgetAtomic.
|
inline |
Returns true if there is a dot in this bullet hole.
|
protectedvirtual |
Reimplemented from GClasses::GWidgetAtomic.
void GClasses::GWidgetBulletHole::setChecked | ( | bool | checked | ) |
Puts a dot inside this bullet hole.
|
inlinevirtual |
Implements GClasses::GWidget.
|
protected |