resolution 0.1.0

Retrieves current screen resolution
Documentation
resolution-0.1.0 has been yanked.

Resolution

Crate to retrieve screen resolution/dimensions on Linux and macOS.

Rational

I have rewrite this same code so many times that it has proved its necessity to exist.

Install

cargo add resolution

Interface

  • resolution::current_resolution() -> Result<(i32, i32), resolution::ResolutionError>

It receives no parameter and returns current screen’s (width, height).

License