pub enum DockNode {
Tabs {
panels: Vec<String>,
active: usize,
},
Split {
id: SplitId,
axis: SplitAxis,
ratio: f32,
first: Box<DockNode>,
second: Box<DockNode>,
},
}Expand description
A node of the dock tree.
Variants§
Tabs
A group of panels shown as tabs. Never empty — an emptied group is
collapsed by DockTree::remove rather than left behind, because a
zero-tab group would occupy space that has nothing to show.
Fields
Split
Two children sharing the area along axis.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DockNode
impl<'de> Deserialize<'de> for DockNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for DockNode
Auto Trait Implementations§
impl Freeze for DockNode
impl RefUnwindSafe for DockNode
impl Send for DockNode
impl Sync for DockNode
impl Unpin for DockNode
impl UnsafeUnpin for DockNode
impl UnwindSafe for DockNode
Blanket Implementations§
Source§impl<T> AppLifecycle for Twhere
T: ?Sized,
impl<T> AppLifecycle for Twhere
T: ?Sized,
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