From: Vadim Zeitlin Date: Thu, 17 Mar 2005 22:18:16 +0000 (+0000) Subject: added UnsetVirtualSize() X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/0bb405ac54602a3efc3f5f4fbbf5bb6f1aaaff83 added UnsetVirtualSize() git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32868 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/window.h b/include/wx/window.h index 06b9ad44d4..13b6235675 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -411,6 +411,9 @@ public: void SetVirtualSize( const wxSize &size ) { DoSetVirtualSize( size.x, size.y ); } void SetVirtualSize( int x, int y ) { DoSetVirtualSize( x, y ); } + // this is necessary to forget about previously set virtual size + void UnsetVirtualSize() { m_virtualSize = wxDefaultSize; } + wxSize GetVirtualSize() const { return DoGetVirtualSize(); } void GetVirtualSize( int *x, int *y ) const {