pub struct WindowManager {
pub windows: Arc<Mutex<HashMap<String, ManagedWindow>>>,
pub workspaces: Arc<Mutex<HashMap<String, Workspace>>>,
pub active_workspace: Arc<Mutex<String>>,
pub config: Arc<Mutex<Config>>,
pub system_windows: Arc<Mutex<HashMap<u64, SystemWindow>>>,
}Fields§
§windows: Arc<Mutex<HashMap<String, ManagedWindow>>>§workspaces: Arc<Mutex<HashMap<String, Workspace>>>§active_workspace: Arc<Mutex<String>>§config: Arc<Mutex<Config>>§system_windows: Arc<Mutex<HashMap<u64, SystemWindow>>>Implementations§
Source§impl WindowManager
impl WindowManager
pub fn new() -> Self
pub fn add_window( &self, handle: u64, title: String, app_name: String, ) -> Result<String, String>
pub fn remove_window(&self, window_id: &str) -> Result<(), String>
pub fn get_windows(&self) -> Vec<ManagedWindow>
pub fn get_workspace_windows(&self, workspace_id: &str) -> Vec<ManagedWindow>
pub fn focus_window(&self, window_id: &str) -> Result<(), String>
pub fn arrange_workspace(&self, workspace_id: &str) -> Result<(), String>
pub fn create_workspace(&self, name: String, layout: LayoutType) -> String
pub fn switch_workspace(&self, workspace_id: &str) -> Result<(), String>
pub fn get_workspaces(&self) -> Vec<Workspace>
pub fn get_active_workspace(&self) -> String
pub fn get_system_windows(&self) -> Result<Vec<SystemWindow>, String>
pub fn move_system_window( &self, handle: u64, x: i32, y: i32, ) -> Result<(), String>
pub fn resize_system_window( &self, handle: u64, width: u32, height: u32, ) -> Result<(), String>
pub fn set_system_window_bounds( &self, handle: u64, x: i32, y: i32, width: u32, height: u32, ) -> Result<(), String>
pub fn minimize_system_window(&self, handle: u64) -> Result<(), String>
pub fn maximize_system_window(&self, handle: u64) -> Result<(), String>
pub fn restore_system_window(&self, handle: u64) -> Result<(), String>
pub fn close_system_window(&self, handle: u64) -> Result<(), String>
pub fn focus_system_window(&self, handle: u64) -> Result<(), String>
pub fn hide_system_window(&self, handle: u64) -> Result<(), String>
pub fn show_system_window(&self, handle: u64) -> Result<(), String>
pub fn arrange_system_windows( &self, window_handles: &[u64], ) -> Result<(), String>
Auto Trait Implementations§
impl Freeze for WindowManager
impl RefUnwindSafe for WindowManager
impl Send for WindowManager
impl Sync for WindowManager
impl Unpin for WindowManager
impl UnsafeUnpin for WindowManager
impl UnwindSafe for WindowManager
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