window-observer-rs
This crate provides an observer that receives events such as window movement and resizing. It is designed to receive window events on Windows and macOS for cross-platform applications.
Example
use ;
async
Platform supports
- macOS*
- Windows
- Linux? I have no plans to make this at this time due to my inexperienced knowledge about Linux. But I'd be happy to receive pull requests.
* Note that window operations on macOS use the Accessibility API, so accessibility permissions are required.
Acknowledgements
- Windows event handler: wineventhook-rs
License
This project is licensed under the MIT License.