#[repr(C)]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
impl ItemTreeTO
Sourcepub fn visit_children_item(
self: Pin<&Self>,
_1: isize,
_2: TraversalOrder,
_3: VRefMut<'_, ItemVisitorVTable>,
) -> VisitChildrenResult
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.
Sourcepub fn get_item_ref(self: Pin<&Self>, _1: u32) -> Pin<VRef<'_, ItemVTable>>
pub fn get_item_ref(self: Pin<&Self>, _1: u32) -> Pin<VRef<'_, ItemVTable>>
Return a reference to an item using the given index
Sourcepub fn get_subtree_range(self: Pin<&Self>, _1: u32) -> IndexRange
pub fn get_subtree_range(self: Pin<&Self>, _1: u32) -> IndexRange
Return the range of indices below the dynamic ItemTreeNode at index
Sourcepub fn get_subtree(
self: Pin<&Self>,
_1: u32,
_2: usize,
_3: &mut VWeak<ItemTreeVTable, Dyn>,
)
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
Sourcepub fn get_item_tree(self: Pin<&Self>) -> Slice<'_, ItemTreeNode>
pub fn get_item_tree(self: Pin<&Self>) -> Slice<'_, ItemTreeNode>
Return the item tree that is defined by this 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
Sourcepub fn parent_node(self: Pin<&Self>, _1: &mut ItemWeak)
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!
Sourcepub fn embed_component(
self: Pin<&Self>,
_1: &VWeak<ItemTreeVTable>,
_2: u32,
) -> bool
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.
Sourcepub fn subtree_index(self: Pin<&Self>) -> usize
pub fn subtree_index(self: Pin<&Self>) -> usize
Return the index of the current subtree or usize::MAX if this is not a subtree
Sourcepub fn layout_info(self: Pin<&Self>, _1: Orientation) -> LayoutInfo
pub fn layout_info(self: Pin<&Self>, _1: Orientation) -> LayoutInfo
Returns the layout info for the root of the ItemTree
Sourcepub fn item_geometry(self: Pin<&Self>, _1: u32) -> LogicalRect
pub fn item_geometry(self: Pin<&Self>, _1: u32) -> LogicalRect
Returns the item’s geometry (relative to its parent item)
Sourcepub fn accessible_role(self: Pin<&Self>, _1: u32) -> AccessibleRole
pub fn accessible_role(self: Pin<&Self>, _1: u32) -> AccessibleRole
Returns the accessible role for a given item
Sourcepub fn accessible_string_property(
self: Pin<&Self>,
_1: u32,
_2: AccessibleStringProperty,
_3: &mut SharedString,
) -> bool
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.
Sourcepub fn accessibility_action(self: Pin<&Self>, _1: u32, _2: &AccessibilityAction)
pub fn accessibility_action(self: Pin<&Self>, _1: u32, _2: &AccessibilityAction)
Executes an accessibility action.
Sourcepub fn supported_accessibility_actions(
self: Pin<&Self>,
_1: u32,
) -> SupportedAccessibilityAction
pub fn supported_accessibility_actions( self: Pin<&Self>, _1: u32, ) -> SupportedAccessibilityAction
Returns the supported accessibility actions.
Sourcepub fn item_element_infos(
self: Pin<&Self>,
_1: u32,
_2: &mut SharedString,
) -> bool
pub fn item_element_infos( self: Pin<&Self>, _1: u32, _2: &mut SharedString, ) -> bool
Add the ElementName::id entries of the given item
Sourcepub fn window_adapter(
self: Pin<&Self>,
_1: bool,
_2: &mut Option<WindowAdapterRc>,
)
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.
Sourcepub fn get_vtable(&self) -> &ItemTreeVTable
pub fn get_vtable(&self) -> &ItemTreeVTable
Returns a reference to the VTable