00001
00002
00003
00004
00005
00006
00007
00008
00009
00058 #ifndef __CAUGUI_KNOB__
00059 #define __CAUGUI_KNOB__
00060
00061 #include "CAUGuiConfig.h"
00062
00063 #include "CAUGui.h"
00064
00065
00066 class CAUGuiKnob : public CAUGuiCtrl
00067 {
00068 public:
00069
00084 CAUGuiKnob ( CAUGuiMan* theChief,
00085 CAAUParameter &theAuvp,
00086 eRect* theWhere,
00087 CAUGuiResolution theRes,
00088 CAUGuiGraphic* theForeGround,
00089 CAUGuiGraphic* theBackground);
00090
00092 virtual ~CAUGuiKnob ();
00093
00094 virtual void draw(CGContextRef context, UInt32 portHeight);
00095 virtual void mouseDown(Point *P, bool, bool);
00096 virtual void mouseTrack(Point *P, bool, bool);
00097 virtual void mouseUp(Point *P, bool, bool);
00098
00100 virtual void setCenter ( SInt32 x, SInt32 y ) { centerX = x; centerY = y; }
00101
00102 private:
00103
00104 float getValueFromPoint(Point* P);
00105
00106 SInt32 centerX;
00107 SInt32 centerY;
00108
00109 CAUGuiGraphic* ForeGround;
00110 CAUGuiGraphic* BackGround;
00111
00112
00113 };
00114
00115
00116 #endif
00117
00118
00119
00120
00121