GClasses
GClasses::GWidgetSliderTab Class Reference

Detailed Description

This widget is not meant to be used by itself. It creates one of the parts of a scroll bar or slider bar.

#include <GWidgets.h>

Inheritance diagram for GClasses::GWidgetSliderTab:
GClasses::GWidgetAtomic GClasses::GWidget

Public Types

- Public Types inherited from GClasses::GWidget

Public Member Functions

 GWidgetSliderTab (GWidgetGroup *pParent, int x, int y, int w, int h, bool vertical, Style eStyle)
 
virtual ~GWidgetSliderTab ()
 
virtual void draw (GImage *pCanvas, int x, int y)
 Draws this widget on pCanvas at (x,y) More...
 
void setSize (int w, int h)
 Changes the size of this widget. More...
 
virtual WidgetType type ()
 
- 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

Style m_eStyle
 
bool m_vertical
 
- Protected Attributes inherited from GClasses::GWidget
GWidgetCommonm_common
 
int m_nID
 
GWidgetGroupm_pParent
 
GRect m_rect
 

Member Enumeration Documentation

Enumerator
ScrollBarTab 
ScrollBarArea 
SliderNub 
SliderArea 

Constructor & Destructor Documentation

GClasses::GWidgetSliderTab::GWidgetSliderTab ( GWidgetGroup pParent,
int  x,
int  y,
int  w,
int  h,
bool  vertical,
Style  eStyle 
)
virtual GClasses::GWidgetSliderTab::~GWidgetSliderTab ( )
virtual

Member Function Documentation

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

Draws this widget on pCanvas at (x,y)

Implements GClasses::GWidget.

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

Reimplemented from GClasses::GWidgetAtomic.

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

Reimplemented from GClasses::GWidgetAtomic.

virtual void GClasses::GWidgetSliderTab::release ( int  button)
protectedvirtual

Reimplemented from GClasses::GWidgetAtomic.

void GClasses::GWidgetSliderTab::setSize ( int  w,
int  h 
)

Changes the size of this widget.

virtual WidgetType GClasses::GWidgetSliderTab::type ( )
inlinevirtual

Implements GClasses::GWidget.

Member Data Documentation

Style GClasses::GWidgetSliderTab::m_eStyle
protected
bool GClasses::GWidgetSliderTab::m_vertical
protected