- Main Page
- Classes
- Files

- File List

# C:/Documents and Settings/Administrator/Desktop/woopsi-src-0.39/Woopsi/woopsi/bitmapbutton.h

    00001 #ifndef _BITMAP_BUTTON_H_
    00002 #define _BITMAP_BUTTON_H_
    00003
    00004 #include <nds.h>
    00005 #include "gadget.h"
    00006
    00007 namespace WoopsiUI {
    00008
    00014         class BitmapButton : public Gadget {
    00015
    00016         public:
    00030                 BitmapButton(s16 x, s16 y, u16 width, u16 height, u16 bitmapX, u16 bitmapY, u16 bitmapWidth, u16 bitmapHeight, const u16* bitmapNormal, const u16* bitmapClicked);
    00031
    00036                 virtual void draw(Rect clipRect);
    00037
    00044                 virtual bool click(s16 x, s16 y);
    00045
    00052                 virtual bool release(s16 x, s16 y);
    00053
    00054         protected:
    00055                 const u16* _bitmapNormal;
    00056                 const u16* _bitmapClicked;
    00057                 u16 _bitmapWidth;
    00058                 u16 _bitmapHeight;
    00059                 u16 _bitmapX;
    00060                 u16 _bitmapY;
    00065                 virtual inline ~BitmapButton() { };
    00066
    00070                 inline BitmapButton(const BitmapButton& bitmapButton) : Gadget(bitmapButton) { };
    00071         };
    00072 }
    00073
    00074 #endif

All Classes Functions Variables Enumerations Enumerator