Struct leftwm_core::state::State
source · [−]pub struct State {Show 17 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,
}
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
Implementations
sourceimpl 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.
sourceimpl State
impl State
pub fn mouse_combo_handler(
&mut self,
modmask: ModMask,
button: Button,
handle: WindowHandle,
x: i32,
y: i32
) -> bool
sourceimpl State
impl State
pub fn sort_windows(&mut self)
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
sourceimpl<'de> Deserialize<'de> for State
impl<'de> Deserialize<'de> for State
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 From<&State> for ManagerState
impl From<&State> for ManagerState
Auto Trait Implementations
impl RefUnwindSafe for State
impl Send for State
impl Sync for State
impl Unpin for State
impl UnwindSafe for State
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