Struct leftwm_core::models::LayoutManager
source · [−]pub struct LayoutManager {
pub mode: LayoutMode,
pub layouts: Vec<Layout>,
pub layouts_per_workspaces: HashMap<i32, Vec<Layout>>,
}
Fields
mode: LayoutMode
layouts: Vec<Layout>
layouts_per_workspaces: HashMap<i32, Vec<Layout>>
Implementations
sourceimpl LayoutManager
impl LayoutManager
pub fn new(config: &impl Config) -> Self
pub fn new_layout(&self, workspace_id: Option<i32>) -> 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
sourceimpl Clone for LayoutManager
impl Clone for LayoutManager
sourcefn clone(&self) -> LayoutManager
fn clone(&self) -> LayoutManager
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for LayoutManager
impl Debug for LayoutManager
sourceimpl<'de> Deserialize<'de> for LayoutManager
impl<'de> Deserialize<'de> for LayoutManager
sourcefn 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
sourceimpl Serialize for LayoutManager
impl Serialize for LayoutManager
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more