summaryrefslogtreecommitdiffstats
path: root/venv/Lib/site-packages/pygame/cursors.pyi
blob: 1f87c9e24792ff960343baa1c86e9c095afb5576 (plain)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
from typing import Tuple, Sequence, Optional, Iterable

from pygame.surface import Surface

_Small_string = Tuple[
    str, str, str, str, str, str, str, str, str, str, str, str, str, str, str, str
]
_Big_string = Tuple[
    str,
    str,
    str,
    str,
    str,
    str,
    str,
    str,
    str,
    str,
    str,
    str,
    str,
    str,
    str,
    str,
    str,
    str,
    str,
    str,
    str,
    str,
    str,
    str,
]

arrow: Cursor
diamond: Cursor
broken_x: Cursor
tri_left: Cursor
tri_right: Cursor
thickarrow_strings: _Big_string
sizer_x_strings: _Small_string
sizer_y_strings: _Big_string
sizer_xy_strings: _Small_string

def compile(
    strings: Sequence[str],
    black: Optional[str] = "X",
    white: Optional[str] = ".",
    xor="o",
) -> Tuple[Sequence[int], Sequence[int]]: ...
def load_xbm(cursorfile: str, maskfile: str): ...


class Cursor(Iterable):
    @overload
    def __init__(constant: int) -> None: ...
    @overload
    def __init__(size: Union[Tuple[int, int], List[int]],
                 hotspot: Union[Tuple[int, int], List[int]],
                 xormasks: Sequence[int],
                 andmasks: Sequence[int],
                 ) -> None: ...
    @overload
    def __init__(hotspot: Union[Tuple[int, int], List[int]],
                 surface: Surface,
                 ) -> None: ...

    def __iter__() -> Iterator[object]: ...

    type: string
    data: Union[Tuple[int],
                Tuple[Union[Tuple[int, int], List[int]],
                      Union[Tuple[int, int], List[int]],
                      Sequence[int],
                      Sequence[int]],
                Tuple[int, Surface]]