Exemplo 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);
}
Exemplo 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);
}