GClasses
GClasses::GWidget Class Referenceabstract

Detailed Description

The base class of all GUI widgets.

#include <GWidgets.h>

Inheritance diagram for GClasses::GWidget:
GClasses::GWidgetAtomic GClasses::GWidgetGroup 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 GClasses::GWidgetBulletGroup GClasses::GWidgetDialog GClasses::GWidgetFileSystemBrowser GClasses::GWidgetGrid GClasses::GWidgetHorizScrollBar GClasses::GWidgetHorizSlider GClasses::GWidgetVertScrollBar GClasses::GWidgetVertSlider

Public Types

Public Member Functions

 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 ()
 
virtual bool isAtomic ()=0
 
GWidgetGroupparent ()
 
GRectrect ()
 
void setPos (int x, int y)
 
virtual WidgetType type ()=0
 

Protected Attributes

GWidgetCommonm_common
 
int m_nID
 
GWidgetGroupm_pParent
 
GRect m_rect
 

Friends

class GWidgetGrid
 
class GWidgetGroup
 

Member Enumeration Documentation

Enumerator
Animation 
BulletGroup 
BulletHole 
Canvas 
CheckBox 
Custom 
Dialog 
FileSystemBrowser 
Grid 
GroupBox 
HorizSlider 
HScrollBar 
PolarChart 
ProgressBar 
SliderTab 
TextBox 
TextButton 
TextLabel 
TextTab 
VCRButton 
VertSlider 
VScrollBar 
Wave 

Constructor & Destructor Documentation

GClasses::GWidget::GWidget ( GWidgetGroup m_pParent,
int  x,
int  y,
int  w,
int  h 
)
virtual GClasses::GWidget::~GWidget ( )
virtual

Member Function Documentation

int GClasses::GWidget::id ( )
inline
virtual bool GClasses::GWidget::isAtomic ( )
pure virtual
GWidgetGroup* GClasses::GWidget::parent ( )
inline
GRect* GClasses::GWidget::rect ( )
inline
void GClasses::GWidget::setPos ( int  x,
int  y 
)

Friends And Related Function Documentation

friend class GWidgetGrid
friend
friend class GWidgetGroup
friend

Member Data Documentation

GWidgetCommon* GClasses::GWidget::m_common
protected
int GClasses::GWidget::m_nID
protected
GWidgetGroup* GClasses::GWidget::m_pParent
protected
GRect GClasses::GWidget::m_rect
protected