Esempio n. 1
0
/**\brief Tests if point is within a rectangle.
 */
bool Widget::Contains(int relx, int rely) {
    return WITHIN_BOUNDS(relx,rely,this->x,this->y,this->w,this->h);
}
Esempio n. 2
0
/**\brief Tests if point is within a rectangle.
 */
bool Widget::Contains(int relx, int rely) {
	return WITHIN_BOUNDS(relx, rely, x, y, w, h);
}