Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

CAUGuiKnob.h

Go to the documentation of this file.
00001 /*
00002  *  CAUGuiKnob.h
00003  *  CoreGraphics AudioUnit GUI framework
00004  *
00005  *  Created by Urs Heckmann on Sun Oct 20 2002.
00006  *  Copyright (c) 2002 __MyCompanyName__. All rights reserved.
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 

(c) 2002 - 2003 by Urs Heckmann www.u-he.com
Generated on Thu May 6 15:13:14 2004 for CAUGui by doxygen 1.3.6