Woopsi 1.0 GUI Framework for Nintendo DS Homebrew

- Main Page
- Classes
- Files

- File List

# damagedrectmanager.h

    00001 #ifndef _DAMAGED_RECT_MANAGER_
    00002 #define _DAMAGED_RECT_MANAGER_
    00003
    00004 #include "woopsiarray.h"
    00005 #include "rect.h"
    00006
    00007 namespace WoopsiUI {
    00008
    00009         class Gadget;
    00010
    00015         class DamagedRectManager {
    00016         public:
    00017
    00023                 DamagedRectManager(Gadget* gadget);
    00024
    00028                 ~DamagedRectManager();
    00029
    00036                 void addDamagedRect(const Rect& rect);
    00037
    00041                 void redraw();
    00042
    00043         private:
    00044                 WoopsiArray<Rect>* _damagedRects;
    00045                 Gadget* _gadget;
    00053                 void drawRects(Gadget* gadget, WoopsiArray<Rect>* damagedRects);
    00054         };
    00055 }
    00056
    00057 #endif