Public Member Functions | |
| ScrollBar (Window *pParent, const Rect rFrame, unsigned int nWindowLayoutFlags, bool bHorizontal) | |
| ~ScrollBar () | |
| void | Paint (const Rect &rDirty) |
| Point | GetSizeHint (enumSizeHint nSizeHint) |
| bool | IsVertical () |
| bool | IsHorizontal () |
| Rect | GetIndicatorRect () |
| void | SetMinMax (int iMin, int iMax) |
| void | SetStep (int iSingle, int iPage) |
| void | MouseDown (const InputEvent &nInputEvent) |
| void | MouseUp (const InputEvent &nInputEvent) |
| void | MouseMove (const InputEvent &nInputEvent) |
| void | MouseLeave (const InputEvent &nInputEvent) |
| void | OnTimer (int iTimerID, void *vpCookie) |
| void | SetValue (int iValue) |
| int | GetValue () |
| void | Sized (const Point &cPos) |
Public Attributes | |
| signal2< int, int > | Changed |
| ScrollBar::ScrollBar | ( | Window * | pParent, | |
| const Rect | rFrame, | |||
| unsigned int | nWindowLayoutFlags, | |||
| bool | bHorizontal | |||
| ) |
| ScrollBar::~ScrollBar | ( | ) |
| void ScrollBar::Paint | ( | const Rect & | rDirty | ) | [virtual] |
Paint window content
| rDirty | - Dirty rectangular region which has to be redrawn. Prior entering this function the painters clip region is automatically set to this dirty region. |
Reimplemented from SkyGI::Window.
| Point ScrollBar::GetSizeHint | ( | enumSizeHint | nSizeHint | ) | [virtual] |
Get size hint
Reimplemented from SkyGI::Window.
| bool ScrollBar::IsVertical | ( | ) |
| bool ScrollBar::IsHorizontal | ( | ) |
| Rect ScrollBar::GetIndicatorRect | ( | ) |
| void ScrollBar::SetMinMax | ( | int | iMin, | |
| int | iMax | |||
| ) |
| void ScrollBar::SetStep | ( | int | iSingle, | |
| int | iPage | |||
| ) |
| void ScrollBar::MouseDown | ( | const InputEvent & | nInputEvent | ) | [virtual] |
Mouse pressed
| nButton | - MouseButton which was pressed | |
| nMouseButtonMask | - Mask showing which mouse buttons were pressed when the mouse press occured | |
| nInputEvent | - INPUT_EVENT_MOUSE_PRESS for a single and INPUTE_EVENT_MOUSE_DOUBLECLICK for a doubleclick |
Reimplemented from SkyGI::Window.
| void ScrollBar::MouseUp | ( | const InputEvent & | nInputEvent | ) | [virtual] |
Mouse release
| nButton | - MouseButton which was released | |
| nMouseButtonMask | - Mask showing which additional mouse buttons were pressed when the mouse release occured | |
| nInputEvent | - INPUT_EVENT_MOUSE_RELEASE |
Reimplemented from SkyGI::Window.
| void ScrollBar::MouseMove | ( | const InputEvent & | nInputEvent | ) | [virtual] |
Mouse move
| pNewPosition | - Current mouse cursor position | |
| pOldPosition | - Old mouse cursor position | |
| nMouseButtonMask | - Mask showing which mouse buttons were pressed when the mouse move occured |
Reimplemented from SkyGI::Window.
| void ScrollBar::MouseLeave | ( | const InputEvent & | nInputEvent | ) | [virtual] |
Mouse leave
| pPosLeave | - Position the mouse cursor leaved the window at | |
| nMouseButtonMask | - Mask showing which mouse buttons were pressed when the mouse leave occured |
Reimplemented from SkyGI::Window.
| void ScrollBar::OnTimer | ( | int | iTimerID, | |
| void * | vpCookie | |||
| ) | [virtual] |
Reimplemented from SkyGI::Window.
| void ScrollBar::SetValue | ( | int | iValue | ) |
| int ScrollBar::GetValue | ( | ) |
| void ScrollBar::Sized | ( | const Point & | cPos | ) | [virtual] |
Called when window is resized
| pDelta | - Size the window was resized |
Reimplemented from SkyGI::Window.
| signal2<int, int> SkyGI::ScrollBar::Changed |
Emitted when scoll position has changed
| iValue | New scroll value | |
| iOldValue | Old scroll value |
1.5.1-p1