Trait awi::WindowOps
[−]
[src]
pub trait WindowOps { fn new(title: &str, icon: (u32, u32, &[u32])) -> Self; fn show(&self); fn update(&self); fn poll_event(
&mut self,
input: &mut InputQueue,
wh: &mut (u32, u32),
keyboard: &mut Keyboard
) -> bool; fn fullscreen(&mut self); fn get_connection(&self) -> WindowConnection; }
Native window operations for implementing new platforms.
Required Methods
fn new(title: &str, icon: (u32, u32, &[u32])) -> Self
Create the window.
fn show(&self)
Show the window.
fn update(&self)
Re-draw the window.
fn poll_event(
&mut self,
input: &mut InputQueue,
wh: &mut (u32, u32),
keyboard: &mut Keyboard
) -> bool
&mut self,
input: &mut InputQueue,
wh: &mut (u32, u32),
keyboard: &mut Keyboard
) -> bool
Poll for events, returns true if there's more. Adds 1+ to input.
fn fullscreen(&mut self)
Toggle fullscreen.
fn get_connection(&self) -> WindowConnection
Get connection details