GClasses
|
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>
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 |
This widget is not meant to be used by itself. It creates one of the parts of a scroll bar or slider bar.
GClasses::GWidgetSliderTab::GWidgetSliderTab | ( | GWidgetGroup * | pParent, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h, | ||
bool | vertical, | ||
Style | eStyle | ||
) |
virtual GClasses::GWidgetSliderTab::~GWidgetSliderTab | ( | ) | [virtual] |
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.
Style GClasses::GWidgetSliderTab::m_eStyle [protected] |
bool GClasses::GWidgetSliderTab::m_vertical [protected] |