00001 #ifndef _SUPERBITMAP_H_
00002 #define _SUPERBITMAP_H_
00003
00004 #include <nds.h>
00005 #include "gadget.h"
00006 #include "graphics.h"
00007
00008 namespace WoopsiUI {
00009
00010 class Bitmap;
00011 class BitmapBase;
00012
00017 class SuperBitmap : public Gadget {
00018
00019 public:
00020
00033 SuperBitmap(s16 x, s16 y, u16 width, u16 height, u16 bitmapWidth, u16 bitmapHeight, bool isDecoration, FontBase* font = NULL);
00034
00039 Bitmap* getBitmap();
00040
00047 Graphics* getGraphics();
00048
00049
00055 virtual void draw(Rect clipRect);
00056
00060 virtual void clearBitmap();
00061
00069 virtual bool drag(s16 x, s16 y, s16 vX, s16 vY);
00070
00071 protected:
00072 s32 _bitmapX;
00073 s32 _bitmapY;
00074 Bitmap* _bitmap;
00075 Graphics* _graphics;
00080 virtual ~SuperBitmap();
00081
00085 inline SuperBitmap(const SuperBitmap& superBitmap) : Gadget(superBitmap) { };
00086 };
00087 }
00088
00089 #endif