resolution

Crates.ioresolution
lib.rsresolution
version0.2.0
sourcesrc
created_at2023-05-21 00:19:49.731571
updated_at2024-07-29 17:37:30.304536
descriptionRetrieves current screen resolution
homepagehttps://github.com/cacilhas/resolution
repositoryhttps://github.com/cacilhas/resolution
max_upload_size
id869682
size7,233
Montegasppα ℭacilhας (cacilhas)

documentation

README

Resolution

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

Rational

I have rewrite this same code so many times that it justifies existing.

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

Commit count: 7

cargo fmt