8#ifndef MALENA_IMAGERECTS_H
9#define MALENA_IMAGERECTS_H
43 std::vector<sf::IntRect> _intRects;
80 RowProxy
operator[](
int row)
const {
return {*
this, row}; }
const sf::IntRect & getIntRect(int row, int col) const
Return the rect for a given row and column.
RowProxy operator[](int row) const
Row-indexed access — returns a proxy for column subscript.
ImageRects(int cols)
Construct an empty ImageRects with a known column count.
void push(const sf::IntRect &int_rect)
Append a rect to the collection.