mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-26 22:53:15 -04:00
12 lines
285 B
Rust
12 lines
285 B
Rust
extern crate winit;
|
|
use winit::event_loop::EventLoop;
|
|
use winit::window::WindowBuilder;
|
|
|
|
fn main() {
|
|
let event_loop = EventLoop::new();
|
|
let window = WindowBuilder::new().build(&event_loop).unwrap();
|
|
|
|
dbg!(window.available_monitors());
|
|
dbg!(window.primary_monitor());
|
|
}
|