GClasses
|
A button with a common icon on it.
#include <GWidgets.h>
Public Types | |
Public Types inherited from GClasses::GWidget |
Public Member Functions | |
GWidgetVCRButton (GWidgetGroup *pParent, int x, int y, int w, int h, VCR_Type eType) | |
virtual | ~GWidgetVCRButton () |
virtual void | draw (GImage *pCanvas, int x, int y) |
Draws this widget on pCanvas at (x,y) More... | |
bool | isPressed () |
Returns true if the button is currently pressed. More... | |
void | setType (VCR_Type eType) |
Sets the button image. 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 Member Functions | |
void | drawIcon (GImage *pCanvas, int nHorizOfs, int nVertOfs) |
virtual void | grab (int button, int x, int y) |
virtual void | release (int button) |
Protected Attributes | |
VCR_Type | m_eType |
bool | m_pressed |
Protected Attributes inherited from GClasses::GWidget | |
GWidgetCommon * | m_common |
int | m_nID |
GWidgetGroup * | m_pParent |
GRect | m_rect |
GClasses::GWidgetVCRButton::GWidgetVCRButton | ( | GWidgetGroup * | pParent, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h, | ||
VCR_Type | eType | ||
) |
|
virtual |
|
virtual |
Draws this widget on pCanvas at (x,y)
Implements GClasses::GWidget.
|
protected |
|
protectedvirtual |
Reimplemented from GClasses::GWidgetAtomic.
|
inline |
Returns true if the button is currently pressed.
|
protectedvirtual |
Reimplemented from GClasses::GWidgetAtomic.
void GClasses::GWidgetVCRButton::setType | ( | VCR_Type | eType | ) |
Sets the button image.
|
inlinevirtual |
Implements GClasses::GWidget.
|
protected |
|
protected |