pub struct TreeContainerCb<T: Entity> { /* private fields */ }
Expand description
Container for the asset tree, where first field holds the currently selected asset (via primary mouse click).
Implementations§
Source§impl<T: Entity> TreeContainerCb<T>
impl<T: Entity> TreeContainerCb<T>
pub fn subtrees_mut( &mut self, subtrees: Vec<MkTreeCb<T>>, root_name: &str, show_count: bool, )
pub fn selected_nodes(&self) -> &HashSet<T>
pub fn selected_nodes_mut(&mut self, selected_nodes: HashSet<T>)
pub fn select_all(&mut self)
pub fn clear_selection(&mut self)
pub fn filter_ui(&mut self, width: f32, ui: &mut Ui)
pub fn tree_ui(&mut self, ui: &mut Ui, sender: &Sender<TreeNodeSignal>)
Trait Implementations§
Source§impl<T: Clone + Entity> Clone for TreeContainerCb<T>
impl<T: Clone + Entity> Clone for TreeContainerCb<T>
Source§fn clone(&self) -> TreeContainerCb<T>
fn clone(&self) -> TreeContainerCb<T>
Returns a copy 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 moreAuto Trait Implementations§
impl<T> Freeze for TreeContainerCb<T>where
T: Freeze,
impl<T> RefUnwindSafe for TreeContainerCb<T>where
T: RefUnwindSafe,
impl<T> Send for TreeContainerCb<T>where
T: Send,
impl<T> Sync for TreeContainerCb<T>where
T: Sync,
impl<T> Unpin for TreeContainerCb<T>where
T: Unpin,
impl<T> UnwindSafe for TreeContainerCb<T>where
T: UnwindSafe,
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