X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/764a3a49068a94d1edb96f299b10c155d101c1b0..119143528d2ba3dc77ca533aece7982fdcb31bf5:/include/wx/gdicmn.h diff --git a/include/wx/gdicmn.h b/include/wx/gdicmn.h index b742531d92..32569e0a49 100644 --- a/include/wx/gdicmn.h +++ b/include/wx/gdicmn.h @@ -250,17 +250,22 @@ public: long GetHeight() const { return height; } void SetHeight(long h) { height = h; } - wxPoint GetPosition() { return wxPoint(x, y); } - wxSize GetSize() { return wxSize(width, height); } + wxPoint GetPosition() const { return wxPoint(x, y); } + wxSize GetSize() const { return wxSize(width, height); } long GetLeft() const { return x; } long GetTop() const { return y; } long GetBottom() const { return y + height; } long GetRight() const { return x + width; } + bool operator==(const wxRect& rect) const; bool operator!=(const wxRect& rect) const { return !(*this == rect); } + bool Inside(int cx, int cy) const; + wxRect operator + (const wxRect& rect) const; + const wxRect& operator += (const wxRect& rect); + public: long x, y, width, height; };