Struct i_slint_core::item_tree::ItemVisitorTO
source · pub struct ItemVisitorTO { /* private fields */ }Expand description
Invariant, same as vtable::Inner: vtable and ptr has to be valid and ptr an instance matching the vtable
Implementations§
source§impl ItemVisitorTO
impl ItemVisitorTO
sourcepub fn visit_item(
&mut self,
_1: &VRc<ComponentVTable, Dyn>,
_2: usize,
_3: Pin<VRef<'_, ItemVTable>>
) -> VisitChildrenResult
pub fn visit_item( &mut self, _1: &VRc<ComponentVTable, Dyn>, _2: usize, _3: Pin<VRef<'_, ItemVTable>> ) -> VisitChildrenResult
Called for each child of the visited item
The component parameter is the component in which the item live which might not be the same
as the parent’s component.
index is to be used again in the visit_item_children function of the Component (the one passed as parameter)
and item is a reference to the item itself
sourcepub fn get_vtable(&self) -> &ItemVisitorVTable
pub fn get_vtable(&self) -> &ItemVisitorVTable
Returns a reference to the VTable