|
Woopsi 1.0
GUI Framework for Nintendo DS Homebrew
|
#include <damagedrectmanager.h>
Public Member Functions | |
| DamagedRectManager (Gadget *gadget) | |
| ~DamagedRectManager () | |
| void | addDamagedRect (const Rect &rect) |
| void | redraw () |
Manages damaged rects. Keeps a list of damaged rects and redraws them when redraw() is called.
| WoopsiUI::DamagedRectManager::DamagedRectManager | ( | Gadget * | gadget | ) |
Constructor.
| gadget | The top-level gadget. This should always be the Woopsi instance. |
| WoopsiUI::DamagedRectManager::~DamagedRectManager | ( | ) |
Destructor.
| void WoopsiUI::DamagedRectManager::addDamagedRect | ( | const Rect & | rect | ) |
Add a damaged rect to the list. The method automatically clips and splits the rect to ensure that only new regions are added to the list.
| rect | The rect to add to the list. |
| void WoopsiUI::DamagedRectManager::redraw | ( | ) |
Redraws all damaged rects.
1.7.3