GClasses
|
Makes a horizontal scroll bar. More...
#include <GWidgets.h>
Public Member Functions | |
GWidgetHorizScrollBar (GWidgetGroup *pParent, int x, int y, int w, int h, int nViewSize, int nModelSize) | |
virtual | ~GWidgetHorizScrollBar () |
virtual void | draw (GImage *pCanvas, int x, int y) |
Draws this widget on pCanvas at (x,y) More... | |
int | modelSize () |
Returns the current model size. More... | |
int | pos () |
Gets the current scroll position of this scroll bar. More... | |
void | setModelSize (int n) |
Sets the size of the model that this scroll bar represents (The size of the sliding tab is determined by the ratio of the size of the view over the size of the model) More... | |
void | setPos (int n) |
Sets the current scroll position. More... | |
void | setViewSize (int n) |
Sets the size of the view area that this scroll bar represents (The size of the sliding tab is determined by the ratio of the size of the view over the size of the model) More... | |
virtual WidgetType | type () |
int | viewSize () |
Returns the current view size. More... | |
![]() | |
GWidgetGroup (GWidgetGroup *pParent, int x, int y, int w, int h) | |
virtual | ~GWidgetGroup () |
GWidget * | childWidget (int n) |
int | childWidgetCount () |
virtual GWidgetAtomic * | findAtomicWidget (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 | 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) |
![]() | |
GWidget (GWidgetGroup *m_pParent, int x, int y, int w, int h) | |
virtual | ~GWidget () |
int | id () |
GWidgetGroup * | parent () |
GRect * | rect () |
void | setPos (int x, int y) |
Protected Member Functions | |
int | buttonWidth () |
virtual void | onClickTab (GWidgetSliderTab *pTab) |
virtual void | onPushVCRButton (GWidgetVCRButton *pButton) |
virtual void | onSlideTab (GWidgetSliderTab *pTab, int dx, int dy) |
![]() | |
void | addWidget (GWidget *pWidget) |
bool | getDirtyBit (int nBit) |
void | setClean () |
void | setDirtyBit (int nBit, bool bValue) |
Protected Attributes | |
int | m_nModelSize |
int | m_nPos |
int | m_nViewSize |
GWidgetVCRButton * | m_pLeftButton |
GWidgetSliderTab * | m_pLeftTab |
GWidgetVCRButton * | m_pRightButton |
GWidgetSliderTab * | m_pRightTab |
GWidgetSliderTab * | m_pTab |
![]() | |
std::vector< unsigned int > | m_dirtyBits |
std::vector< GWidget * > | m_dirtyChildren |
std::vector< GWidget * > | m_widgets |
![]() | |
GWidgetCommon * | m_common |
int | m_nID |
GWidgetGroup * | m_pParent |
GRect | m_rect |
Additional Inherited Members | |
![]() | |
enum | WidgetType { Animation, BulletGroup, BulletHole, Canvas, CheckBox, Custom, Dialog, FileSystemBrowser, Grid, GroupBox, HorizSlider, HScrollBar, PolarChart, ProgressBar, SliderTab, TextBox, TextButton, TextLabel, TextTab, VCRButton, VertSlider, VScrollBar, Wave } |
Makes a horizontal scroll bar.
GClasses::GWidgetHorizScrollBar::GWidgetHorizScrollBar | ( | GWidgetGroup * | pParent, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h, | ||
int | nViewSize, | ||
int | nModelSize | ||
) |
|
virtual |
|
protected |
|
virtual |
Draws this widget on pCanvas at (x,y)
Implements GClasses::GWidget.
|
inline |
Returns the current model size.
|
protectedvirtual |
Reimplemented from GClasses::GWidgetGroup.
|
protectedvirtual |
Reimplemented from GClasses::GWidgetGroup.
|
protectedvirtual |
Reimplemented from GClasses::GWidgetGroup.
|
inline |
Gets the current scroll position of this scroll bar.
void GClasses::GWidgetHorizScrollBar::setModelSize | ( | int | n | ) |
Sets the size of the model that this scroll bar represents (The size of the sliding tab is determined by the ratio of the size of the view over the size of the model)
void GClasses::GWidgetHorizScrollBar::setPos | ( | int | n | ) |
Sets the current scroll position.
void GClasses::GWidgetHorizScrollBar::setViewSize | ( | int | n | ) |
Sets the size of the view area that this scroll bar represents (The size of the sliding tab is determined by the ratio of the size of the view over the size of the model)
|
inlinevirtual |
Implements GClasses::GWidget.
|
inline |
Returns the current view size.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |