GClasses
GClasses::GWidgetWave Class Reference

#include <GWidgets.h>

Inheritance diagram for GClasses::GWidgetWave:
GClasses::GWidgetAtomic GClasses::GWidget

Public Member Functions

 GWidgetWave (GWidgetGroup *pParent, int x, int y, int w, int h)
 
virtual ~GWidgetWave ()
 
virtual void draw (GImage *pCanvas, int x, int y)
 Draws this widget on pCanvas at (x,y) More...
 
int pos ()
 
void setDirty ()
 
void setRange (int pos, int width)
 
void setWave (GWave *pWave)
 
virtual WidgetType type ()
 
int width ()
 
- 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 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 onMouseMove (int dx, int dy)
 
virtual void release (int button)
 

Protected Attributes

int m_pos
 
GWavem_pWave
 
int m_selectionPos
 
int m_selectionWidth
 
int m_width
 
- 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::GWidgetWave::GWidgetWave ( GWidgetGroup pParent,
int  x,
int  y,
int  w,
int  h 
)
virtual GClasses::GWidgetWave::~GWidgetWave ( )
virtual

Member Function Documentation

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

Draws this widget on pCanvas at (x,y)

Implements GClasses::GWidget.

virtual void GClasses::GWidgetWave::grab ( int  button,
int  x,
int  y 
)
protectedvirtual

Reimplemented from GClasses::GWidgetAtomic.

virtual void GClasses::GWidgetWave::onMouseMove ( int  dx,
int  dy 
)
protectedvirtual

Reimplemented from GClasses::GWidgetAtomic.

int GClasses::GWidgetWave::pos ( )
inline
virtual void GClasses::GWidgetWave::release ( int  button)
protectedvirtual

Reimplemented from GClasses::GWidgetAtomic.

void GClasses::GWidgetWave::setDirty ( )
void GClasses::GWidgetWave::setRange ( int  pos,
int  width 
)
void GClasses::GWidgetWave::setWave ( GWave pWave)
virtual WidgetType GClasses::GWidgetWave::type ( )
inlinevirtual

Implements GClasses::GWidget.

int GClasses::GWidgetWave::width ( )
inline

Member Data Documentation

int GClasses::GWidgetWave::m_pos
protected
GWave* GClasses::GWidgetWave::m_pWave
protected
int GClasses::GWidgetWave::m_selectionPos
protected
int GClasses::GWidgetWave::m_selectionWidth
protected
int GClasses::GWidgetWave::m_width
protected