window-getter-rs
This is a Rust library for retrieving information about the windows open on the OS. Currently, it only supports macOS and Windows.
Examples
Platform supports
- macOS
- Windows
- Linux?
I have no plans to make Linux support at this time due to my inexperienced knowledge about Linux. But I'd be happy to receive pull requests.
macOS permission
On macOS, you should need the permission of screen capture. Otherwise, you can't get some window informations.
You can request the screen capture permission in runtime via this crate. Example is here. In development, you can also enable screen capture permission for the apps used to run the project (such as terminal or editors).
License
This project is licensed under the MIT License.