Files
ServerSync/lib/prompt_toolkit/__pycache__/mouse_events.cpython-314.pyc

49 lines
3.2 KiB
Plaintext
Raw Normal View History

2026-02-12 02:28:23 +02:00
+
9<><39>i<EFBFBD> <00><01><><00>Rt^RIHt^RIHt^RIHt.R Ot!RR]4t!R R]4t !R
R]4t
!R R4t R #)a<>
Mouse events.
How it works
------------
The renderer has a 2 dimensional grid of mouse event handlers.
(`prompt_toolkit.layout.MouseHandlers`.) When the layout is rendered, the
`Window` class will make sure that this grid will also be filled with
callbacks. For vt100 terminals, mouse events are received through stdin, just
like any other key press. There is a handler among the key bindings that
catches these events and forwards them to such a mouse event handler. It passes
through the `Window` class where the coordinates are translated from absolute
coordinates to coordinates relative to the user control, and there
`UIControl.mouse_handler` is called.
)<01> annotations)<01>Enum)<01>Point<6E>MouseEventType<70> MouseButton<6F> MouseModifier<65>
MouseEventc<01>*<00>]tRt^tRtRtRtRtRtRt R#)r<00>MOUSE_UP<55>
MOUSE_DOWN<EFBFBD> SCROLL_UP<55> SCROLL_DOWN<57>
MOUSE_MOVE<EFBFBD>N)
<EFBFBD>__name__<5F>
__module__<EFBFBD> __qualname__<5F>__firstlineno__r
r r r r<00>__static_attributes__r<00><00>B/tmp/pip-target-wqrk2shd/lib/python/prompt_toolkit/mouse_events.pyrrs!<00><00><1A>H<EFBFBD><1E>J<EFBFBD><1B>I<EFBFBD><1F>K<EFBFBD><1E>Jrc<01>*<00>]tRt^,tRtRtRtRtRtRt R#)r<00>LEFT<46>MIDDLE<4C>RIGHT<48>NONE<4E>UNKNOWNrN)
rrrrrrrrrrrrrrr,s<00><00> <11>D<EFBFBD> <15>F<EFBFBD> <13>E<EFBFBD> <12>D<EFBFBD>
<18>Grc<01>"<00>]tRt^:tRtRtRtRtR#)r<00>SHIFT<46>ALT<4C>CONTROLrN)rrrrrrr rrrrrr:s<00><00> <13>E<EFBFBD>
<0F>C<EFBFBD><17>Grc<01>2<00>]tRt^@tRtRRltRRltRtR#)rzz
Mouse event, sent to `UIControl.mouse_handler`.
:param position: `Point` instance.
:param event_type: `MouseEventType`.
c
<01>,<00>V^8<>dQhRRRRRRRRR R
/#) <0B><00>positionr<00>
event_typer<00>buttonr<00> modifierszfrozenset[MouseModifier]<5D>return<72>Noner)<01>formats"r<00> __annotate__<5F>MouseEvent.__annotate__Hs<<00><00>
#<23>
#<23><17>
#<23>#<23>
#<23><1C>
#<23>
,<2C>
#<23>
<0E>
#rc <09>6<00>WnW nW0nW@nR#)N<>r$r%r&r')<05>selfr$r%r&r's&&&&&r<00>__init__<5F>MouseEvent.__init__Hs<00><00>!<21> <0A>$<24><0F><1C> <0B>"<22>rc<01><00>V^8<>dQhRR/#)r#r(<00>strr)r*s"rr+r,Ts<00><00>g<01>g<01>#<23>grc  <09>x<00>RVP: RVP: RVP: RVP: R2 #)z MouseEvent(<28>,<2C>)r.)r/s&r<00>__repr__<5F>MouseEvent.__repr__Ts;<00><00><1C>T<EFBFBD>]<5D>]<5D>-<2D>Q<EFBFBD>t<EFBFBD><EFBFBD><EFBFBD>.A<><11>4<EFBFBD>;<3B>;<3B>/<2F>QR<51>SW<53>Sa<53>Sa<53>Rd<52>de<64>f<>fr)r&r%r'r$N)rrrr<00>__doc__r0r7rrrrrr@s<00><00><08>
#<23>g<01>grN)rrrr) r9<00>
__future__r<00>enumr<00>data_structuresr<00>__all__rrrrrrr<00><module>r>sJ<00><01><04>$#<23><15>"<22>
J<EFBFBD><07> <1E>T<EFBFBD> <1E> <18>$<24> <18><18>D<EFBFBD><18> g<01>gr