Draw a rectangle on the current rendering target.

        Args:
            rect (Rect): The destination rectangle, or None to outline the entire rendering target.

        Raises:
            SDLError: If an error is encountered.

def draw_rect(self, rect):
        """Draw a rectangle on the current rendering target.

        Args:
            rect (Rect): The destination rectangle, or None to outline the entire rendering target.

        Raises:
            SDLError: If an error is encountered.
        """
        check_int_err(lib.SDL_RenderDrawRect(self._ptr, rect._ptr))