Trait awi::WindowOps [−][src]
pub trait WindowOps { fn new(title: &str, icon: (u16, u16, Vec<u32>), v: Option<i32>) -> Self; fn show(&self); fn update(&self); fn poll_event(
&mut self,
input: &mut InputQueue,
wh: &mut (u16, u16),
keyboard: &mut Keyboard
) -> bool; fn get_connection(&self) -> WindowConnection; }
Native window operations for implementing new platforms.
Required Methods
fn new(title: &str, icon: (u16, u16, Vec<u32>), v: Option<i32>) -> 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 (u16, u16),
keyboard: &mut Keyboard
) -> bool
&mut self,
input: &mut InputQueue,
wh: &mut (u16, u16),
keyboard: &mut Keyboard
) -> bool
Poll for events, returns true if there's more. Adds 1+ to input.
fn get_connection(&self) -> WindowConnection
Get connection details