00001 #ifndef _BUTTON_H_ 00002 #define _BUTTON_H_ 00003 00004 #include <nds.h> 00005 #include "label.h" 00006 00007 namespace WoopsiUI { 00008 00012 class Button : public Label { 00013 public: 00014 00024 Button(s16 x, s16 y, u16 width, u16 height, const char* text, FontBase* font = NULL); 00025 00035 Button(s16 x, s16 y, u16 width, u16 height, char letter, FontBase* font = NULL); 00036 00042 virtual void draw(Rect clipRect); 00043 00050 virtual bool click(s16 x, s16 y); 00051 00058 virtual bool release(s16 x, s16 y); 00059 00060 protected: 00061 00065 virtual inline ~Button() { }; 00066 00070 inline Button(const Button& button) : Label(button) { }; 00071 }; 00072 } 00073 00074 #endif