windows_various_rect/
windows_various_rect.rs1#[cfg(not(target_os = "windows"))]
2fn main() {
3 panic!("This example only supports windows.");
4}
5
6#[cfg(target_os = "windows")]
7fn main() {
8 for window in window_getter::get_windows().unwrap() {
9 let window = window.into_platform_window();
10
11 println!("\n{:?} ({:?})", window.title(), window.hwnd());
12 println!("\tGetWindowRect: {:?}", window.rect());
13 println!(
14 "\tDwmGetWindowAttribute with DWMWA_EXTENDED_FRAME_BOUNDS: {:?}",
15 window.extended_frame_bounds()
16 );
17 }
18}