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