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

CAUGuiDisplay.h

Go to the documentation of this file.
00001 /*
00002  *  CAUGuiDisplay.h
00003  *  CoreGraphics AudioUnit GUI framework
00004  *
00005  *  Created by Urs Heckmann on Sun Oct 27 2002.
00006  *  Copyright (c) 2002 __MyCompanyName__. All rights reserved.
00007  *
00008  */
00009  
00010 
00011 
00012 #ifndef __CAUGUI_DISPLAY__
00013 #define __CAUGUI_DISPLAY__
00014 
00015 #include "CAUGuiConfig.h"
00016 
00017 #include "CAUGui.h"
00018 
00019 class CAUGuiDisplay;
00020 
00028 typedef void (*displayTextProcedure)( UInt32 value, char* text, void* userData );
00029 
00037 typedef void (*displayUserProcedure)( UInt32 value, CAUGuiDisplay* from, void* userData );
00038 
00088 class CAUGuiDisplay : public CAUGuiCtrl
00089 {
00090 public:
00091 
00106     CAUGuiDisplay       (   CAUGuiMan*              theChief,
00107                             CAAUParameter           &theAuvp, 
00108                             eRect*                  theWhere,
00109                             CAUGuiResolution        theRes, 
00110                             CAUGuiGraphic*          theForeGround, 
00111                             CAUGuiGraphic*          theBackground);
00112     
00126     CAUGuiDisplay       (   CAUGuiMan*              theChief,
00127                             CAAUParameter           &theAuvp, 
00128                             eRect*                  theWhere,
00129                             CAUGuiResolution        theRes, 
00130                             displayTextProcedure    aTexter, 
00131                             void*                   userDData,
00132                             CAUGuiGraphic*          theBackground);
00134     virtual ~CAUGuiDisplay ();
00135 
00136     virtual void draw(CGContextRef context, UInt32 portHeight);
00137     virtual void mouseDown(Point *P, bool, bool);
00138     virtual void mouseTrack(Point *P, bool, bool);
00139     virtual void mouseUp(Point *P, bool, bool);
00140     
00142     virtual void setUserProcedure ( displayUserProcedure theProc, void* theUserData );
00143     
00144     virtual void    mouseRight(Point *P);
00145     
00151     virtual void    generatePopUpMenue();
00152     
00153 private:
00154         
00155     CAUGuiGraphic*          ForeGround;
00156     CAUGuiGraphic*          BackGround;
00157     displayTextProcedure    theTexter;
00158     void*                   theUserData;
00159     bool                    hasText;
00160     
00161     displayUserProcedure    userProcedure;
00162     void*                   userData;
00163     
00164     MenuRef                 popUp;
00165     
00166 };
00167 
00168 
00169 #endif

(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