Woopsi 1.3
Nintendo DS Gui Framework
libwoopsi/include/damagedrectmanager.h
00001 #ifndef _DAMAGED_RECT_MANAGER_
00002 #define _DAMAGED_RECT_MANAGER_
00003 
00004 #include "rect.h"
00005 #include "woopsiarray.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
 All Classes Functions Variables Enumerations Enumerator