git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31964
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
+\membersection{wxWindow::GetPureVirtualSize}\label{wxwindowgetpurevirtualsize}
+
+\constfunc{wxSize}{GetPureVirtualSize}{\void}
+
+This gets the virtual size of the window in pixels as it has been set
+by \helpref{SetVirtualSize}{wxwindowsetvirtualsize}.
+
+\helpref{GetSize}{wxwindowgetsize},\rtfsp
+\helpref{GetClientSize}{wxwindowgetclientsize},\rtfsp
+\helpref{GetVirtualSize}{wxwindowgetvirtualsize}
+
+
\membersection{wxWindow::GetRect}\label{wxwindowgetrect}
\constfunc{virtual wxRect}{GetRect}{\void}
\membersection{wxWindow::GetRect}\label{wxwindowgetrect}
\constfunc{virtual wxRect}{GetRect}{\void}
\constfunc{wxSize}{GetVirtualSize}{\void}
\constfunc{wxSize}{GetVirtualSize}{\void}
-This gets the virtual size of the window in pixels.
+This gets the virtual size of the window in pixels as it has been set
+by \helpref{SetVirtualSize}{wxwindowsetvirtualsize} or the size of the
+client area, if it is larger. Use
+\helpref{GetPureVirtualSize}{wxwindowgetpurevirtualsize} if you want
+to get the actual virtual height independent of the client size.
// Override these methods for windows that have a virtual size
// independent of their client size. eg. the virtual area of a
// 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 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)
// Return the largest of ClientSize and BestSize (as determined
// by a sizer, interior children, or other means)