pub struct WorkspaceLayout { /* private fields */ }Expand description
Persisted co-use layout shared by the Viture workspace and Halo glance path.
Implementations§
Source§impl WorkspaceLayout
impl WorkspaceLayout
Sourcepub fn default_arc() -> Self
pub fn default_arc() -> Self
Builds the default one-panel Viture arc with urgency-first Halo glance.
Sourcepub fn new(
panels: Vec<PanelPlacement>,
glance: GlancePreference,
) -> Result<Self>
pub fn new( panels: Vec<PanelPlacement>, glance: GlancePreference, ) -> Result<Self>
Builds a workspace layout from explicit placements and glance preference.
Sourcepub fn panels(&self) -> &[PanelPlacement]
pub fn panels(&self) -> &[PanelPlacement]
Returns Viture panel placements in render order.
Sourcepub fn glance(&self) -> &GlancePreference
pub fn glance(&self) -> &GlancePreference
Returns the Halo glance preference stored with the workspace layout.
Trait Implementations§
Source§impl Clone for WorkspaceLayout
impl Clone for WorkspaceLayout
Source§fn clone(&self) -> WorkspaceLayout
fn clone(&self) -> WorkspaceLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WorkspaceLayout
impl Debug for WorkspaceLayout
Source§impl PartialEq for WorkspaceLayout
impl PartialEq for WorkspaceLayout
impl StructuralPartialEq for WorkspaceLayout
Auto Trait Implementations§
impl Freeze for WorkspaceLayout
impl RefUnwindSafe for WorkspaceLayout
impl Send for WorkspaceLayout
impl Sync for WorkspaceLayout
impl Unpin for WorkspaceLayout
impl UnsafeUnpin for WorkspaceLayout
impl UnwindSafe for WorkspaceLayout
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