Struct leftwm_core::state::State  
source · pub struct State {Show 18 fields
    pub screens: Vec<Screen>,
    pub windows: Vec<Window>,
    pub workspaces: Vec<Workspace>,
    pub focus_manager: FocusManager,
    pub layout_manager: LayoutManager,
    pub mode: Mode,
    pub layouts: Vec<Layout>,
    pub scratchpads: Vec<ScratchPad>,
    pub active_scratchpads: HashMap<ScratchPadName, VecDeque<ChildID>>,
    pub actions: VecDeque<DisplayAction>,
    pub tags: Tags,
    pub mousekey: Vec<String>,
    pub max_window_width: Option<Size>,
    pub default_width: i32,
    pub default_height: i32,
    pub disable_tile_drag: bool,
    pub insert_behavior: InsertBehavior,
    pub single_window_border: bool,
}Fields§
§screens: Vec<Screen>§windows: Vec<Window>§workspaces: Vec<Workspace>§focus_manager: FocusManager§layout_manager: LayoutManager§mode: Mode§layouts: Vec<Layout>§scratchpads: Vec<ScratchPad>§active_scratchpads: HashMap<ScratchPadName, VecDeque<ChildID>>§actions: VecDeque<DisplayAction>§mousekey: Vec<String>§max_window_width: Option<Size>§default_width: i32§default_height: i32§disable_tile_drag: bool§insert_behavior: InsertBehavior§single_window_border: boolImplementations§
source§impl State
 
impl State
sourcepub fn handle_window_focus(&mut self, handle: &WindowHandle)
 
pub fn handle_window_focus(&mut self, handle: &WindowHandle)
Focuses a window based upon the FocusBehaviour
sourcepub fn focus_window(&mut self, handle: &WindowHandle)
 
pub fn focus_window(&mut self, handle: &WindowHandle)
Focuses the given window.
sourcepub fn focus_workspace(&mut self, workspace: &Workspace)
 
pub fn focus_workspace(&mut self, workspace: &Workspace)
Focuses the given workspace.
sourcepub fn focus_workspace_with_point(&mut self, x: i32, y: i32)
 
pub fn focus_workspace_with_point(&mut self, x: i32, y: i32)
Focuses the workspace containing a given point.
sourcepub fn focus_window_with_point(&mut self, x: i32, y: i32)
 
pub fn focus_window_with_point(&mut self, x: i32, y: i32)
Focuses the window containing a given point.
sourcepub fn validate_focus_at(&mut self, handle: &WindowHandle)
 
pub fn validate_focus_at(&mut self, handle: &WindowHandle)
Validates that the given window is focused.
source§impl State
 
impl State
pub fn mouse_combo_handler(
    &mut self,
    modmask: ModMask,
    button: Button,
    handle: WindowHandle,
    x: i32,
    y: i32
) -> bool
source§impl State
 
impl State
pub fn sort_windows(&mut self)
pub fn handle_single_border(&mut self, border_width: i32)
pub fn move_to_top(&mut self, handle: &WindowHandle) -> Option<()>
pub fn update_static(&mut self)
sourcepub fn restore_state(&mut self, old_state: &Self)
 
pub fn restore_state(&mut self, old_state: &Self)
Apply saved state to a running manager.
Trait Implementations§
source§impl<'de> Deserialize<'de> for State
 
impl<'de> Deserialize<'de> for State
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