4 releases
0.2.0 | Jul 29, 2024 |
---|---|
0.1.4 | May 23, 2024 |
0.1.3 | Feb 16, 2024 |
0.1.2 |
|
0.1.1 | May 21, 2023 |
#31 in #linux-macos
Used in 2 crates
(via rscenes)
6KB
71 lines
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
Dependencies
~0–9MB
~67K SLoC