- Main Page
- Classes
- Files

- File List

# superbitmap.h

    00001 #ifndef _SUPERBITMAP_H_
    00002 #define _SUPERBITMAP_H_
    00003
    00004 #include <nds.h>
    00005 #include "gadget.h"
    00006 #include "graphics.h"
    00007 #include "gadgetstyle.h"
    00008
    00009 namespace WoopsiUI {
    00010
    00011         class Bitmap;
    00012         class BitmapBase;
    00013
    00018         class SuperBitmap : public Gadget {
    00019
    00020         public:
    00021
    00037                 SuperBitmap(s16 x, s16 y, u16 width, u16 height, u16 bitmapWidth, u16 bitmapHeight, bool isDecoration, GadgetStyle* style = NULL);
    00038
    00043                 Bitmap* getBitmap();
    00044
    00051                 Graphics* getGraphics();
    00052
    00056                 virtual void clearBitmap();
    00057
    00058         protected:
    00059                 s32 _bitmapX;
    00060                 s32 _bitmapY;
    00061                 Bitmap* _bitmap;
    00062                 Graphics* _graphics;
    00070                 virtual void drawContents(GraphicsPort* port);
    00071
    00078                 virtual void drawBorder(GraphicsPort* port);
    00079
    00087                 virtual void onDrag(s16 x, s16 y, s16 vX, s16 vY);
    00088
    00094                 virtual void onClick(s16 x, s16 y);
    00095
    00099                 virtual ~SuperBitmap();
    00100
    00104                 inline SuperBitmap(const SuperBitmap& superBitmap) : Gadget(superBitmap) { };
    00105         };
    00106 }
    00107
    00108 #endif