pub fn display_mode(&self) -> Result<DisplayMode, String> {
    let mut mode = SDL_DisplayMode::default();
    let out = unsafe { SDL_GetWindowDisplayMode(self.ptr, &mut mode) };
    if out == 0 {
      Ok(DisplayMode::from(mode))
    } else {
      Err(get_error())
    }
  }
/// Obtains info about the fullscreen settings of the window.
Obtains info about the fullscreen settings of the window.
Obtains info about the fullscreen settings of the window .
pub fn display_mode(&self) -> Result<DisplayMode, String> {
    let mut mode = SDL_DisplayMode::default();
    let out = unsafe { SDL_GetWindowDisplayMode(self.ptr, &mut mode) };
    if out == 0 {
      Ok(DisplayMode::from(mode))
    } else {
      Err(get_error())
    }
  }
pub fn display_mode ( & self ) -> Result < DisplayMode , String > { let mut mode = SDL_DisplayMode :: default ( ) ; let out = unsafe { SDL_GetWindowDisplayMode ( self . ptr , & mut mode ) } ; if out == 0 { Ok ( DisplayMode :: from ( mode ) ) } else { Err ( get_error ( ) ) } }
Obtains info about the fullscreen settings of the window.
Obtains info about the fullscreen settings of the window .
&self
&self