- bool operator == (const wxRect& rect) const;
- bool operator != (const wxRect& rect) const { return !(*this == rect); }
+ void SetLeft(int left) { x = left; }
+ void SetRight(int right) { width = right - x + 1; }
+ void SetTop(int top) { y = top; }
+ void SetBottom(int bottom) { height = bottom - y + 1; }
+
+ void Inflate(wxCoord dx, wxCoord dy)
+ {
+ x -= dx;
+ y -= dy;
+ width += 2*dx;
+ height += 2*dy;
+ }
+
+ void Inflate(wxCoord d) { Inflate(d, d); }
+
+ bool operator==(const wxRect& rect) const;
+ bool operator!=(const wxRect& rect) const { return !(*this == rect); }
+
+ bool Inside(int cx, int cy) const;
+ bool Inside(const wxPoint& pt) const { return Inside(pt.x, pt.y); }
+ wxRect operator+(const wxRect& rect) const;
+ wxRect& operator+=(const wxRect& rect);