[][src]Function tetra::window::toggle_fullscreen

pub fn toggle_fullscreen(ctx: &mut Context) -> Result

Enables fullscreen if it is currently disabled, or vice-versa.

Errors

If the application's fullscreen state could not be changed, this function will return a TetraError::Sdl.