Added Set{Position,Size} to wxRect.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16205 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
4726eec677
commit
4aa0010b2b
@ -307,7 +307,10 @@ public:
|
||||
void SetHeight(int h) { height = h; }
|
||||
|
||||
wxPoint GetPosition() const { return wxPoint(x, y); }
|
||||
void SetPosition( const wxPoint &p ) { x = p.x; y = p.y; }
|
||||
|
||||
wxSize GetSize() const { return wxSize(width, height); }
|
||||
void SetSize( const wxSize &s ) { width = s.GetWidth(); height = s.GetHeight(); }
|
||||
|
||||
int GetLeft() const { return x; }
|
||||
int GetTop() const { return y; }
|
||||
|
Loading…
Reference in New Issue
Block a user