backported ClientToWindowSize(), WindowToClientSize() to 2.8

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@52330 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2008-03-05 14:19:38 +00:00
parent 90416caebe
commit a0a0e2b8d8
5 changed files with 62 additions and 0 deletions

View File

@@ -343,6 +343,25 @@ implements the following methods:\par
\end{twocollist}}
}
\membersection{wxWindow::ClientToWindowSize}\label{wxwindowclienttowindowsize}
\func{wxSize}{ClientToWindowSize}{\param{const wxSize\&}{ size}}
Converts client area size \arg{size} to corresponding window size. In other
words, the returned value is what would \helpref{GetSize}{wxwindowgetsize}
return if this window had client area of given size.
Components with $wxDefaultCoord$ value are left unchanged.
Note that the conversion is not always exact, it assumes that non-client area
doesn't change and so doesn't take into account things like menu bar
(un)wrapping or (dis)appearance of the scrollbars.
\since{2.8.8}
\wxheading{See also}
\helpref{wxWindow::WindowToClientSize}{wxwindowwindowtoclientsize}
\membersection{wxWindow::Close}\label{wxwindowclose}
@@ -3731,3 +3750,21 @@ Interface Guidelines forbid moving the mouse cursor programmatically.
\docparam{y}{The new y position for the cursor.}
\membersection{wxWindow::WindowToClientSize}\label{wxwindowwindowtoclientsize}
\func{virtual wxSize}{WindowToClientSize}{\param{const wxSize\&}{ size}}
Converts window size \arg{size} to corresponding client area size. In other
words, the returned value is what would
\helpref{GetClientSize}{wxwindowgetclientsize} return if this window had
given window size. Components with $wxDefaultCoord$ value are left unchanged.
Note that the conversion is not always exact, it assumes that non-client area
doesn't change and so doesn't take into account things like menu bar
(un)wrapping or (dis)appearance of the scrollbars.
\since{2.8.8}
\wxheading{See also}
\helpref{wxWindow::ClientToWindowSize}{wxwindowclienttowindowsize}