X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d6c11fa975af689cc570ee6f1cfc5322fa7fd564..32013b47d64e648373eed7b522f2bf2880aa2f64:/docs/latex/wx/tlw.tex diff --git a/docs/latex/wx/tlw.tex b/docs/latex/wx/tlw.tex index 5c949d8c1b..db2f329cfd 100644 --- a/docs/latex/wx/tlw.tex +++ b/docs/latex/wx/tlw.tex @@ -26,6 +26,10 @@ applicable for the two classes above. +\wxheading{Library} + +\helpref{wxCore}{librarieslist} + \latexignore{\rtfignore{\wxheading{Members}}} @@ -40,6 +44,29 @@ Returns \true if the platform supports making the window translucent. \helpref{wxTopLevelWindow::SetTransparent}{wxtoplevelwindowsettransparent} +\membersection{wxWindow::CenterOnScreen}\label{wxtoplevelwindowcenteronscreen} + +\func{void}{CenterOnScreen}{\param{int}{ direction}} + +A synonym for \helpref{CentreOnScreen}{wxtoplevelwindowcentreonscreen}. + + +\membersection{wxTopLevelWindow::CentreOnScreen}\label{wxtoplevelwindowcentreonscreen} + +\func{void}{CentreOnScreen}{\param{int}{ direction = wxBOTH}} + +Centres the window on screen. + +\wxheading{Parameters} + +\docparam{direction}{Specifies the direction for the centering. May be {\tt wxHORIZONTAL}, {\tt wxVERTICAL}\rtfsp +or {\tt wxBOTH}.} + +\wxheading{See also} + +\helpref{wxWindow::CentreOnParent}{wxwindowcenteronparent} + + \membersection{wxTopLevelWindow::EnableCloseButton}\label{wxtoplevelenableclosebutton} \func{bool}{EnableCloseButton}{\param{bool}{ enable = true}} @@ -303,18 +330,20 @@ A simpler interface for setting the size hints than \param{const wxSize\&}{ maxSize=wxDefaultSize}, \param{const wxSize\&}{ incSize=wxDefaultSize}} Allows specification of minimum and maximum window sizes, and window size increments. -If a pair of values is not set (or set to -1), the default values will be used. +If a pair of values is not set (or set to -1), no constraints will be used. \docparam{incW}{Specifies the increment for sizing the width (GTK/Motif/Xt only).} \docparam{incH}{Specifies the increment for sizing the height (GTK/Motif/Xt only).} -\docparam{incSize}{Increment size (GTK/Motif/Xt only).} +\docparam{incSize}{Increment size (only taken into account under X11-based +ports such as wxGTK/wxMotif/wxX11).} \wxheading{Remarks} -If this function is called, the user will not be able to size the window outside -the given bounds. The resizing increments are only significant under GTK, Motif or Xt. +Notice that this function not only prevents the user from resizing the window +outside the given bounds but it also prevents the program itself from doing it +using \helpref{SetSize}{wxwindowsetsize}. \membersection{wxTopLevelWindow::SetRightMenu}\label{wxtoplevelwindowsetrightmenu}