|
Rebel Fork Framework
|
Iterator that iterates through all elements of IntRect row-by-row. More...
#include <Urho3D/Math/Rect.h>
Public Member Functions | |
| IntRectIterator (const IntRect &rect, const IntVector2 &index) | |
| Construct valid. Iterators with different rectangles are incompatible. | |
| IntRectIterator & | operator++ () |
| Pre-increment. | |
| IntRectIterator | operator++ (int) |
| Post-increment. | |
| bool | operator== (const IntRectIterator &rhs) const |
| Compare for equality. | |
| bool | operator!= (const IntRectIterator &rhs) const |
| Compare for non-equality. | |
| const IntVector2 & | operator* () const |
| Dereference. | |
| const IntVector2 * | operator-> () const |
| Dereference. | |
Private Attributes | |
| IntRect | rect_ |
| Iterated rectangle. | |
| IntVector2 | index_ |
| Current index within rectangle. | |
Iterator that iterates through all elements of IntRect row-by-row.