Struct leftwm_core::models::LayoutManager
source · pub struct LayoutManager {
pub mode: LayoutMode,
pub layouts: Vec<Layout>,
pub layouts_per_workspaces: HashMap<WorkspaceId, Vec<Layout>>,
}Fields§
§mode: LayoutMode§layouts: Vec<Layout>§layouts_per_workspaces: HashMap<WorkspaceId, Vec<Layout>>Implementations§
source§impl LayoutManager
impl LayoutManager
pub fn new(config: &impl Config) -> Self
pub fn new_layout(&self, id: WorkspaceId) -> Layout
pub fn next_layout(&self, workspace: &Workspace) -> Layout
pub fn previous_layout(&self, workspace: &Workspace) -> Layout
pub fn update_layouts( &self, workspaces: &mut Vec<Workspace>, tags: Vec<&mut Tag> ) -> Option<bool>
Trait Implementations§
source§impl Clone for LayoutManager
impl Clone for LayoutManager
source§fn clone(&self) -> LayoutManager
fn clone(&self) -> LayoutManager
Returns a copy 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 LayoutManager
impl Debug for LayoutManager
source§impl<'de> Deserialize<'de> for LayoutManager
impl<'de> Deserialize<'de> for LayoutManager
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
Auto Trait Implementations§
impl RefUnwindSafe for LayoutManager
impl Send for LayoutManager
impl Sync for LayoutManager
impl Unpin for LayoutManager
impl UnwindSafe for LayoutManager
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