added wxWindow::ClientToWindowSize and WindowToClientSize helpers

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51737 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2008-02-12 15:49:22 +00:00
parent bad4a10f24
commit 301d7a0da6
13 changed files with 168 additions and 0 deletions

View File

@@ -380,6 +380,23 @@ implements the following methods:\par
\end{twocollist}}
}
\membersection{wxWindow::ClientToWindowSize}\label{wxwindowclienttowindowsize}
\func{virtual 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.
\wxheading{See also}
\helpref{wxWindow::WindowToClientSize}{wxwindowwindowtoclientsize}
\membersection{wxWindow::Close}\label{wxwindowclose}
@@ -4033,3 +4050,19 @@ 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.
\wxheading{See also}
\helpref{wxWindow::ClientToWindowSize}{wxwindowclienttowindowsize}