#include <vstcontrols.h>
Inheritance diagram for CKnob:
Public Member Functions | |
CKnob (const CRect &size, CControlListener *listener, long tag, CBitmap *background, CBitmap *handle, const CPoint &offset) | |
virtual | ~CKnob () |
virtual void | draw (CDrawContext *pContext) |
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 | drawHandle (CDrawContext *pContext) |
virtual void | setStartAngle (float val) |
virtual float | getStartAngle () const |
virtual void | setRangeAngle (float val) |
virtual float | getRangeAngle () const |
virtual void | valueToPoint (CPoint &point) const |
virtual float | valueFromPoint (CPoint &point) const |
virtual void | setInsetValue (long val) |
virtual void | setColorShadowHandle (CColor color) |
virtual void | setColorHandle (CColor color) |
virtual void | setHandleBitmap (CBitmap *bitmap) |
virtual void | setZoomFactor (float val) |
virtual float | getZoomFactor () const |
Protected Member Functions | |
void | compute () |
Protected Attributes | |
CPoint | offset |
CColor | colorHandle |
CColor | colorShadowHandle |
CBitmap * | pHandle |
long | inset |
float | startAngle |
float | rangeAngle |
float | halfAngle |
float | aCoef |
float | bCoef |
float | radius |
float | zoomFactor |
Define a knob with a given background and foreground handle. The handle describes a circle over the background (between -45deg and +225deg). By clicking Alt+Left Mouse the default value is used. By clicking Alt+Left Mouse the value changes with a vertical move (version 2.1)
|
|
|
|
|
|
|
called if the view should draw itself
Implements CControl. Reimplemented in CAnimKnob. |
|
|
|
|
|
|
|
|
|
called if a mouse click event occurs
Reimplemented from CView. |
|
called if a key down event occurs and this view has focus
Reimplemented from CView. |
|
called if a mouse wheel event is happening over this view
Reimplemented from CView. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|