add Inflate(wxSize) overload
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41327 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
fb61f58a73
commit
c2c4d939f3
@ -100,6 +100,8 @@ Returns \true if the given rectangle is completely inside this rectangle
|
||||
|
||||
\func{void}{Deflate}{\param{wxCoord }{dx}, \param{wxCoord }{dy}}
|
||||
|
||||
\func{void}{Deflate}{\param{const wxSize\& }{diff}}
|
||||
|
||||
\func{void}{Deflate}{\param{wxCoord }{diff}}
|
||||
|
||||
\constfunc{wxRect}{Deflate}{\param{wxCoord }{dx}, \param{wxCoord }{dy}}
|
||||
@ -222,6 +224,8 @@ Gets the y member.
|
||||
|
||||
\func{void}{Inflate}{\param{wxCoord }{dx}, \param{wxCoord }{dy}}
|
||||
|
||||
\func{void}{Inflate}{\param{const wxSize\& }{diff}}
|
||||
|
||||
\func{void}{Inflate}{\param{wxCoord }{diff}}
|
||||
|
||||
\constfunc{wxRect}{Inflate}{\param{wxCoord }{dx}, \param{wxCoord }{dy}}
|
||||
|
@ -386,6 +386,7 @@ public:
|
||||
|
||||
// operations with rect
|
||||
wxRect& Inflate(wxCoord dx, wxCoord dy);
|
||||
wxRect& Inflate(const wxSize& d) { return Inflate(d.x, d.y); }
|
||||
wxRect& Inflate(wxCoord d) { return Inflate(d, d); }
|
||||
wxRect Inflate(wxCoord dx, wxCoord dy) const
|
||||
{
|
||||
@ -395,6 +396,7 @@ public:
|
||||
}
|
||||
|
||||
wxRect& Deflate(wxCoord dx, wxCoord dy) { return Inflate(-dx, -dy); }
|
||||
wxRect& Deflate(const wxSize& d) { return Inflate(-d.x, -d.y); }
|
||||
wxRect& Deflate(wxCoord d) { return Inflate(-d); }
|
||||
wxRect Deflate(wxCoord dx, wxCoord dy) const
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user