]>
Commit | Line | Data |
---|---|---|
23324ae1 FM |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: windowid.h | |
e54c96f1 | 3 | // Purpose: interface of wxIdManager |
23324ae1 FM |
4 | // Author: wxWidgets team |
5 | // RCS-ID: $Id$ | |
6 | // Licence: wxWindows license | |
7 | ///////////////////////////////////////////////////////////////////////////// | |
8 | ||
9 | /** | |
10 | @class wxIdManager | |
7c913512 | 11 | |
23324ae1 FM |
12 | wxIdManager is responsible for allocating and releasing window IDs. It |
13 | is used by wxWindow::NewControlId and | |
14 | wxWindow::UnreserveControlId, and can also | |
15 | be used be used directly. | |
7c913512 | 16 | |
23324ae1 FM |
17 | @library{wxcore} |
18 | @category{FIXME} | |
7c913512 | 19 | |
e54c96f1 | 20 | @see wxWindow::NewControlId, wxWindow::UnreserveControlId, @ref |
23324ae1 FM |
21 | overview_windowidsoverview "Window IDs overview" |
22 | */ | |
7c913512 | 23 | class wxIdManager |
23324ae1 FM |
24 | { |
25 | public: | |
26 | /** | |
27 | Called directly by wxWindow::NewControlId, | |
28 | this function will create a new ID or range of IDs. The IDs will be | |
e54c96f1 | 29 | reserved until assigned to a wxWindowIDRef() |
23324ae1 | 30 | or unreserved with UnreserveControlId(). |
e54c96f1 | 31 | Only ID values that are not assigned to a wxWindowIDRef() |
23324ae1 | 32 | need to be unreserved. |
3c4f71cc | 33 | |
7c913512 | 34 | @param count |
4cc4bfaf | 35 | The number of sequential IDs to reserve. |
3c4f71cc | 36 | |
d29a9a8a | 37 | @return The value of the first ID in the sequence, or wxID_NONE. |
23324ae1 FM |
38 | */ |
39 | static wxWindowID ReserveControlId(int count = 1); | |
40 | }; | |
e54c96f1 | 41 |