|
Public Types |
| enum | { kHorizontalScrollbar = 1 << 1,
kVerticalScrollbar = 1 << 2
} |
Public Member Functions |
| | CScrollView (const CRect &size, const CRect &containerSize, CFrame *pParent, long style, long scrollbarWidth=16, CBitmap *pBackground=0) |
| virtual | ~CScrollView () |
| virtual void | setContainerSize (const CRect &cs) |
| | set the virtual size of this container
|
| virtual void | addView (CView *pView) |
| | add a child view
|
| virtual void | drawBackgroundRect (CDrawContext *pContext, CRect &_updateRect) |
| | draw the background
|
| virtual bool | onWheel (CDrawContext *pContext, const CPoint &where, const CMouseWheelAxis axis, float distance) |
| | called if a mouse wheel event is happening over this view
|
| virtual void | valueChanged (CDrawContext *pContext, CControl *pControl) |
| virtual CScrollbar * | getVerticalScrollbar () const |
| virtual CScrollbar * | getHorizontalScrollbar () const |
Protected Attributes |
| CScrollContainer * | sc |
| CScrollbar * | vsb |
| CScrollbar * | hsb |
| CRect | containerSize |
| long | style |