Trait sixtyfps_corelib::item_tree::ItemVisitor[][src]

pub trait ItemVisitor {
    fn visit_item(
        &mut self,
        _1: &VRc<ComponentVTable, Dyn>,
        _2: usize,
        _3: Pin<VRef<'_, ItemVTable>>
    ) -> VisitChildrenResult; }

Object to be passed in visit_item_children method of the Component. Note: Was generated from the #[vtable] macro on ItemVisitorVTable

Required methods

fn visit_item(
    &mut self,
    _1: &VRc<ComponentVTable, Dyn>,
    _2: usize,
    _3: Pin<VRef<'_, ItemVTable>>
) -> VisitChildrenResult
[src]

Called for each children 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

Loading content...

Implementors

impl<T: FnMut(&ComponentRc, usize, Pin<ItemRef<'_>>) -> VisitChildrenResult> ItemVisitor for T[src]

Loading content...