public bool ContainRect(Rectangle r) { return r.Left >= b_left && r.Top >= b_top && r.Right <= b_left + b_width && r.Bottom <= b_top + b_height; } public bool ContainRect(int x, int y, int width, int height)