pub struct DockState {
pub root: DockNode,
/* private fields */
}Expand description
Persistent docking state.
Store this in remember_state_with_key(...) or SavedState etc.
Fields§
§root: DockNodeImplementations§
Source§impl DockState
impl DockState
pub fn new_with_tabs(tabs: Vec<PanelId>) -> Self
Sourcepub fn from_root(root: DockNode, max_node_id: u64) -> Self
pub fn from_root(root: DockNode, max_node_id: u64) -> Self
Create a DockState from a pre-built root node.
The max_node_id should be higher than any node ID used in the tree.
pub fn normalize(&mut self)
Sourcepub fn remove_panel_no_normalize(&mut self, pid: PanelId) -> bool
pub fn remove_panel_no_normalize(&mut self, pid: PanelId) -> bool
Remove panel without normalizing - for use in compound operations
pub fn remove_panel(&mut self, pid: PanelId) -> bool
pub fn set_active(&mut self, tabs_node_id: u64, pid: PanelId)
pub fn set_split_ratio(&mut self, split_node_id: u64, ratio: f32)
pub fn dock_panel( &mut self, target_node_id: u64, zone: DropZone, pid: PanelId, ) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DockState
impl RefUnwindSafe for DockState
impl Send for DockState
impl Sync for DockState
impl Unpin for DockState
impl UnsafeUnpin for DockState
impl UnwindSafe for DockState
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