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:
@@ -1112,6 +1112,18 @@ method:\par
|
|||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
||||||
|
\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}
|
\membersection{wxWindow::GetRect}\label{wxwindowgetrect}
|
||||||
|
|
||||||
\constfunc{virtual wxRect}{GetRect}{\void}
|
\constfunc{virtual wxRect}{GetRect}{\void}
|
||||||
@@ -1281,7 +1293,11 @@ Returns a pointer to the current validator for the window, or NULL if there is n
|
|||||||
|
|
||||||
\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.
|
||||||
|
|
||||||
\wxheading{Parameters}
|
\wxheading{Parameters}
|
||||||
|
|
||||||
|
@@ -424,10 +424,16 @@ public:
|
|||||||
|
|
||||||
// Override these methods for windows that have a virtual size
|
// Override these methods for windows that have a virtual size
|
||||||
// independent of their client size. eg. the virtual area of a
|
// 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
|
// Return the largest of ClientSize and BestSize (as determined
|
||||||
// by a sizer, interior children, or other means)
|
// by a sizer, interior children, or other means)
|
||||||
|
Reference in New Issue
Block a user