pub fn draw_color(&self) -> Result<Color, String> {
    let mut color = Color::default();
    let out = unsafe {
      SDL_GetRenderDrawColor(
        self.ptr,
        &mut color.r,
        &mut color.g,
        &mut color.b,
        &mut color.a,
      )
    };
    if out == 0 {
      Ok(color)
    } else {
      Err(get_error())
    }
  }
/// Obtains the current draw color.
Obtains the current draw color.
Obtains the current draw color .
pub fn draw_color(&self) -> Result<Color, String> {
    let mut color = Color::default();
    let out = unsafe {
      SDL_GetRenderDrawColor(
        self.ptr,
        &mut color.r,
        &mut color.g,
        &mut color.b,
        &mut color.a,
      )
    };
    if out == 0 {
      Ok(color)
    } else {
      Err(get_error())
    }
  }
pub fn draw_color ( & self ) -> Result < Color , String > { let mut color = Color :: default ( ) ; let out = unsafe { SDL_GetRenderDrawColor ( self . ptr , & mut color . r , & mut color . g , & mut color . b , & mut color . a , ) } ; if out == 0 { Ok ( color ) } else { Err ( get_error ( ) ) } }
Obtains the current draw color.
Obtains the current draw color .
&self
&self