A class to represent rectangles, like regions of an image. More...
#include <Base.h>
Public Member Functions | |
| Rect () | |
| Construct a size zero rectangle at the origin. | |
| Rect (int x_, int y_, int w_, int h_) | |
| Construct a rectangle with the given x, y, width, and height. | |
| bool | operator== (const Rect &other) const |
| Compare two rectangles for equality. | |
| bool | operator!= (const Rect &other) const |
| Compare two rectangles for equality. | |
Public Attributes | |
| int | x |
| The x coord of the top left corner. | |
| int | y |
| The y coord of the top left corner. | |
| int | width |
| The width of the rectangle. | |
| int | height |
| The height of the rectangle. | |
A class to represent rectangles, like regions of an image.
Definition at line 80 of file Base.h.
1.7.1