|
@@ -268,6 +268,22 @@ class KeyEventArguments(EventArguments):
|
|
modifiers: KeyboardModifiers
|
|
modifiers: KeyboardModifiers
|
|
|
|
|
|
|
|
|
|
|
|
+@dataclass(**KWONLY_SLOTS)
|
|
|
|
+class ScrollInfo:
|
|
|
|
+ verticalPosition: int
|
|
|
|
+ verticalPercentage: float
|
|
|
|
+ verticalSize: int
|
|
|
|
+ verticalContainerSize: int
|
|
|
|
+ horizontalPosition: int
|
|
|
|
+ horizontalPercentage: float
|
|
|
|
+ horizontalSize: int
|
|
|
|
+ horizontalContainerSize: int
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+@dataclass(**KWONLY_SLOTS)
|
|
|
|
+class ScrollEventArguments(EventArguments):
|
|
|
|
+ info: ScrollInfo
|
|
|
|
+
|
|
def handle_event(handler: Optional[Callable[..., Any]],
|
|
def handle_event(handler: Optional[Callable[..., Any]],
|
|
arguments: Union[EventArguments, Dict], *,
|
|
arguments: Union[EventArguments, Dict], *,
|
|
sender: Optional['Element'] = None) -> None:
|
|
sender: Optional['Element'] = None) -> None:
|