+
    Ri	                        R t ^ RIHt ^ RIHt ^RIHt . ROt ! R R]4      t ! R	 R]4      t	 ! R
 R]4      t
 ! R R4      t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.
)annotations)Enum)PointMouseEventTypeMouseButtonMouseModifier
MouseEventc                  *    ] tR t^tRtRtRtRtRtRt	R# )r   MOUSE_UP
MOUSE_DOWN	SCROLL_UPSCROLL_DOWN
MOUSE_MOVE N)
__name__
__module____qualname____firstlineno__r
   r   r   r   r   __static_attributes__r       Z/home/ubuntu/hermes-agent/venv/lib/python3.14/site-packages/prompt_toolkit/mouse_events.pyr   r      s!     H JIK Jr   c                  *    ] tR t^,tRtRtRtRtRtRt	R# )r   LEFTMIDDLERIGHTNONEUNKNOWNr   N)
r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   ,   s    DFE D
 Gr   c                  "    ] tR t^:tRtRtRtRtR# )r   SHIFTALTCONTROLr   N)r   r   r   r   r   r   r    r   r   r   r   r   r   :   s    E
CGr   c                  2    ] tR t^@tRtR R ltR R ltRtR# )r   zz
Mouse event, sent to `UIControl.mouse_handler`.

:param position: `Point` instance.
:param event_type: `MouseEventType`.
c          
     ,    V ^8  d   QhRRRRRRRRR	R
/# )   positionr   
event_typer   buttonr   	modifierszfrozenset[MouseModifier]returnNoner   )formats   "r   __annotate__MouseEvent.__annotate__H   s<     
# 
#
# #
# 	
#
 ,
# 

#r   c                	6    Wn         W n        W0n        W@n        R # )Nr$   r%   r&   r'   )selfr$   r%   r&   r'   s   &&&&&r   __init__MouseEvent.__init__H   s     !$"r   c                   V ^8  d   QhRR/# )r#   r(   strr   )r*   s   "r   r+   r,   T   s     g g# gr   c           	     	x    R V P                   : RV P                  : RV P                  : RV P                  : R2	# )zMouseEvent(,)r.   )r/   s   &r   __repr__MouseEvent.__repr__T   s;    T]]-Qt.A4;;/QRSWSaSaRddeffr   )r&   r%   r'   r$   N)r   r   r   r   __doc__r0   r7   r   r   r   r   r   r   @   s    
#g gr   N)r   r   r   r   )r9   
__future__r   enumr   data_structuresr   __all__r   r   r   r   r   r   r   <module>r>      sJ   $ #  "
JT  $ D g gr   