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