Added GetPureVitualSize() returning just m_virtualSize.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
2005-02-12 15:53:25 +00:00
parent 1ac4716dd2
commit 85b38e0bd1
2 changed files with 25 additions and 3 deletions

View File

@@ -424,10 +424,16 @@ public:
// Override these methods for windows that have a virtual size
// independent of their client size. eg. the virtual area of a
// wxScrolledWindow. Default is to alias VirtualSize to ClientSize.
// wxScrolledWindow. Default is to return m_virtualSize unless
// the client size is bigger.
virtual void DoSetVirtualSize( int x, int y );
virtual wxSize DoGetVirtualSize() const; // { return m_virtualSize; }
virtual wxSize DoGetVirtualSize() const;
// Really return just m_virtualSize, nothing else
wxSize GetPureVirtualSize() const { return m_virtualSize; }
// Return the largest of ClientSize and BestSize (as determined
// by a sizer, interior children, or other means)