Expand description
This module contains the ItemTree and code that helps navigating it
Macros§
- Instantiate a static ItemTreeVTable for a given type and implements
vtable::HasStaticVTable<ItemTreeVTable>
for it. - Instantiate a static ItemVisitorVTable for a given type and implements
vtable::HasStaticVTable<ItemVisitorVTable>
for it.
Structs§
- A range of indices
- A ItemRc is holding a reference to a ItemTree containing the item, and the index of this item
- The
ItemTreeNodeArray
provides tree walking code for the physical ItemTree stored in aItemTree
without stitching any inter-ItemTree links together! - Invariant, same as vtable::Inner: vtable and ptr has to be valid and ptr an instance matching the vtable
- A ItemTree is representing an unit that is allocated together
- Invariant, same as vtable::Inner: vtable and ptr has to be valid and ptr an instance matching the vtable
- Object to be passed in visit_item_children method of the ItemTree.
- A Weak reference to an item that can be constructed from an ItemRc.
- The return value of the ItemTree::visit_children_item function
Enums§
- The item tree is an array of ItemTreeNode representing a static tree of items within a ItemTree.
Traits§
- A ItemTree is representing an unit that is allocated together Note: Was generated from the
#[vtable]
macro onItemTreeVTable
- Object to be passed in visit_item_children method of the ItemTree. Note: Was generated from the
#[vtable]
macro onItemVisitorVTable
Functions§
- Call init() on the ItemVTable for each item of the ItemTree.
- Free the backend graphics resources allocated by the ItemTree’s items.
- Visit the children within an array of ItemTreeNode
- Visit each items recursively
Type Aliases§
- Type alias to the commonly used VRc<ItemTreeVTable, Dyn>>
- Alias for
vtable::VRef<ItemTreeVTable>
which represent a pointer to adyn ItemTree
with the associated vtable - Type alias to the commonly used
Pin<VRef<ItemTreeVTable>>>
- Type alias to the commonly used VWeak<ItemTreeVTable, Dyn>>
- Type alias to
vtable::VRefMut<ItemVisitorVTable>