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

CAUGuiMoreImages.h

Go to the documentation of this file.
00001 /*
00002  *  CAUGuiMoreImages.h
00003  *  CoreGraphics AudioUnit GUI framework
00004  *
00005  *  Created by Urs Heckmann on Sun Nov 03 2002.
00006  *  Copyright (c) 2002 __MyCompanyName__. All rights reserved.
00007  *
00008  */
00009 
00010 #include "CAUGuiTools.h"
00011 
00012 
00050 class CAUGuiSpinImage : public CAUGuiGraphic
00051 {
00052 public:
00053 
00065     CAUGuiSpinImage ( char* pngFileName, float min, float max, SInt32 pivotOffsetX, SInt32 pivotOffsetY, bool fixed );
00066     
00068     virtual ~CAUGuiSpinImage () {};
00069     
00070     virtual void            draw( CGContextRef context, UInt32 portHeight, eRect* rect, float value );
00071     
00073     virtual void            draw( CGContextRef context, UInt32 portHeight, eRect* rect, float value, SInt32 pivotOffsetX, SInt32 pivotOffsetY );
00074 
00075 private:
00076 
00077     float       startRad;
00078     float       allRad;
00079     float       pivotX;
00080     float       pivotY;
00081     bool        imageOrientationFixed; // for non-rotating handle Images
00082     
00083 
00084 };
00085 
00086 
00113 class CAUGuiHandleImage : public CAUGuiGraphic
00114 {
00115 public:
00116 
00125     CAUGuiHandleImage ( char* pngFileName, SInt32 pivotOffsetX, SInt32 pivotOffsetY );
00126     
00128     virtual ~CAUGuiHandleImage () {};
00129     
00130     virtual void            draw( CGContextRef context, UInt32 portHeight, eRect* rect, float value );
00131     
00132 
00133 private:
00134 
00135     SInt32      pivotX;
00136     SInt32      pivotY;
00137     
00138 
00139 };
00140 
00141 
00196 class CAUGuiCroppingImage : public CAUGuiGraphic
00197 {
00198 public:
00199 
00210     CAUGuiCroppingImage ( char* pngFileName, SInt32 pivotOffsetX, SInt32 pivotOffsetY, SInt32 theOrientation, UInt32 theMode );
00211     
00213     virtual ~CAUGuiCroppingImage () {};
00214     
00215     virtual void            draw( CGContextRef context, UInt32 portHeight, eRect* rect, float value );
00216     
00217 
00218 private:
00219 
00220     SInt32      pivotX;
00221     SInt32      pivotY;
00222     SInt32      orientation;
00223     UInt32      mode;
00224     
00225 
00226 };

(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