pub struct TkTreeviewItem {
pub treeview: String,
pub id: String,
}
Expand description
Refers to a treeview item
Fields§
§treeview: String
§id: String
Implementations§
Source§impl TkTreeviewItem
impl TkTreeviewItem
Sourcepub fn insert_item(&self) -> TkTreeviewItem
pub fn insert_item(&self) -> TkTreeviewItem
Create a new item at end of this treeview item.
Sourcepub fn insert_item_at(&self, index: u64) -> TkTreeviewItem
pub fn insert_item_at(&self, index: u64) -> TkTreeviewItem
Create a new top-level item at given index position of this treeview item.
Sourcepub fn parent(&self) -> Option<TkTreeviewItem>
pub fn parent(&self) -> Option<TkTreeviewItem>
Returns an Option type containing the parent item if found, or None if this is a top-level item.
Sourcepub fn previous(&self) -> Option<TkTreeviewItem>
pub fn previous(&self) -> Option<TkTreeviewItem>
Returns an Option type containing the previous item to this one in its list, if found, or None if this is the first child of its parent.
Sourcepub fn next(&self) -> Option<TkTreeviewItem>
pub fn next(&self) -> Option<TkTreeviewItem>
Returns an Option type containing the next item to this one in its list, if found, or None if this is the last child of its parent.
Sourcepub fn children(&self) -> Vec<TkTreeviewItem>
pub fn children(&self) -> Vec<TkTreeviewItem>
Returns a list of child items of given node.
Sourcepub fn tag_remove(&self, tag: &str)
pub fn tag_remove(&self, tag: &str)
Removes a tag from this item.
Trait Implementations§
Source§impl Clone for TkTreeviewItem
impl Clone for TkTreeviewItem
Source§fn clone(&self) -> TkTreeviewItem
fn clone(&self) -> TkTreeviewItem
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TkTreeviewItem
impl Debug for TkTreeviewItem
Source§impl PartialEq for TkTreeviewItem
impl PartialEq for TkTreeviewItem
impl StructuralPartialEq for TkTreeviewItem
Auto Trait Implementations§
impl Freeze for TkTreeviewItem
impl RefUnwindSafe for TkTreeviewItem
impl Send for TkTreeviewItem
impl Sync for TkTreeviewItem
impl Unpin for TkTreeviewItem
impl UnwindSafe for TkTreeviewItem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more