ItemTreeTO

Struct ItemTreeTO 

Source
pub struct ItemTreeTO { /* 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 ItemTreeTO

Source

pub 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

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

Return a reference to an item using the given index

Source

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

Return the range of indices below the dynamic ItemTreeNode at index

Source

pub 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

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

Return the item tree that is defined by this ItemTree.

Source

pub 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

pub 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

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

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

Source

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

Returns the layout info for the root of the ItemTree

Source

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

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

Source

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

Returns the accessible role for a given item

Source

pub 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

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

Executes an accessibility action.

Source

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

Returns the supported accessibility actions.

Source

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

Add the ElementName::id entries of the given item

Source

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

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

Source

pub fn get_vtable(&self) -> &ItemTreeVTable

Returns a reference to the VTable

Source

pub fn as_ptr(&self) -> *const u8

Return a raw pointer to the object