GClasses
|
A button with a common icon on it. More...
#include <GWidgets.h>
Public Types | |
enum | VCR_Type { ArrowLeft, ArrowRight, ArrowUp, ArrowDown, Square } |
Public Member Functions | |
GWidgetVCRButton (GWidgetGroup *pParent, int x, int y, int w, int h, VCR_Type eType) | |
virtual | ~GWidgetVCRButton () |
virtual WidgetType | type () |
virtual void | draw (GImage *pCanvas, int x, int y) |
Draws this widget on pCanvas at (x,y) | |
void | setType (VCR_Type eType) |
Sets the button image. | |
bool | isPressed () |
Returns true if the button is currently pressed. | |
Protected Member Functions | |
virtual void | grab (int button, int x, int y) |
virtual void | release (int button) |
void | drawIcon (GImage *pCanvas, int nHorizOfs, int nVertOfs) |
Protected Attributes | |
VCR_Type | m_eType |
bool | m_pressed |
A button with a common icon on it.
GClasses::GWidgetVCRButton::GWidgetVCRButton | ( | GWidgetGroup * | pParent, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h, | ||
VCR_Type | eType | ||
) |
virtual GClasses::GWidgetVCRButton::~GWidgetVCRButton | ( | ) | [virtual] |
virtual void GClasses::GWidgetVCRButton::draw | ( | GImage * | pCanvas, |
int | x, | ||
int | y | ||
) | [virtual] |
Draws this widget on pCanvas at (x,y)
Implements GClasses::GWidget.
void GClasses::GWidgetVCRButton::drawIcon | ( | GImage * | pCanvas, |
int | nHorizOfs, | ||
int | nVertOfs | ||
) | [protected] |
virtual void GClasses::GWidgetVCRButton::grab | ( | int | button, |
int | x, | ||
int | y | ||
) | [protected, virtual] |
Reimplemented from GClasses::GWidgetAtomic.
bool GClasses::GWidgetVCRButton::isPressed | ( | ) | [inline] |
Returns true if the button is currently pressed.
virtual void GClasses::GWidgetVCRButton::release | ( | int | button | ) | [protected, virtual] |
Reimplemented from GClasses::GWidgetAtomic.
void GClasses::GWidgetVCRButton::setType | ( | VCR_Type | eType | ) |
Sets the button image.
virtual WidgetType GClasses::GWidgetVCRButton::type | ( | ) | [inline, virtual] |
Implements GClasses::GWidget.
VCR_Type GClasses::GWidgetVCRButton::m_eType [protected] |
bool GClasses::GWidgetVCRButton::m_pressed [protected] |