mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-31 13:50:05 -04:00
Rename example, remove debug logging.
This commit is contained in:
23
examples/min_max_size.rs
Normal file
23
examples/min_max_size.rs
Normal file
@@ -0,0 +1,23 @@
|
||||
#[cfg(target_os = "android")]
|
||||
#[macro_use]
|
||||
extern crate android_glue;
|
||||
|
||||
extern crate winit;
|
||||
|
||||
#[cfg(target_os = "android")]
|
||||
android_start!(main);
|
||||
|
||||
fn main() {
|
||||
let window = winit::WindowBuilder::new()
|
||||
.with_min_dimensions(400, 200)
|
||||
.with_max_dimensions(800, 400)
|
||||
.build()
|
||||
.unwrap();
|
||||
|
||||
for event in window.wait_events() {
|
||||
match event {
|
||||
winit::Event::Closed => break,
|
||||
_ => ()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user