Trait SystemWindowManager

Source
pub trait SystemWindowManager {
    // Required methods
    fn get_all_windows() -> Result<Vec<SystemWindow>, String>;
    fn get_window_by_handle(handle: u64) -> Result<Option<SystemWindow>, String>;
    fn move_window(handle: u64, x: i32, y: i32) -> Result<(), String>;
    fn resize_window(handle: u64, width: u32, height: u32) -> Result<(), String>;
    fn set_window_position_and_size(
        handle: u64,
        x: i32,
        y: i32,
        width: u32,
        height: u32,
    ) -> Result<(), String>;
    fn minimize_window(handle: u64) -> Result<(), String>;
    fn maximize_window(handle: u64) -> Result<(), String>;
    fn restore_window(handle: u64) -> Result<(), String>;
    fn close_window(handle: u64) -> Result<(), String>;
    fn focus_window(handle: u64) -> Result<(), String>;
    fn hide_window(handle: u64) -> Result<(), String>;
    fn show_window(handle: u64) -> Result<(), String>;
}

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§