pub struct WorkspaceWindowRecord {
pub id: WorkspaceWindowId,
pub height: i32,
pub tabs: IndexMap<WorkspaceWindowTabId, WorkspaceWindowTabRecord>,
pub active_tab: WorkspaceWindowTabId,
}Fields§
§id: WorkspaceWindowId§height: i32§tabs: IndexMap<WorkspaceWindowTabId, WorkspaceWindowTabRecord>§active_tab: WorkspaceWindowTabIdImplementations§
Source§impl WorkspaceWindowRecord
impl WorkspaceWindowRecord
pub fn active_tab_record(&self) -> Option<&WorkspaceWindowTabRecord>
pub fn active_tab_record_mut(&mut self) -> Option<&mut WorkspaceWindowTabRecord>
pub fn active_pane(&self) -> Option<PaneId>
pub fn active_container(&self) -> Option<PaneContainerId>
pub fn active_layout(&self) -> Option<&LayoutNode>
pub fn active_layout_mut(&mut self) -> Option<&mut LayoutNode>
pub fn contains_pane( &self, pane_containers: &IndexMap<PaneContainerId, PaneContainerRecord>, pane_id: PaneId, ) -> bool
pub fn tab_for_pane( &self, pane_containers: &IndexMap<PaneContainerId, PaneContainerRecord>, pane_id: PaneId, ) -> Option<WorkspaceWindowTabId>
pub fn focus_tab(&mut self, tab_id: WorkspaceWindowTabId) -> bool
pub fn focus_pane( &mut self, pane_containers: &mut IndexMap<PaneContainerId, PaneContainerRecord>, pane_id: PaneId, ) -> bool
Trait Implementations§
Source§impl Clone for WorkspaceWindowRecord
impl Clone for WorkspaceWindowRecord
Source§fn clone(&self) -> WorkspaceWindowRecord
fn clone(&self) -> WorkspaceWindowRecord
Returns a duplicate 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 moreSource§impl Debug for WorkspaceWindowRecord
impl Debug for WorkspaceWindowRecord
Source§impl<'de> Deserialize<'de> for WorkspaceWindowRecord
impl<'de> Deserialize<'de> for WorkspaceWindowRecord
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
Source§impl PartialEq for WorkspaceWindowRecord
impl PartialEq for WorkspaceWindowRecord
Source§impl Serialize for WorkspaceWindowRecord
impl Serialize for WorkspaceWindowRecord
impl Eq for WorkspaceWindowRecord
impl StructuralPartialEq for WorkspaceWindowRecord
Auto Trait Implementations§
impl Freeze for WorkspaceWindowRecord
impl RefUnwindSafe for WorkspaceWindowRecord
impl Send for WorkspaceWindowRecord
impl Sync for WorkspaceWindowRecord
impl Unpin for WorkspaceWindowRecord
impl UnsafeUnpin for WorkspaceWindowRecord
impl UnwindSafe for WorkspaceWindowRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.