mirror of
https://github.com/tauri-apps/winit.git
synced 2026-02-04 18:31:18 +01:00
* [#1111] Use consistent return types for available_monitors() Always use `impl Iterator<Item = MonitorHandle>` instead of `AvailableMonitorsIter`. Fix an example that used the Debug implementation of `AvailableMonitorsIter`. * [#1111] Update changelog * [#1111] Remove AvailableMonitorsIter type completely * [#1111] Remove doc references to AvailableMonitorsIter
10 lines
276 B
Rust
10 lines
276 B
Rust
use winit::{event_loop::EventLoop, window::WindowBuilder};
|
|
|
|
fn main() {
|
|
let event_loop = EventLoop::new();
|
|
let window = WindowBuilder::new().build(&event_loop).unwrap();
|
|
|
|
dbg!(window.available_monitors().collect::<Vec<_>>());
|
|
dbg!(window.primary_monitor());
|
|
}
|