IdManager is responsible for allocating and releasing window IDs.
It is used by Window.NewControlId and Window.UnreserveControlId , and can also be used be used directly.
See also
Window.NewControlId , Window.UnreserveControlId , Window IDs
ReserveId | Called directly by Window.NewControlId , this function will create a new ID or range of IDs. |
UnreserveId | Called directly by Window.UnreserveControlId , this function will unreserve an ID or range of IDs that is currently reserved. |
IdManager is responsible for allocating and releasing window IDs.
Called directly by Window.NewControlId , this function will create a new ID or range of IDs.
The IDs will be reserved until assigned to a WindowIDRef() or unreserved with UnreserveControlId(). Only ID values that are not assigned to a WindowIDRef() need to be unreserved.
Parameters: | count (int) – The number of sequential IDs to reserve. |
---|---|
Return type: | int |
Returns: | The value of the first ID in the sequence, or ID_NONE. |
Called directly by Window.UnreserveControlId , this function will unreserve an ID or range of IDs that is currently reserved.
This should only be called for IDs returned by ReserveControlId() that have NOT been assigned to a WindowIDRef (see Window IDs).
Parameters: |
|
---|---|
Returns: | The value of the first ID in the sequence, or ID_NONE. |