GClasses
GClasses::GWidgetGroup Class Reference

Detailed Description

The base class of all widgets that are composed of other widgets.

#include <GWidgets.h>

Inheritance diagram for GClasses::GWidgetGroup:
GClasses::GWidget GClasses::GWidgetBulletGroup GClasses::GWidgetDialog GClasses::GWidgetFileSystemBrowser GClasses::GWidgetGrid GClasses::GWidgetHorizScrollBar GClasses::GWidgetHorizSlider GClasses::GWidgetVertScrollBar GClasses::GWidgetVertSlider

Public Member Functions

 GWidgetGroup (GWidgetGroup *pParent, int x, int y, int w, int h)
 
virtual ~GWidgetGroup ()
 
GWidgetchildWidget (int n)
 
int childWidgetCount ()
 
virtual GWidgetAtomicfindAtomicWidget (int x, int y)
 
virtual bool isAtomic ()
 
virtual void onCanvasMouseDown (GWidgetCanvas *pCanvas, int button, int x, int y)
 
virtual void onCanvasMouseMove (GWidgetCanvas *pCanvas, int x, int y, bool bPressed)
 
virtual void onCanvasMouseUp (GWidgetCanvas *pCanvas, int button, int x, int y)
 
virtual void onChangeCheckBox (GWidgetCheckBox *pCheckBox)
 
virtual void onChar (char c)
 
virtual void onCheckBulletHole (GWidgetBulletHole *pBullet)
 
virtual void onClickTab (GWidgetSliderTab *pTab)
 
virtual void onClickTextLabel (GWidgetTextLabel *pLabel)
 
virtual void onCustomEvent (GWidget *pWidget)
 
virtual void onDestroyWidget (GWidget *pWidget)
 
virtual void onHorizScroll (GWidgetHorizScrollBar *pScrollBar)
 
virtual void onHorizSliderMove (GWidgetHorizSlider *pSlider)
 
virtual void onPushTextButton (GWidgetTextButton *pButton)
 
virtual void onPushVCRButton (GWidgetVCRButton *pButton)
 
virtual void onReleaseImageButton (GWidgetImageButton *pButton)
 
virtual void onReleaseTextButton (GWidgetTextButton *pButton)
 
virtual void onSelectFilename (GWidgetFileSystemBrowser *pBrowser, const char *szFilename)
 
virtual void onSelectTextTab (GWidgetTextTab *pTab)
 
virtual void onSlideTab (GWidgetSliderTab *pTab, int dx, int dy)
 
virtual void onSpecialKey (int key)
 
virtual void onTextBoxPressEnter (GWidgetTextBox *pTextBox)
 
virtual void onTextBoxTextChanged (GWidgetTextBox *pTextBox)
 
virtual void onVertScroll (GWidgetVertScrollBar *pScrollBar)
 
virtual void onVertSliderMove (GWidgetVertSlider *pSlider)
 
virtual void tattle (GWidget *pChild)
 
- 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

void addWidget (GWidget *pWidget)
 
bool getDirtyBit (int nBit)
 
void setClean ()
 
void setDirtyBit (int nBit, bool bValue)
 

Protected Attributes

std::vector< unsigned int > m_dirtyBits
 
std::vector< GWidget * > m_dirtyChildren
 
std::vector< GWidget * > m_widgets
 
- Protected Attributes inherited from GClasses::GWidget
GWidgetCommonm_common
 
int m_nID
 
GWidgetGroupm_pParent
 
GRect m_rect
 

Friends

class GWidget
 
class GWidgetAtomic
 

Additional Inherited Members

- Public Types inherited from GClasses::GWidget

Constructor & Destructor Documentation

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

Member Function Documentation

void GClasses::GWidgetGroup::addWidget ( GWidget pWidget)
protected
GWidget* GClasses::GWidgetGroup::childWidget ( int  n)
int GClasses::GWidgetGroup::childWidgetCount ( )
virtual GWidgetAtomic* GClasses::GWidgetGroup::findAtomicWidget ( int  x,
int  y 
)
virtual

Reimplemented in GClasses::GWidgetGrid.

bool GClasses::GWidgetGroup::getDirtyBit ( int  nBit)
protected
virtual bool GClasses::GWidgetGroup::isAtomic ( )
inlinevirtual

