active-win-pos-rs

A small Rust library that let's you get position and size of the active window on Windows and MacOS

Build

sh % git clone https://github.com/dimusic/active-win-pos-rs.git % cd active-win-pos-rs % cargo build

Example

sh % cargo run --example simple Output: % window position: WindowPosition { x: 733.0, y: 353.0, width: 815.0, height: 583.0 }