22 #ifndef DGDS_DGDS_RECT_H 23 #define DGDS_DGDS_RECT_H 25 #include "common/str.h" 26 #include "common/rect.h" 34 DgdsRect(): x(0), y(0), width(0), height(0) {}
35 DgdsRect(
int x_,
int y_,
int width_,
int height_): x(x_), y(y_), width(width_), height(height_) {}
42 bool contains(
const Common::Point &pt)
const {
return pt.
x >= x && pt.
x < (x + width) && pt.
y >= y && pt.
y < (y + height); }
48 #endif // DGDS_DGDS_RECT_H
Definition: dgds_rect.h:32
int16 x
Definition: rect.h:46
int16 y
Definition: rect.h:47