rustdesk/libs/scrap/examples/list.rs

17 lines
301 B
Rust
Raw Normal View History

2021-03-29 15:59:14 +08:00
extern crate scrap;
use scrap::Display;
fn main() {
let displays = Display::all().unwrap();
for (i, display) in displays.iter().enumerate() {
println!(
"Display {} [{}x{}]",
i + 1,
display.width(),
display.height()
);
}
}