|
Public Types |
| enum | { kHorizontal,
kVertical
} |
Public Member Functions |
| | CScrollbar (const CRect &size, CControlListener *listener, long tag, long style, const CRect &scrollSize) |
| virtual | ~CScrollbar () |
| virtual void | setDrawer (IScrollbarDrawer *d) |
| virtual void | setScrollSize (const CRect &ssize) |
| virtual void | setStep (float newStep) |
| CRect & | getScrollSize (CRect &rect) const |
| float | getStep () const |
| virtual void | setFrameColor (const CColor &color) |
| virtual void | setScrollerColor (const CColor &color) |
| virtual void | setBackgroundColor (const CColor &color) |
| CColor | getFrameColor () const |
| CColor | getScrollerColor () const |
| CColor | getBackgroundColor () const |
| virtual void | draw (CDrawContext *pContext) |
| | called if the view should draw itself
|
| virtual void | mouse (CDrawContext *pContext, CPoint &where, long buttons=-1) |
| | called if a mouse click event occurs
|
| virtual bool | onWheel (CDrawContext *pContext, const CPoint &where, float distance) |
| | called if a mouse wheel event is happening over this view
|
Protected Member Functions |
| void | drawBackground (CDrawContext *pContext) |
| void | drawScroller (CDrawContext *pContext, const CRect &size) |
| void | calculateScrollerLength () |
| CRect | getScrollerRect () |
Protected Attributes |
| long | style |
| CRect | scrollSize |
| CRect | scrollerArea |
| float | stepValue |
| CCoord | scrollerLength |
| CColor | frameColor |
| CColor | scrollerColor |
| CColor | backgroundColor |
| IScrollbarDrawer * | drawer |