Skip to content

crate to retrieve screen resolution/dimensions on Linux, macOS, and Windows

License

Notifications You must be signed in to change notification settings

cacilhas/resolution

Folders and files

NameName
Last commit message
Last commit date
Jul 29, 2024
Jan 28, 2024
Jul 29, 2024
May 21, 2023
Jul 29, 2024
Jul 29, 2024

Repository files navigation

Resolution

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

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

About

crate to retrieve screen resolution/dimensions on Linux, macOS, and Windows

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages