ItemTree

Trait ItemTree 

Source
pub trait ItemTree {
Show 16 methods // Required methods fn visit_children_item( self: Pin<&Self>, _1: isize, _2: TraversalOrder, _3: VRefMut<'_, ItemVisitorVTable>, ) -> VisitChildrenResult; fn get_item_ref(self: Pin<&Self>, _1: u32) -> Pin<VRef<'_, ItemVTable>>; fn get_subtree_range(self: Pin<&Self>, _1: u32) -> IndexRange; fn get_subtree( self: Pin<&Self>, _1: u32, _2: usize, _3: &mut VWeak<ItemTreeVTable, Dyn>, ); fn get_item_tree(self: Pin<&Self>) -> Slice<'_, ItemTreeNode>; fn parent_node(self: Pin<&Self>, _1: &mut ItemWeak); fn embed_component( self: Pin<&Self>, _1: &VWeak<ItemTreeVTable>, _2: u32, ) -> bool; fn subtree_index(self: Pin<&Self>) -> usize; fn layout_info(self: Pin<&Self>, _1: Orientation) -> LayoutInfo; fn item_geometry(self: Pin<&Self>, _1: u32) -> LogicalRect; fn accessible_role(self: Pin<&Self>, _1: u32) -> AccessibleRole; fn accessible_string_property( self: Pin<&Self>, _1: u32, _2: AccessibleStringProperty, _3: &mut SharedString, ) -> bool; fn accessibility_action(self: Pin<&Self>, _1: u32, _2: &AccessibilityAction); fn supported_accessibility_actions( self: Pin<&Self>, _1: u32, ) -> SupportedAccessibilityAction; fn item_element_infos( self: Pin<&Self>, _1: u32, _2: &mut SharedString, ) -> bool; fn window_adapter( self: Pin<&Self>, _1: bool, _2: &mut Option<WindowAdapterRc>, );
}
Expand description

A ItemTree is representing an unit that is allocated together Note: Was generated from the #[vtable] macro on ItemTreeVTable

Required Methods§

Source

fn visit_children_item( self: Pin<&Self>, _1: isize, _2: TraversalOrder, _3: VRefMut<'_, ItemVisitorVTable>, ) -> VisitChildrenResult

Visit the children of the item at index index. Note that the root item is at index 0, so passing 0 would visit the item under root (the children of root). If you want to visit the root item, you need to pass -1 as an index.

Source

fn get_item_ref(self: Pin<&Self>, _1: u32) -> Pin<VRef<'_, ItemVTable>>

Return a reference to an item using the given index

Source

fn get_subtree_range(self: Pin<&Self>, _1: u32) -> IndexRange

Return the range of indices below the dynamic ItemTreeNode at index

Source

fn get_subtree( self: Pin<&Self>, _1: u32, _2: usize, _3: &mut VWeak<ItemTreeVTable, Dyn>, )

Return the ItemTreeRc at subindex below the dynamic ItemTreeNode at index

Source

fn get_item_tree(self: Pin<&Self>) -> Slice<'_, ItemTreeNode>

Return the item tree that is defined by this ItemTree.

Source

fn parent_node(self: Pin<&Self>, _1: &mut ItemWeak)

Return the node this ItemTree is a part of in the parent ItemTree.

The return value is an item weak because it can be null if there is no parent. And the return value is passed by &mut because ItemWeak has a destructor Note that the returned value will typically point to a repeater node, which is strictly speaking not an Item at all!

Source

fn embed_component( self: Pin<&Self>, _1: &VWeak<ItemTreeVTable>, _2: u32, ) -> bool

This embeds this ItemTree into the item tree of another ItemTree

Returns true if this ItemTree was embedded into the parent at parent_item_tree_index.

Source

fn subtree_index(self: Pin<&Self>) -> usize

Return the index of the current subtree or usize::MAX if this is not a subtree

Source

fn layout_info(self: Pin<&Self>, _1: Orientation) -> LayoutInfo

Returns the layout info for the root of the ItemTree

Source

fn item_geometry(self: Pin<&Self>, _1: u32) -> LogicalRect

Returns the item’s geometry (relative to its parent item)

Source

fn accessible_role(self: Pin<&Self>, _1: u32) -> AccessibleRole

Returns the accessible role for a given item

Source

fn accessible_string_property( self: Pin<&Self>, _1: u32, _2: AccessibleStringProperty, _3: &mut SharedString, ) -> bool

Returns the accessible property via the result. Returns true if such a property exists.

Source

fn accessibility_action(self: Pin<&Self>, _1: u32, _2: &AccessibilityAction)

Executes an accessibility action.

Source

fn supported_accessibility_actions( self: Pin<&Self>, _1: u32, ) -> SupportedAccessibilityAction

Returns the supported accessibility actions.

Source

fn item_element_infos(self: Pin<&Self>, _1: u32, _2: &mut SharedString) -> bool

Add the ElementName::id entries of the given item

Source

fn window_adapter(self: Pin<&Self>, _1: bool, _2: &mut Option<WindowAdapterRc>)

Returns a Window, creating a fresh one if do_create is true.

Implementors§