init
This commit is contained in:
commit
38355d2442
9083 changed files with 1225834 additions and 0 deletions
74
.venv/lib/python3.8/site-packages/pygame/draw.pyi
Normal file
74
.venv/lib/python3.8/site-packages/pygame/draw.pyi
Normal 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: ...
|
||||
Loading…
Add table
Add a link
Reference in a new issue