active-win-pos-rs 0.1.0

Get position and size of the active window on Windows and MacOS
Documentation

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

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

Example

% cargo run --example simple

Output:

% window position: WindowPosition { x: 733.0, y: 353.0, width: 815.0, height: 583.0 }