This package allows you to retrieve precise information about active and open windows on Windows, MacOS, and Linux. You can obtain the position, size, title, and other memory of windows.
usex_win::{get_active_window, get_window_icon};fnmain(){matchget_active_window(){Ok(active_window)=>matchget_window_icon(&active_window){Ok(icon_info)=>{println!("icon info: {:#?}", icon_info);}Err(_)=>{println!("error occurred while getting the icon info of active window");}},Err(_)=>{println!("error occurred while getting the active window");}}}