Crates.io | resolution |
lib.rs | resolution |
version | 0.2.0 |
source | src |
created_at | 2023-05-21 00:19:49.731571 |
updated_at | 2024-07-29 17:37:30.304536 |
description | Retrieves current screen resolution |
homepage | https://github.com/cacilhas/resolution |
repository | https://github.com/cacilhas/resolution |
max_upload_size | |
id | 869682 |
size | 7,233 |
Crate to retrieve screen resolution/dimensions on Linux and macOS.
I have rewrite this same code so many times that it justifies existing.
cargo add resolution
resolution::current_resolution() -> Result<(i32, i32), resolution::ResolutionError>
It receives no parameter and returns current screen’s (width, height)
.