00001
00002
00003
00004
00005
00006
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;
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 };