forked from bschnurr/python-type-stubs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtransform.pyi
More file actions
43 lines (40 loc) · 1.99 KB
/
Copy pathtransform.pyi
File metadata and controls
43 lines (40 loc) · 1.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
from typing import Optional, Sequence, Tuple, Union
from . import color
from . import math
from . import rect
from . import surface
_Coordinate = Union[Tuple[float, float], Sequence[float], math.Vector2]
_ColorValue = Union[color.Color, Tuple[int, int, int], Sequence[int], int, Tuple[int, int, int, int]]
_RectValue = Union[
rect.Rect, Union[Tuple[int, int, int, int], Sequence[int]], Union[Tuple[_Coordinate, _Coordinate], Sequence[_Coordinate]],
]
def flip(surface: surface.Surface, xbool: bool, ybool: bool) -> surface.Surface: ...
def scale(
surface: surface.Surface, size: Union[Tuple[int, int], Sequence[int]], dest_surface: Optional[surface.Surface] = ...,
) -> surface.Surface: ...
def rotate(surface: surface.Surface, angle: float) -> surface.Surface: ...
def rotozoom(surface: surface.Surface, angle: float, scale: float) -> surface.Surface: ...
def scale2x(surface: surface.Surface, dest_surface: Optional[surface.Surface] = ...) -> surface.Surface: ...
def smoothscale(
surface: surface.Surface, size: Union[Tuple[int, int], Sequence[int]], dest_surface: Optional[surface.Surface] = ...,
) -> surface.Surface: ...
def get_smoothscale_backend() -> str: ...
def set_smoothscale_backend(value: str) -> None: ...
def chop(surface: surface.Surface, rect: _RectValue) -> surface.Surface: ...
def laplacian(surface: surface.Surface, dest_surface: surface.Surface) -> surface.Surface: ...
def average_surfaces(
surfaces: Sequence[surface.Surface],
dest_surface: Optional[surface.Surface] = ...,
palette_colors: Optional[Union[bool, int]] = ...,
) -> surface.Surface: ...
def average_color(surface: surface.Surface, rect: Optional[_RectValue]) -> color.Color: ...
def threshold(
dest_surface: surface.Surface,
surf: surface.Surface,
search_color: _ColorValue,
threshold: Optional[_ColorValue] = ...,
set_color: Optional[_ColorValue] = ...,
set_behavior: Optional[int] = ...,
search_surf: Optional[surface.Surface] = ...,
inverse_set: Optional[bool] = ...,
) -> int: ...