00001 #ifndef _DECORATION_GLYPH_BUTTON_H_ 00002 #define _DECORATION_GLYPH_BUTTON_H_ 00003 00004 #include <nds.h> 00005 #include "button.h" 00006 00007 namespace WoopsiUI { 00008 00014 class DecorationGlyphButton : public Button { 00015 00016 public: 00027 DecorationGlyphButton(s16 x, s16 y, u16 width, u16 height, char normalGlyph, char clickedGlyph, FontBase* font = NULL); 00028 00033 virtual void draw(Rect clipRect); 00034 00039 virtual bool focus(); 00040 00041 protected: 00042 char _normalGlyph; 00043 char _clickedGlyph; 00048 virtual inline ~DecorationGlyphButton() { }; 00049 00053 inline DecorationGlyphButton(const DecorationGlyphButton& decorationGlyphButton) : Button(decorationGlyphButton) { }; 00054 }; 00055 } 00056 00057 #endif