]>
git.saurik.com Git - wxWidgets.git/blob - interface/windowid.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxIdManager
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
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.
21 @see wxWindow::NewControlId, wxWindow::UnreserveControlId, @ref
22 overview_windowidsoverview "Window IDs overview"
28 Called directly by wxWindow::NewControlId,
29 this function will create a new ID or range of IDs. The IDs will be
30 reserved until assigned to a wxWindowIDRef()
31 or unreserved with UnreserveControlId().
32 Only ID values that are not assigned to a wxWindowIDRef()
33 need to be unreserved.
36 The number of sequential IDs to reserve.
38 @return The value of the first ID in the sequence, or wxID_NONE.
40 static wxWindowID
ReserveControlId(int count
= 1);