Implements GClasses::GWidget.

virtual void GClasses::GWidgetGroup::onCanvasMouseDown ( GWidgetCanvas pCanvas,
int  button,
int  x,
int  y 
)
inlinevirtual
virtual void GClasses::GWidgetGroup::onCanvasMouseMove ( GWidgetCanvas pCanvas,
int  x,
int  y,
bool  bPressed 
)
inlinevirtual
virtual void GClasses::GWidgetGroup::onCanvasMouseUp ( GWidgetCanvas pCanvas,
int  button,
int  x,
int  y 
)
inlinevirtual
virtual void GClasses::GWidgetGroup::onChangeCheckBox ( GWidgetCheckBox pCheckBox)
inlinevirtual
virtual void GClasses::GWidgetGroup::onChar ( char  c)
inlinevirtual
virtual void GClasses::GWidgetGroup::onCheckBulletHole ( GWidgetBulletHole pBullet)
inlinevirtual

Reimplemented in GClasses::GWidgetBulletGroup.

virtual void GClasses::GWidgetGroup::onClickTab ( GWidgetSliderTab pTab)
inlinevirtual
virtual void GClasses::GWidgetGroup::onClickTextLabel ( GWidgetTextLabel pLabel)
inlinevirtual
virtual void GClasses::GWidgetGroup::onCustomEvent ( GWidget pWidget)
inlinevirtual
virtual void GClasses::GWidgetGroup::onDestroyWidget ( GWidget pWidget)
virtual

Reimplemented in GClasses::GWidgetDialog.

virtual void GClasses::GWidgetGroup::onHorizScroll ( GWidgetHorizScrollBar pScrollBar)
inlinevirtual

Reimplemented in GClasses::GWidgetGrid.

virtual void GClasses::GWidgetGroup::onHorizSliderMove ( GWidgetHorizSlider pSlider)
inlinevirtual
virtual void GClasses::GWidgetGroup::onPushTextButton ( GWidgetTextButton pButton)
inlinevirtual
virtual void GClasses::GWidgetGroup::onPushVCRButton ( GWidgetVCRButton pButton)
inlinevirtual
virtual void GClasses::GWidgetGroup::onReleaseImageButton ( GWidgetImageButton pButton)
inlinevirtual
virtual void GClasses::GWidgetGroup::onReleaseTextButton ( GWidgetTextButton pButton)
inlinevirtual
virtual void GClasses::GWidgetGroup::onSelectFilename ( GWidgetFileSystemBrowser pBrowser,
const char *  szFilename 
)
inlinevirtual
virtual void GClasses::GWidgetGroup::onSelectTextTab ( GWidgetTextTab pTab)
inlinevirtual
virtual void GClasses::GWidgetGroup::onSlideTab ( GWidgetSliderTab pTab,
int  dx,
int  dy 
)
inlinevirtual
virtual void GClasses::GWidgetGroup::onSpecialKey ( int  key)
inlinevirtual
virtual void GClasses::GWidgetGroup::onTextBoxPressEnter ( GWidgetTextBox pTextBox)
inlinevirtual
virtual void GClasses::GWidgetGroup::onTextBoxTextChanged ( GWidgetTextBox pTextBox)
inlinevirtual
virtual void GClasses::GWidgetGroup::onVertScroll ( GWidgetVertScrollBar pScrollBar)
inlinevirtual

Reimplemented in GClasses::GWidgetGrid.

virtual void GClasses::GWidgetGroup::onVertSliderMove ( GWidgetVertSlider pSlider)
inlinevirtual
void GClasses::GWidgetGroup::setClean ( )
protected
void GClasses::GWidgetGroup::setDirtyBit ( int  nBit,
bool  bValue 
)
protected
virtual void GClasses::GWidgetGroup::tattle ( GWidget pChild)
virtual

Friends And Related Function Documentation

friend class GWidget
friend
friend class GWidgetAtomic
friend

Member Data Documentation

std::vector<unsigned int> GClasses::GWidgetGroup::m_dirtyBits
protected
std::vector<GWidget*> GClasses::GWidgetGroup::m_dirtyChildren
protected
std::vector<GWidget*> GClasses::GWidgetGroup::m_widgets
protected