Struct awi::Window
[−]
[src]
pub struct Window { /* fields omitted */ }A window on Windows, Android, IOS, Wayland, XWindows, Direct to Display, Aldaron's OS, Arduino, Nintendo Switch, A Web Page, or No OS.
Methods
impl Window[src]
fn new(title: &str, icon: Graphic) -> Window[src]
Create a window, using title as the title, and icon as the
window icon. The format of icon is as follows:
(width, height, pixels). You can load icons with aci.
fn update(&mut self)[src]
Redraw the window, and get any new user input.
fn fullscreen(&mut self)[src]
Toggle whether the window is fullscreen.
fn get_connection(&self) -> WindowConnection[src]
Get the type of connection, plus native window and connection
handles to pass to ffi. See WindowConnection for more details.
fn wh(&self) -> (u32, u32)[src]
Get the width and height of the window, as a tuple.
fn input(&mut self) -> Option<Input>[src]
Get input, if there's any.