pub struct TidyTree { /* private fields */ }
Implementations§
Source§impl TidyTree
impl TidyTree
pub fn with_basic_layout(parent_child_margin: Coord, peer_margin: Coord) -> Self
pub fn with_tidy_layout(parent_child_margin: Coord, peer_margin: Coord) -> Self
pub fn with_layered_tidy(parent_child_margin: Coord, peer_margin: Coord) -> Self
pub fn change_layout(&mut self, layout_type: LayoutType)
pub fn is_empty(&self) -> bool
pub fn add_node( &mut self, id: usize, width: Coord, height: Coord, parent_id: usize, )
pub fn remove_node(&mut self, id: usize)
pub fn data( &mut self, id: &[usize], width: &[Coord], height: &[Coord], parent_id: &[usize], )
pub fn layout(&mut self)
pub fn get_pos(&self) -> Vec<Coord> ⓘ
Auto Trait Implementations§
impl Freeze for TidyTree
impl !RefUnwindSafe for TidyTree
impl !Send for TidyTree
impl !Sync for TidyTree
impl Unpin for TidyTree
impl !UnwindSafe for TidyTree
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