§
    ŒŸj©	  ã                  ó¤   — d Z ddlmZ ddlmZ ddlmZ g d¢Z G d„ de¦  «        Z G d	„ d
e¦  «        Z	 G d„ de¦  «        Z
 G d„ d¦  «        ZdS )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                  ó"   — e Zd ZdZdZdZdZdZdS )r   ÚMOUSE_UPÚ
MOUSE_DOWNÚ	SCROLL_UPÚSCROLL_DOWNÚ
MOUSE_MOVEN)Ú__name__Ú
__module__Ú__qualname__r   r   r   r   r   © ó    úh/var/www/finuniver-perm.ru/html/student/venv/lib/python3.11/site-packages/prompt_toolkit/mouse_events.pyr   r      s-   € € € € € ð €Hð €Jà€IØ€Kð €J€J€Jr   r   c                  ó"   — e Zd ZdZdZdZdZdZdS )r   ÚLEFTÚMIDDLEÚRIGHTÚNONEÚUNKNOWNN)r   r   r   r   r   r   r   r   r   r   r   r   r   ,   s+   € € € € € Ø€DØ€FØ€Eð €Dð
 €G€G€Gr   r   c                  ó   — e Zd ZdZdZdZdS )r	   ÚSHIFTÚALTÚCONTROLN)r   r   r   r   r   r    r   r   r   r	   r	   :   s   € € € € € Ø€EØ
€CØ€G€G€Gr   r	   c                  ó"   — e Zd ZdZdd„Zdd„ZdS )r
   zŠ
    Mouse event, sent to `UIControl.mouse_handler`.

    :param position: `Point` instance.
    :param event_type: `MouseEventType`.
    Úpositionr   Ú
event_typer   Úbuttonr   Ú	modifiersúfrozenset[MouseModifier]ÚreturnÚNonec                ó>   — || _         || _        || _        || _        d S )N©r"   r#   r$   r%   )Úselfr"   r#   r$   r%   s        r   Ú__init__zMouseEvent.__init__H   s$   € ð !ˆŒØ$ˆŒØˆŒØ"ˆŒˆˆr   Ústrc           	     óH   — d| j         ›d| j        ›d| j        ›d| j        ›d�	S )NzMouseEvent(ú,ú)r*   )r+   s    r   Ú__repr__zMouseEvent.__repr__T   s5   € Øf˜Tœ]ÐfÐf¨t¬ÐfÐfÀ4Ä;ÐfÐfÐSWÔSaÐfÐfÐfÐfr   N)
r"   r   r#   r   r$   r   r%   r&   r'   r(   )r'   r-   )r   r   r   Ú__doc__r,   r1   r   r   r   r
   r
   @   sL   € € € € € ðð ð
#ð 
#ð 
#ð 
#ðgð gð gð gð gð gr   r
   N)r2   Ú
__future__r   Úenumr   Údata_structuresr   Ú__all__r   r   r	   r
   r   r   r   ú<module>r7      s  ððð ð$ #Ð "Ð "Ð "Ð "Ð "à Ð Ð Ð Ð Ð à "Ð "Ð "Ð "Ð "Ð "à
JÐ
JÐ
J€ðð ð ð ð �Tñ ô ð ð ð ð ð ð �$ñ ô ð ðð ð ð ð �Dñ ô ð ðgð gð gð gð gñ gô gð gð gð gr   