This commit is contained in:
Waylon Walker 2022-03-31 20:20:07 -05:00
commit 38355d2442
No known key found for this signature in database
GPG key ID: 66E2BF2B4190EFE4
9083 changed files with 1225834 additions and 0 deletions

View file

@ -0,0 +1,74 @@
from typing import Optional, Sequence
from pygame.rect import Rect
from pygame.surface import Surface
from ._common import _ColorValue, _Coordinate, _RectValue
def rect(
surface: Surface,
color: _ColorValue,
rect: _RectValue,
width: int = 0,
border_radius: int = -1,
border_top_left_radius: int = -1,
border_top_right_radius: int = -1,
border_bottom_left_radius: int = -1,
border_bottom_right_radius: int = -1,
) -> Rect: ...
def polygon(
surface: Surface,
color: _ColorValue,
points: Sequence[_Coordinate],
width: int = 0,
) -> Rect: ...
def circle(
surface: Surface,
color: _ColorValue,
center: _Coordinate,
radius: float,
width: int = 0,
draw_top_right: Optional[bool] = None,
draw_top_left: Optional[bool] = None,
draw_bottom_left: Optional[bool] = None,
draw_bottom_right: Optional[bool] = None,
) -> Rect: ...
def ellipse(
surface: Surface, color: _ColorValue, rect: _RectValue, width: int = 0
) -> Rect: ...
def arc(
surface: Surface,
color: _ColorValue,
rect: _RectValue,
start_angle: float,
stop_angle: float,
width: int = 1,
) -> Rect: ...
def line(
surface: Surface,
color: _ColorValue,
start_pos: _Coordinate,
end_pos: _Coordinate,
width: int = 1,
) -> Rect: ...
def lines(
surface: Surface,
color: _ColorValue,
closed: bool,
points: Sequence[_Coordinate],
width: int = 1,
) -> Rect: ...
def aaline(
surface: Surface,
color: _ColorValue,
start_pos: _Coordinate,
end_pos: _Coordinate,
blend: int = 1,
) -> Rect: ...
def aalines(
surface: Surface,
color: _ColorValue,
closed: bool,
points: Sequence[_Coordinate],
blend: int = 1,
) -> Rect: ...