GClasses
GClasses::GWidgetAtomic Class Reference

Detailed Description

The base class of all atomic widgets (widgets that are not composed of other widgets).

#include <GWidgets.h>

Inheritance diagram for GClasses::GWidgetAtomic:
GClasses::GWidget GClasses::GWidgetAnimation GClasses::GWidgetBulletHole GClasses::GWidgetCanvas GClasses::GWidgetCheckBox GClasses::GWidgetGroupBox GClasses::GWidgetImageButton GClasses::GWidgetProgressBar GClasses::GWidgetSliderTab GClasses::GWidgetTextBox GClasses::GWidgetTextButton GClasses::GWidgetTextLabel GClasses::GWidgetTextTab GClasses::GWidgetVCRButton GClasses::GWidgetWave

Public Member Functions

 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 ()
 
virtual void draw (GImage *pCanvas, int x, int y)=0
 Draws this widget on pCanvas at (x,y) More...
 
int id ()
 
GWidgetGroupparent ()
 
GRectrect ()
 
void setPos (int x, int y)
 
virtual WidgetType type ()=0
 

Protected Member Functions

virtual void grab (int button, int x, int y)
 
virtual void release (int button)
 

Friends

class GWidgetDialog
 

Additional Inherited Members

- Public Types inherited from GClasses::GWidget
- Protected Attributes inherited from GClasses::GWidget
GWidgetCommonm_common
 
int m_nID
 
GWidgetGroupm_pParent
 
GRect m_rect
 

Constructor & Destructor Documentation

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

Member Function Documentation

virtual bool GClasses::GWidgetAtomic::isAtomic ( )
inlinevirtual

Implements GClasses::GWidget.

virtual bool GClasses::GWidgetAtomic::isClickable ( )
inlinevirtual

Reimplemented in GClasses::GWidgetGroupBox.

virtual void GClasses::GWidgetAtomic::onChar ( char  c)
virtual

Reimplemented in GClasses::GWidgetTextBox.

virtual void GClasses::GWidgetAtomic::onGetFocus ( )
inlinevirtual

Reimplemented in GClasses::GWidgetTextBox.

virtual void GClasses::GWidgetAtomic::onLoseFocus ( )
inlinevirtual

Reimplemented in GClasses::GWidgetTextBox.

virtual void GClasses::GWidgetAtomic::onMouseMove ( int  dx,
int  dy 
)
virtual
virtual void GClasses::GWidgetAtomic::onSpecialKey ( int  key)
virtual

Reimplemented in GClasses::GWidgetTextBox.

Friends And Related Function Documentation

friend class GWidgetDialog
friend