Woopsi 1.3
Nintendo DS Gui Framework
Public Member Functions
WoopsiUI::DamagedRectManager Class Reference

#include <libwoopsi/include/damagedrectmanager.h>

List of all members.

Public Member Functions

 DamagedRectManager (Gadget *gadget)
 ~DamagedRectManager ()
void addDamagedRect (const Rect &rect)
void redraw ()

Detailed Description

Manages damaged rects. Keeps a list of damaged rects and redraws them when redraw() is called.


Constructor & Destructor Documentation

WoopsiUI::DamagedRectManager::DamagedRectManager ( Gadget gadget)

Constructor.

Parameters:
gadgetThe top-level gadget. This should always be the Woopsi instance.
WoopsiUI::DamagedRectManager::~DamagedRectManager ( )

Destructor.


Member Function Documentation

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.

Parameters:
rectThe rect to add to the list.
void WoopsiUI::DamagedRectManager::redraw ( )

Redraws all damaged rects.


The documentation for this class was generated from the following file:
 All Classes Functions Variables Enumerations Enumerator