Function poke_a_mango::ops::create_window [] [src]

pub fn create_window<W: BuildFromWindowSettings>(
    desktop_size: (u32, u32)
) -> Result<W, Error>

Create a window based on the size of the target desktop.

Much like the raw equivalnt of creating the window, the return type is be dependent on the user-side's explicit expression type.

Use glutin::get_{primary,available}_monitor[s]() to get the size of the respective desktops.

Examples

Create a window for an HD monitor:

let window: PistonWindow = create_window((1280, 720)).unwrap();