]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/idmanager.tex
More doxygen topic overview cleanup.
[wxWidgets.git] / docs / latex / wx / idmanager.tex
CommitLineData
302511a3
VZ
1\section{\class{wxIdManager}}\label{wxidmanager}
2
3wxIdManager is responsible for allocating and releasing window IDs. It
4is used by \helpref{wxWindow::NewControlId}{wxwindownewcontrolid} and
5\helpref{wxWindow::UnreserveControlId}{wxwindowunreservecontrolid}, and can also
6be used be used directly.
7
8\wxheading{Derived from}
9
10No base class
11
12\wxheading{Include files}
13
14<wx/windowid.h> included from defs.h
15
16\wxheading{Library}
17
18\helpref{wxCore}{librarieslist}
19
20\wxheading{See also}
21
22\helpref{wxWindow::NewControlId}{wxwindownewcontrolid}
23\helpref{wxWindow::UnreserveControlId}{wxwindowunreservecontrolid}
24\helpref{Window IDs overview}{windowidsoverview}
25
26\latexignore{\rtfignore{\wxheading{Members}}}
27
28\membersection{wxIdManager::ReserveControlId}\label{wxidmanagerreservecontrolid}
29
30\func{static wxWindowID}{ReserveControlId}{\param{int}{ count = 1}}
31
32Called directly by \helpref{wxWindow::NewControlId}{wxwindownewcontrolid},
33this function will create a new ID or range of IDs. The IDs will be
34reserved until assigned to a \helpref{wxWindowIDRef}{windowidsoverview}
35or unreserved with \helpref{UnreserveControlId}{wxidmanagerunreservecontrolid}.
36Only ID values that are not assigned to a \helpref{wxWindowIDRef}{windowidsoverview}
37need to be unreserved.
38
39\wxheading{Parameters}
40
41\docparam{count}{The number of sequential IDs to reserve.}
42
43\wxheading{Return value}
44
12ec9c09 45The value of the first ID in the sequence, or \texttt{wxID\_NONE}.
302511a3
VZ
46
47\membersection{wxIdManager::UnreserveControlId}\label{wxidmanagerunreservecontrolid}
48
49\func{static wxWindowID}{UnreserveControlId}{\param{wxWindowID}{ id}, \param{int}{ count = 1}}
50
51Called directly by \helpref{wxWindow::UnreserveControlId}{wxwindowunreservecontrolid},
52this function will unreserve an ID or range of IDs that is currently reserved. This
53should only be called for IDs returned by \helpref{ReserveControlId}{wxidmanagerreservecontrolid}
54that have NOT been assigned to a \helpref{wxWindowIDRef}{windowidsoverview}
55
56\wxheading{Parameters}
57
58\docparam{id}{The first of the range of IDs to unreserve.}
59
60\docparam{count}{The number of sequential IDs to unreserve.}
61
62\wxheading{Return value}
63
12ec9c09 64The value of the first ID in the sequence, or \texttt{wxID\_NONE}.