[][src]Type Definition rubrail::ItemId

type ItemId = u64;

Reference to an item that can be added to a bar created by a TTouchbar

An ItemId is returned when UI elements are created, and can then be assigned to bars by associating a list of ItemIds with a BarId.

Memory Allocation

Memory is allocated when an item is created, and is not released until the parent bar that owns it is released. This means it follows the same memory management cycle as BarId -- items are not released unless they are assigned to a bar, that bar is registered as the root bar, and then that bar is replaced. ItemId does not implement the Drop trait, and does not deallocate memory when it falls out of scope.