GClasses
GClasses::GWidgetHorizSlider Class Reference

#include <GWidgets.h>

Inheritance diagram for GClasses::GWidgetHorizSlider:
GClasses::GWidgetGroup GClasses::GWidget

Public Member Functions

 GWidgetHorizSlider (GWidgetGroup *pParent, int x, int y, int w, int h)
 
virtual ~GWidgetHorizSlider ()
 
virtual void draw (GImage *pCanvas, int x, int y)
 Draws this widget on pCanvas at (x,y) More...
 
float pos ()
 
void setPos (float f)
 
virtual WidgetType type ()
 
- Public Member Functions inherited from GClasses::GWidgetGroup
 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 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 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 ()
 
int id ()
 
GWidgetGroupparent ()
 
GRectrect ()
 
void setPos (int x, int y)
 

Protected Member Functions

virtual void onClickTab (GWidgetSliderTab *pTab)
 
virtual void onSlideTab (GWidgetSliderTab *pTab, int dx, int dy)
 
- Protected Member Functions inherited from GClasses::GWidgetGroup
void addWidget (GWidget *pWidget)
 
bool getDirtyBit (int nBit)
 
void setClean ()
 
void setDirtyBit (int nBit, bool bValue)
 

Protected Attributes

bool m_dirty
 
float m_fPos
 
GWidgetSliderTabm_pLeftTab
 
GWidgetSliderTabm_pRightTab
 
GWidgetSliderTabm_pTab
 
- Protected Attributes inherited from GClasses::GWidgetGroup
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
 

Additional Inherited Members

- Public Types inherited from GClasses::GWidget

Constructor & Destructor Documentation

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

Member Function Documentation

virtual void GClasses::GWidgetHorizSlider::draw ( GImage pCanvas,
int  x,
int  y 
)
virtual

Draws this widget on pCanvas at (x,y)

Implements GClasses::GWidget.

virtual void GClasses::GWidgetHorizSlider::onClickTab ( GWidgetSliderTab pTab)
protectedvirtual

Reimplemented from GClasses::GWidgetGroup.

virtual void GClasses::GWidgetHorizSlider::onSlideTab ( GWidgetSliderTab pTab,
int  dx,
int  dy 
)
protectedvirtual

Reimplemented from GClasses::GWidgetGroup.

float GClasses::GWidgetHorizSlider::pos ( )
inline
void GClasses::GWidgetHorizSlider::setPos ( float  f)
virtual WidgetType GClasses::GWidgetHorizSlider::type ( )
inlinevirtual

Implements GClasses::GWidget.

Member Data Documentation

bool GClasses::GWidgetHorizSlider::m_dirty
protected
float GClasses::GWidgetHorizSlider::m_fPos
protected
GWidgetSliderTab* GClasses::GWidgetHorizSlider::m_pLeftTab
protected
GWidgetSliderTab* GClasses::GWidgetHorizSlider::m_pRightTab
protected
GWidgetSliderTab* GClasses::GWidgetHorizSlider::m_pTab
protected