78 lines
1.6 KiB
Python
78 lines
1.6 KiB
Python
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]]
|
|
|