[][src]Function tetra::window::set_width

pub fn set_width(ctx: &mut Context, width: i32) -> Result

Sets the width of the window.

Errors

  • TetraError::FailedToChangeDisplayMode will be returned if the game was unable to change the window size.