Iterates over all map tiles that intersect with a rectangle in GUI coordinates.
bool has_edge() const
Checks whether the current iteration point has an edge.
gui_rect_iterator(const struct tileset *t, const QRect &rect)
Constructor.
bool has_corner() const
Checks whether the current iteration point has a corner.
const ::tile * tile() const
Retrieves the current tile. Only valid if has_tile is true.
int y() const
Retrieves the y position of the current item.
const tile_corner & corner() const
Retrieves the current corner. Only valid if has_corner is true.
int x() const
Retrieves the x position of the current item.
const tile_edge & edge() const
Retrieves the current edge. Only valid if has_edge is true.
bool has_tile() const
Checks whether the current iteration point has a non-null tile.
bool next()
Iterates to the next item.