55 #ifndef GCN_RECTANGLE_HPP
56 #define GCN_RECTANGLE_HPP
82 Rectangle(
int x,
int y,
int width,
int height);
92 void setAll(
int x,
int y,
int width,
int height);
99 bool intersect(
const Rectangle& rectangle);
102 return !(rectangle.
x > x + width ||
103 rectangle.
y > y + height ||
104 x > rectangle.
x + rectangle.
width ||
105 y > rectangle.
y + rectangle.
height);
114 bool isPointInRect(
int x,
int y)
const;
123 #endif // end GCN_RECTANGEL_HPP
bool intersect(const Rectangle &rectangle) const
Definition: rectangle.h:100
int height
Definition: rectangle.h:119
int width
Definition: rectangle.h:118
int y
Definition: rectangle.h:117
int x
Definition: rectangle.h:116
Definition: cliprectangle.cpp:61
Definition: rectangle.h:65