Enum i_slint_core::item_tree::ItemTreeNode
source · [−]#[repr(u8)]
pub enum ItemTreeNode {
Item {
is_accessible: bool,
children_count: u32,
children_index: u32,
parent_index: u32,
item_array_index: u32,
},
DynamicTree {
index: usize,
parent_index: u32,
},
}Expand description
The item tree is an array of ItemTreeNode representing a static tree of items within a component.
Variants
Item
Fields
is_accessible: boolTrue when the item has accessibility properties attached
children_count: u32number of children
children_index: u32index of the first children within the item tree
parent_index: u32The index of the parent item (not valid for the root)
item_array_index: u32The index in the extra item_array
Static item
DynamicTree
Fields
index: usizethe index which is passed in the visit_dynamic callback.
parent_index: u32The index of the parent item (not valid for the root)
A placeholder for many instance of item in their own component which are instantiated according to a model.
Implementations
sourceimpl ItemTreeNode
impl ItemTreeNode
pub fn parent_index(&self) -> usize
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ItemTreeNode
impl Send for ItemTreeNode
impl Sync for ItemTreeNode
impl Unpin for ItemTreeNode
impl UnwindSafe for ItemTreeNode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more