use sprites::SpriteManager;
use sdl2::video::WindowContext;
use sdl2::render::TextureCreator;
+use sdl2::event::WindowEvent;
#[macro_use] mod common;
mod boll;
point!(0.0, 0.0),
)))
}
+ Event::Window { win_event: WindowEvent::Resized(x, y), .. } => { println!("window resized({}, {})", x, y) }
+ Event::Window { win_event: WindowEvent::Maximized, .. } => { println!("window maximized") }
+ Event::Window { win_event: WindowEvent::Restored, .. } => { println!("window restored") }
+ Event::Window { win_event: WindowEvent::Enter, .. } => { println!("window enter") }
+ Event::Window { win_event: WindowEvent::Leave, .. } => { println!("window leave") }
+ Event::Window { win_event: WindowEvent::FocusGained, .. } => { println!("window focus gained") }
+ Event::Window { win_event: WindowEvent::FocusLost, .. } => { println!("window focus lost") }
_ => {}
}
}