GClasses

GClasses::GWidgetSliderTab Class Reference

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

#include <GWidgets.h>

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

List of all members.

Public Types

enum  Style { ScrollBarTab, ScrollBarArea, SliderNub, SliderArea }

Public Member Functions

 GWidgetSliderTab (GWidgetGroup *pParent, int x, int y, int w, int h, bool vertical, Style eStyle)
virtual ~GWidgetSliderTab ()
virtual WidgetType type ()
virtual void draw (GImage *pCanvas, int x, int y)
 Draws this widget on pCanvas at (x,y)
void setSize (int w, int h)
 Changes the size of this widget.

Protected Member Functions

virtual void onMouseMove (int dx, int dy)
virtual void grab (int button, int x, int y)
virtual void release (int button)

Protected Attributes

bool m_vertical
Style m_eStyle

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.


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 
) [protected, virtual]

Reimplemented from GClasses::GWidgetAtomic.

virtual void GClasses::GWidgetSliderTab::onMouseMove ( int  dx,
int  dy 
) [protected, virtual]

Reimplemented from GClasses::GWidgetAtomic.

virtual void GClasses::GWidgetSliderTab::release ( int  button) [protected, virtual]

Reimplemented from GClasses::GWidgetAtomic.

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

Changes the size of this widget.

virtual WidgetType GClasses::GWidgetSliderTab::type ( ) [inline, virtual]

Implements GClasses::GWidget.


Member Data Documentation