Struct winit_window::WinitWindow
[−]
[src]
pub struct WinitWindow { pub window: VulkanoWinWindow, pub events_loop: EventsLoop, pub surface: Arc<Surface>, // some fields omitted }
Fields
window: VulkanoWinWindow
events_loop: EventsLoop
surface: Arc<Surface>
Methods
impl WinitWindow
[src]
fn new_vulkano(instance: Arc<Instance>, title: &str, size: Size) -> Self
Trait Implementations
impl Window for WinitWindow
[src]
fn set_should_close(&mut self, value: bool)
Tells the window to close or stay open.
fn should_close(&self) -> bool
Returns true if the window should close.
fn size(&self) -> Size
Gets the size of the window.
fn swap_buffers(&mut self)
Swaps render buffers. Read more
fn wait_event(&mut self) -> Input
Wait indefinitely for an input event to be available from the window.
fn wait_event_timeout(&mut self, _timeout: Duration) -> Option<Input>
Wait for an input event to be available from the window or for the specified timeout to be reached. Read more
fn poll_event(&mut self) -> Option<Input>
Polls an input event from the window. Read more
fn draw_size(&self) -> Size
Gets the draw size of the window. Read more