Woopsi 1.0 GUI Framework for Nintendo DS Homebrew

- Main Page
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

Public Member Functions

# WoopsiUI::DamagedRectManager Class Reference

`#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:

  gadget | The 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:

  rect | The 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:

- damagedrectmanager.h