GClasses
|
#include <GWidgets.h>
Public Member Functions | |
GWidgetCheckBox (GWidgetGroup *pParent, int x, int y, int w, int h) | |
virtual | ~GWidgetCheckBox () |
virtual WidgetType | type () |
virtual void | draw (GImage *pCanvas, int x, int y) |
Draws this widget on pCanvas at (x,y) | |
void | setChecked (bool checked) |
Sets whether or not the box has an "X" in it. | |
bool | isChecked () |
Returns true if the box is currently checked. | |
Protected Member Functions | |
virtual void | grab (int button, int x, int y) |
virtual void | release (int button) |
Protected Attributes | |
bool | m_checked |
GClasses::GWidgetCheckBox::GWidgetCheckBox | ( | GWidgetGroup * | pParent, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h | ||
) |
virtual GClasses::GWidgetCheckBox::~GWidgetCheckBox | ( | ) | [virtual] |
virtual void GClasses::GWidgetCheckBox::draw | ( | GImage * | pCanvas, |
int | x, | ||
int | y | ||
) | [virtual] |
Draws this widget on pCanvas at (x,y)
Implements GClasses::GWidget.
virtual void GClasses::GWidgetCheckBox::grab | ( | int | button, |
int | x, | ||
int | y | ||
) | [protected, virtual] |
Reimplemented from GClasses::GWidgetAtomic.
bool GClasses::GWidgetCheckBox::isChecked | ( | ) | [inline] |
Returns true if the box is currently checked.
virtual void GClasses::GWidgetCheckBox::release | ( | int | button | ) | [protected, virtual] |
Reimplemented from GClasses::GWidgetAtomic.
void GClasses::GWidgetCheckBox::setChecked | ( | bool | checked | ) |
Sets whether or not the box has an "X" in it.
virtual WidgetType GClasses::GWidgetCheckBox::type | ( | ) | [inline, virtual] |
Implements GClasses::GWidget.
bool GClasses::GWidgetCheckBox::m_checked [protected] |