Contents Up Previous Next

wxUpdateIterator: wxObject

This class is used to iterate through all damaged regions of a canvas, panel or dialog box, within an OnPaint call.

To use it, construct an iterator object on the stack and loop through the regions, testing the object and incrementing the iterator at the end of the loop.

See wxCanvas::OnPaint for an example of use.

wxUpdateIterator::wxUpdateIterator
wxUpdateIterator::GetX
wxUpdateIterator::GetY
wxUpdateIterator::GetWidth
wxUpdateIterator::GetHeight
wxUpdateIterator::operator ++


wxUpdateIterator::wxUpdateIterator

void wxUpdateIterator(wxCanvas *canvas)

Creates an iterator object.


wxUpdateIterator::GetX

int GetX(void)

Returns the x value for the current region.


wxUpdateIterator::GetY

int GetY(void)

Returns the y value for the current region.


wxUpdateIterator::GetWidth

int GetWidth(void)

Returns the width value for the current region.


wxUpdateIterator::GetHeight

int GetWidth(void)

Returns the width value for the current region.


wxUpdateIterator::operator ++

void operator ++(void)

Increments the iterator to the next region.