WoopsiUI::RectCache Class Reference
#include <rectcache.h>
List of all members.
Detailed Description
Maintains a list of foreground (ie. above children) and background (with child overlapped-rects removed) rectangles representing the visible portions of a gadget.
Constructor & Destructor Documentation
WoopsiUI::RectCache::RectCache |
( |
const Gadget * |
gadget |
) |
|
Constructor.
- Parameters:
-
| gadget | Gadget that contains the rect cache. |
WoopsiUI::RectCache::~RectCache |
( |
|
) |
[inline] |
Member Function Documentation
void WoopsiUI::RectCache::cache |
( |
|
) |
|
Rebuild the cache if it is invalid.
Return the list of background regions. These are regions that are not overlapped by child gadgets.
- Returns:
- The list of background regions.
Return the list of foreground regions. These are regions that represent the entire visible surface of the gadget, including any regions that are actually overlapped by child gadgets.
- Returns:
- The list of foreground regions.
void WoopsiUI::RectCache::invalidate |
( |
|
) |
[inline] |
Move any rectangles from the visibleRects list that overlap this gadget into the invisibleRects list. Used during visible region calculations.
- Parameters:
-
| visibleRects | A vector of regions that are not overlapped. |
| invisibleRects | A vector of regions that are overlapped. |
| gadget | The gadget that requested the lists. |
- See also:
- splitRectangles()
Works out which rectangles in the invalidRectangles list overlap this gadget, then cuts the rectangles into smaller pieces. The overlapping pieces are pushed into validRects, and the non-overlapping pieces are pushed back into the invalidRects vector.
- Parameters:
-
| invalidRectangles | A vector of regions that need to be tested for collisions against this gadget; they represent regions that need to be redrawn. |
| validRects | A vector of regions that represents areas of the display that do not need to be redrawn. |
| sender | Pointer to the gadget that initiated the split. |
The documentation for this class was generated from the following file:
- C:/Documents and Settings/Administrator/Desktop/woopsi-src-0.40/Woopsi/libwoopsi/include/rectcache.h