21 Rectangle2(
int x,
int y,
int width,
int height)
26 this->height = height;
29 : x(0), y(0), width( width ), height( height )
32 bool contains(
const Point2& p)
34 return this->contains(p.x, p.y);
36 bool contains(
int x,
int y)
68 return ((w < x || w > X) &&
73 setBounds(r.x, r.y, r.width, r.height);
76 void setBounds(
int x,
int y,
int width,
int height) {
77 reshape(x, y, width, height);
80 void reshape(
int x,
int y,
int width,
int height) {
84 this->height = height;