wxregioniteratorthis class is used to iterate through the rectangles in a region, typically when examining the damaged regions of a window 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 wxpaintevent for an example of use. derived from include files <wx/region.h> see also members
wxregioniterator::wxregioniterator
wxregioniterator::wxregioniteratorwxregioniterator() default constructor. wxregioniterator(const wxregion& region) creates an iterator object given a region.
wxregioniterator::getxwxcoord getx() const returns the x value for the current region.
wxregioniterator::getywxcoord gety() const returns the y value for the current region.
wxregioniterator::getwwxcoord getw() const an alias for getwidth.
wxregioniterator::getheightwxcoord getheight() const returns the height value for the current region.
wxregioniterator::gethwxcoord geth() const an alias for getheight.
wxregioniterator::getrectwxrect getrect() const returns the current rectangle.
wxregioniterator::getwidthwxcoord getwidth() const returns the width value for the current region.
wxregioniterator::haverectsbool haverects() const returns true if there are still some rectangles; otherwise returns false.
wxregioniterator::resetvoid reset() resets the iterator to the beginning of the rectangles. void reset(const wxregion& region) resets the iterator to the given region.
wxregioniterator::operator ++void operator ++() increment operator. increments the iterator to the next region. wxpython note: a wxpython alias for this operator is called next.
wxregioniterator::operator booloperator bool() const returns true if there are still some rectangles; otherwise returns false. you can use this to test the iterator object as if it were of type bool.
|