Woopsi 1.3
Nintendo DS Gui Framework
libwoopsi/include/sliderhorizontalgrip.h
00001 #ifndef _SLIDER_HORIZONTAL_GRIP_H_
00002 #define _SLIDER_HORIZONTAL_GRIP_H_
00003 
00004 #include <nds.h>
00005 #include "gadget.h"
00006 
00007 namespace WoopsiUI {
00008 
00013     class SliderHorizontalGrip : public Gadget {
00014 
00015     public:
00016         
00024         SliderHorizontalGrip(s16 x, s16 y, u16 width, u16 height);
00025 
00026     protected:
00027 
00034         virtual void drawContents(GraphicsPort* port);
00035 
00042         virtual void drawBorder(GraphicsPort* port);
00043 
00049         virtual void onClick(s16 x, s16 y);
00050         
00056         virtual void onRelease(s16 x, s16 y);
00057         
00063         virtual void onReleaseOutside(s16 x, s16 y);
00064         
00072         virtual void onDrag(s16 x, s16 y, s16 vX, s16 vY);
00073 
00077         virtual inline ~SliderHorizontalGrip() { };
00078 
00082         inline SliderHorizontalGrip(const SliderHorizontalGrip& sliderHorizontalGrip) : Gadget(sliderHorizontalGrip) { };
00083     };
00084 }
00085 
00086 #endif
 All Classes Functions Variables Enumerations Enumerator