]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/tlw.tex
support for huge files (patch 1002226)
[wxWidgets.git] / docs / latex / wx / tlw.tex
CommitLineData
834ed994
VZ
1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2%% Name: tlw.tex
3%% Purpose: wxTopLevelWindow documentation
4%% Author: Vadim Zeitlin
5%% Modified by:
6%% Created: 2004-09-07 (partly extracted from frame.tex)
7%% RCS-ID: $Id$
8%% Copyright: (c) 2004 Vadim Zeitlin
9%% License: wxWidgets license
10%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11
12\section{\class{wxTopLevelWindow}}\label{wxtoplevelwindow}
13
14wxTopLevelWindow is a common base class for \helpref{wxDialog}{wxdialog} and
9eace708 15\helpref{wxFrame}{wxframe}. It is an abstract base class meaning that you never
834ed994
VZ
16work with objects of this class directly, but all of its methods are also
17applicable for the two classes above.
18
9eace708
VZ
19\wxheading{Derived from}
20
21\helpref{wxWindow}{wxwindow}\\
22\helpref{wxEvtHandler}{wxevthandler}\\
23\helpref{wxObject}{wxobject}
24
25\wxheading{Include files}
26
27<wx/toplevel.h>
28
834ed994
VZ
29
30\latexignore{\rtfignore{\wxheading{Members}}}
31
32
5a8e93c4
VZ
33\membersection{wxTopLevelWindow::GetIcon}\label{wxtoplevelwindowgeticon}
34
35\constfunc{const wxIcon\&}{GetIcon}{\void}
36
37Returns the standard icon of the window. The icon will be invalid if it hadn't
38been previously set by \helpref{SetIcon}{wxtoplevelwindowseticon}.
39
40\wxheading{See also}
41
42\helpref{GetIcons}{wxtoplevelwindowgeticons}
43
44
45\membersection{wxTopLevelWindow::GetIcons}\label{wxtoplevelwindowgeticons}
46
47\constfunc{const wxIconBundle\&}{GetIcons}{\void}
48
49Returns all icons associated with the window, there will be none of them if
50neither \helpref{SetIcon}{wxtoplevelwindowseticon} nor
51\helpref{SetIcons}{wxtoplevelwindowseticons} had been called before.
52
53Use \helpref{GetIcon}{wxtoplevelwindowgeticon} to get the main icon of the
54window.
55
56\wxheading{See also}
57
58\helpref{wxIconBundle}{wxiconbundle}
59
60
834ed994
VZ
61\membersection{wxTopLevelWindow::GetTitle}\label{wxtoplevelwindowgettitle}
62
63\constfunc{wxString}{GetTitle}{\void}
64
65Gets a string containing the window title.
66
67See \helpref{wxTopLevelWindow::SetTitle}{wxtoplevelwindowsettitle}.
68
69
70\membersection{wxTopLevelWindow::Iconize}\label{wxtoplevelwindowiconize}
71
72\func{void}{Iconize}{\param{bool}{ iconize}}
73
74Iconizes or restores the window.
75
76\wxheading{Parameters}
77
78\docparam{iconize}{If \true, iconizes the window; if \false, shows and restores it.}
79
80\wxheading{See also}
81
82\helpref{wxTopLevelWindow::IsIconized}{wxtoplevelwindowisiconized}, \helpref{wxTopLevelWindow::Maximize}{wxtoplevelwindowmaximize}.
83
84
85\membersection{wxTopLevelWindow::IsFullScreen}\label{wxtoplevelwindowisfullscreen}
86
87\func{bool}{IsFullScreen}{\void}
88
89Returns \true if the window is in fullscreen mode.
90
91\wxheading{See also}
92
93\helpref{wxTopLevelWindow::ShowFullScreen}{wxtoplevelwindowshowfullscreen}
94
95
96\membersection{wxTopLevelWindow::IsIconized}\label{wxtoplevelwindowisiconized}
97
98\constfunc{bool}{IsIconized}{\void}
99
100Returns \true if the window is iconized.
101
102
103\membersection{wxTopLevelWindow::IsMaximized}\label{wxtoplevelwindowismaximized}
104
105\constfunc{bool}{IsMaximized}{\void}
106
107Returns \true if the window is maximized.
108
109
110\membersection{wxTopLevelWindow::Maximize}\label{wxtoplevelwindowmaximize}
111
112\func{void}{Maximize}{\param{bool }{maximize}}
113
114Maximizes or restores the window.
115
116\wxheading{Parameters}
117
118\docparam{maximize}{If \true, maximizes the window, otherwise it restores it.}
119
120\wxheading{Remarks}
121
122This function only works under Windows.
123
124\wxheading{See also}
125
126\helpref{wxTopLevelWindow::Iconize}{wxtoplevelwindowiconize}
127
128
dc92adaf
VZ
129\membersection{wxTopLevelWindow::RequestUserAttention}\label{wxtoplevelwindowrequestuserattention}
130
131\func{void}{RequestUserAttention}{\param{int }{flags = wxUSER\_ATTENTION\_INFO}}
132
133Use a system-dependent way to attract users attention to the window when it is
134in background.
135
136\arg{flags} may have the value of either \texttt{wxUSER\_ATTENTION\_INFO}
137(default) or \texttt{wxUSER\_ATTENTION\_ERROR} which results in a more drastic
138action. When in doubt, use the default value.
139
140Note that this function should normally be only used when the application is
141not already in foreground.
142
143This function is currently only implemented for Win32 where it flashes the
144window icon in the taskbar.
145
146
834ed994
VZ
147\membersection{wxTopLevelWindow::SetIcon}\label{wxtoplevelwindowseticon}
148
149\func{void}{SetIcon}{\param{const wxIcon\& }{icon}}
150
151Sets the icon for this window.
152
153\wxheading{Parameters}
154
155\docparam{icon}{The icon to associate with this window.}
156
157\wxheading{Remarks}
158
159The window takes a `copy' of {\it icon}, but since it uses reference
160counting, the copy is very quick. It is safe to delete {\it icon} after
161calling this function.
162
163See also \helpref{wxIcon}{wxicon}.
164
165
166\membersection{wxTopLevelWindow::SetIcons}\label{wxtoplevelwindowseticons}
167
168\func{void}{SetIcons}{\param{const wxIconBundle\& }{icons}}
169
5a8e93c4
VZ
170Sets several icons of different sizes for this window: this allows to use
171different icons for different situations (e.g. task switching bar, taskbar,
172window title bar) instead of scaling, with possibly bad looking results, the
173only icon set by \helpref{SetIcon}{wxtoplevelwindowseticon}.
834ed994
VZ
174
175\wxheading{Parameters}
176
177\docparam{icons}{The icons to associate with this window.}
178
5a8e93c4
VZ
179\wxheading{See also}
180
181\helpref{wxIconBundle}{wxiconbundle}.
834ed994
VZ
182
183
184\membersection{wxTopLevelWindow::SetShape}\label{wxtoplevelwindowsetshape}
185
186\func{bool}{SetShape}{\param{const wxRegion\&}{ region}}
187
188If the platform supports it, sets the shape of the window to that
189depicted by {\it region}. The system will not display or
190respond to any mouse event for the pixels that lie outside of the
191region. To reset the window to the normal rectangular shape simply
192call {\it SetShape} again with an empty region. Returns TRUE if the
193operation is successful.
194
195
196\membersection{wxTopLevelWindow::SetTitle}\label{wxtoplevelwindowsettitle}
197
198\func{virtual void}{SetTitle}{\param{const wxString\& }{ title}}
199
200Sets the window title.
201
202\wxheading{Parameters}
203
204\docparam{title}{The window title.}
205
206\wxheading{See also}
207
208\helpref{wxTopLevelWindow::GetTitle}{wxtoplevelwindowgettitle}
209
210
211\membersection{wxTopLevelWindow::ShowFullScreen}\label{wxtoplevelwindowshowfullscreen}
212
213\func{bool}{ShowFullScreen}{\param{bool}{ show}, \param{long}{ style = wxFULLSCREEN\_ALL}}
214
215Depending on the value of {\it show} parameter the window is either shown full
216screen or restored to its normal state. {\it style} is a bit list containing
217some or all of the following values, which indicate what elements of the window
218to hide in full-screen mode:
219
220\begin{itemize}\itemsep=0pt
221\item wxFULLSCREEN\_NOMENUBAR
222\item wxFULLSCREEN\_NOTOOLBAR
223\item wxFULLSCREEN\_NOSTATUSBAR
224\item wxFULLSCREEN\_NOBORDER
225\item wxFULLSCREEN\_NOCAPTION
226\item wxFULLSCREEN\_ALL (all of the above)
227\end{itemize}
228
229This function has not been tested with MDI frames.
230
231Note that showing a window full screen also actually
232\helpref{Show()s}{wxwindowshow} if it hadn't been shown yet.
233
234\wxheading{See also}
235
236\helpref{wxTopLevelWindow::IsFullScreen}{wxtoplevelwindowisfullscreen}
237