ai-content-maker/.venv/Lib/site-packages/pygame/event.pyi

52 lines
1.5 KiB
Python
Raw Normal View History

2024-05-12 06:17:42 +03:00
from typing import (
Any,
Dict,
List,
Optional,
Sequence,
SupportsInt,
Tuple,
Union,
final,
overload,
)
@final
class Event:
type: int
dict: Dict[str, Any]
__dict__: Dict[str, Any]
__hash__: None # type: ignore
def __init__(
self, type: int, dict: Dict[str, Any] = ..., **kwargs: Any
) -> None: ...
def __getattribute__(self, name: str) -> Any: ...
def __setattr__(self, name: str, value: Any) -> None: ...
def __delattr__(self, name: str) -> None: ...
def __bool__(self) -> bool: ...
_EventTypes = Union[SupportsInt, Tuple[SupportsInt, ...], Sequence[SupportsInt]]
def pump() -> None: ...
def get(
eventtype: Optional[_EventTypes] = None,
pump: Any = True,
exclude: Optional[_EventTypes] = None,
) -> List[Event]: ...
def poll() -> Event: ...
def wait(timeout: int = 0) -> Event: ...
def peek(eventtype: Optional[_EventTypes] = None, pump: Any = True) -> bool: ...
def clear(eventtype: Optional[_EventTypes] = None, pump: Any = True) -> None: ...
def event_name(type: int) -> str: ...
def set_blocked(type: Optional[_EventTypes]) -> None: ...
def set_allowed(type: Optional[_EventTypes]) -> None: ...
def get_blocked(type: _EventTypes) -> bool: ...
def set_grab(grab: bool) -> None: ...
def get_grab() -> bool: ...
def set_keyboard_grab(grab: bool) -> None: ...
def get_keyboard_grab() -> bool: ...
def post(event: Event) -> bool: ...
def custom_type() -> int: ...
EventType = Event