pub struct LayoutManager { /* private fields */ }
Expand description
The LayoutManager
holds the actual set of Layout
.
Implementations§
Source§impl LayoutManager
impl LayoutManager
Sourcepub fn new(config: &impl Config) -> Self
pub fn new(config: &impl Config) -> Self
Create a new LayoutManager
from the config
pub fn restore(&mut self, old: &LayoutManager)
Sourcepub fn layout_mut(&mut self, wsid: usize, tagid: usize) -> &mut Layout
pub fn layout_mut(&mut self, wsid: usize, tagid: usize) -> &mut Layout
pub fn cycle_next_layout(&mut self, wsid: usize, tagid: usize)
pub fn cycle_previous_layout(&mut self, wsid: usize, tagid: usize)
pub fn set_layout(&mut self, wsid: usize, tagid: usize, name: &str)
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 Freeze for LayoutManager
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