Struct leftwm_core::models::LayoutManager
source · pub struct LayoutManager {
pub mode: LayoutMode,
pub layouts: Vec<Layout>,
pub layouts_per_workspaces: HashMap<(String, usize), Vec<Layout>>,
}Fields§
§mode: LayoutMode§layouts: Vec<Layout>§layouts_per_workspaces: HashMap<(String, usize), Vec<Layout>>Implementations§
source§impl LayoutManager
impl LayoutManager
pub fn new(config: &impl Config) -> Self
pub fn new_layout(&self, output: &str, id: usize) -> 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