pub enum WorkspaceNode {
Tabs {
tabs: Vec<String>,
state: UiTabBarState,
},
Split {
direction: UiDirection,
ratio: f32,
first: Box<WorkspaceNode>,
second: Box<WorkspaceNode>,
},
}Expand description
One node of the serializable dock tree.
Variants§
Tabs
Leaf pane: a tab bar over a set of item ids plus caller-owned tab state.
Split
Interior split: two children laid out by direction at ratio.
Implementations§
Source§impl WorkspaceNode
impl WorkspaceNode
Sourcepub fn split(
direction: UiDirection,
ratio: f32,
first: WorkspaceNode,
second: WorkspaceNode,
) -> Self
pub fn split( direction: UiDirection, ratio: f32, first: WorkspaceNode, second: WorkspaceNode, ) -> Self
Split first/second at ratio along direction.
Trait Implementations§
Source§impl Clone for WorkspaceNode
impl Clone for WorkspaceNode
Auto Trait Implementations§
impl Forget for WorkspaceNode
impl Freeze for WorkspaceNodewhere
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
*const WorkspaceNode is !null: Freeze,
PhantomData<WorkspaceNode>: Freeze,
impl Move for WorkspaceNode
impl RefUnwindSafe for WorkspaceNode
impl Send for WorkspaceNode
impl Sync for WorkspaceNode
impl Unpin for WorkspaceNode
impl UnsafeUnpin for WorkspaceNodewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
*const WorkspaceNode is !null: UnsafeUnpin,
PhantomData<WorkspaceNode>: UnsafeUnpin,
impl UnwindSafe for WorkspaceNode
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