Struct i_slint_core::item_tree::ItemRc
source · [−]#[repr(C)]pub struct ItemRc { /* private fields */ }
Expand description
A ItemRc is holding a reference to a component containing the item, and the index of this item
Implementations
sourceimpl ItemRc
impl ItemRc
sourcepub fn new(component: VRc<ComponentVTable>, index: usize) -> Self
pub fn new(component: VRc<ComponentVTable>, index: usize) -> Self
Create an ItemRc from a component and an index
pub fn downgrade(&self) -> ItemWeak
sourcepub fn parent_item(&self) -> Option<ItemRc>
pub fn parent_item(&self) -> Option<ItemRc>
Return the parent Item in the item tree.
pub fn is_visible(&self) -> bool
sourcepub fn component(&self) -> VRc<ComponentVTable>
pub fn component(&self) -> VRc<ComponentVTable>
Returns a reference to the component holding this item
sourcepub fn first_child(&self) -> Option<Self>
pub fn first_child(&self) -> Option<Self>
The first child Item of this Item
sourcepub fn last_child(&self) -> Option<Self>
pub fn last_child(&self) -> Option<Self>
The last child Item of this Item
sourcepub fn previous_sibling(&self) -> Option<Self>
pub fn previous_sibling(&self) -> Option<Self>
The previous sibling of this Item
sourcepub fn next_sibling(&self) -> Option<Self>
pub fn next_sibling(&self) -> Option<Self>
The next sibling of this Item
sourcepub fn previous_focus_item(&self) -> Self
pub fn previous_focus_item(&self) -> Self
Move tab focus to the previous item:
sourcepub fn next_focus_item(&self) -> Self
pub fn next_focus_item(&self) -> Self
Move tab focus to the next item:
Trait Implementations
impl Eq for ItemRc
Auto Trait Implementations
impl RefUnwindSafe for ItemRc
impl Send for ItemRc
impl Sync for ItemRc
impl Unpin for ItemRc
impl UnwindSafe for ItemRc
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more