GClasses
GClasses::GWidgetCheckBox Class Reference

#include <GWidgets.h>

Inheritance diagram for GClasses::GWidgetCheckBox:
GClasses::GWidgetAtomic GClasses::GWidget

Public Member Functions

 GWidgetCheckBox (GWidgetGroup *pParent, int x, int y, int w, int h)
 
virtual ~GWidgetCheckBox ()
 
virtual void draw (GImage *pCanvas, int x, int y)
 Draws this widget on pCanvas at (x,y) More...
 
bool isChecked ()
 Returns true if the box is currently checked. More...
 
void setChecked (bool checked)
 Sets whether or not the box has an "X" in it. 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 ()
 
GWidgetGroupparent ()
 
GRectrect ()
 
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
 
- Protected Attributes inherited from GClasses::GWidget
GWidgetCommonm_common
 
int m_nID
 
GWidgetGroupm_pParent
 
GRect m_rect
 

Additional Inherited Members

- Public Types inherited from GClasses::GWidget

Constructor & Destructor Documentation

GClasses::GWidgetCheckBox::GWidgetCheckBox ( GWidgetGroup pParent,
int  x,
int  y,
int  w,
int  h 
)
virtual GClasses::GWidgetCheckBox::~GWidgetCheckBox ( )
virtual

Member Function Documentation

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 
)
protectedvirtual

Reimplemented from GClasses::GWidgetAtomic.

bool GClasses::GWidgetCheckBox::isChecked ( )
inline

Returns true if the box is currently checked.

virtual void GClasses::GWidgetCheckBox::release ( int  button)
protectedvirtual

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 ( )
inlinevirtual

Implements GClasses::GWidget.

Member Data Documentation

bool GClasses::GWidgetCheckBox::m_checked
protected