|
Public Member Functions |
| | CSlider (const CRect &size, CControlListener *listener, long tag, long iMinPos, long iMaxPos, CBitmap *handle, CBitmap *background, CPoint &offset, const long style=kLeft|kHorizontal) |
| | CSlider (const CRect &rect, CControlListener *listener, long tag, CPoint &offsetHandle, long rangeHandle, CBitmap *handle, CBitmap *background, CPoint &offset, const long style=kLeft|kHorizontal) |
| virtual | ~CSlider () |
| virtual bool | attached (CView *parent) |
| | view is attached to a parent view
|
| virtual bool | removed (CView *parent) |
| | view is removed from parent view
|
| virtual void | draw (CDrawContext *) |
| | called if the view should draw itself
|
| virtual void | mouse (CDrawContext *pContext, CPoint &where, long button=-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
|
| virtual long | onKeyDown (VstKeyCode &keyCode) |
| | called if a key down event occurs and this view has focus
|
| virtual void | setDrawTransparentHandle (bool val) |
| virtual void | setFreeClick (bool val) |
| virtual bool | getFreeClick () const |
| virtual void | setOffsetHandle (CPoint &val) |
| virtual void | setHandle (CBitmap *pHandle) |
| virtual CBitmap * | getHandle () const |
| virtual void | setZoomFactor (float val) |
| virtual float | getZoomFactor () const |
Protected Attributes |
| CPoint | offset |
| CPoint | offsetHandle |
| CBitmap * | pHandle |
| COffscreenContext * | pOScreen |
| long | style |
| CCoord | widthOfSlider |
| CCoord | heightOfSlider |
| CCoord | rangeHandle |
| CCoord | minTmp |
| CCoord | maxTmp |
| CCoord | minPos |
| CCoord | widthControl |
| CCoord | heightControl |
| float | zoomFactor |
| bool | bDrawTransparentEnabled |
| bool | bFreeClick |
Define a slider with a given background and handle. The range of variation of the handle should be defined. By default the handler is drawn with transparency (white color). By clicking Alt+Left Mouse the default value is used.