00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef __CAUGUI_SELECTOR__
00011 #define __CAUGUI_SELECTOR__
00012
00013 #include "CAUGuiConfig.h"
00014
00015 #include "CAUGui.h"
00016
00017 class CAUGuiSelector;
00018
00019
00028 typedef void (*selectorUserProcedure)( UInt32 value, CAUGuiSelector* from, void* userData );
00029
00046 class CAUGuiSelector : public CAUGuiCtrl
00047 {
00048 public:
00049
00063 CAUGuiSelector ( CAUGuiMan* theChief,
00064 eRect* theWhere,
00065 UInt32 theRange,
00066 UInt32 theOrientation,
00067 CAUGuiGraphic* theForeGround,
00068 CAUGuiGraphic* theBackground);
00069
00071 virtual ~CAUGuiSelector ();
00072
00073 virtual void draw(CGContextRef context, UInt32 portHeight);
00074 virtual void mouseDown(Point *P, bool, bool);
00075 virtual void mouseTrack(Point *P, bool, bool);
00076 virtual void mouseUp(Point *P, bool, bool);
00077
00079 virtual void setUserProcedure ( selectorUserProcedure theProc, void* theUserData );
00080
00081 private:
00082
00083 UInt32 orientation;
00084 CAUGuiGraphic* ForeGround;
00085 CAUGuiGraphic* BackGround;
00086
00087 selectorUserProcedure userProcedure;
00088 void* userData;
00089
00090
00091 };
00092
00093
00094
00095
00096
00097
00098
00099
00100 #endif