o
    i                     @   sX   d dl mZ ddlmZ ddlmZmZmZ G dd deeZej	G dd deZ
d	S )
    )nullcontext   )FigureCanvasCairo)GtkFigureCanvasGTK4_BackendGTK4c                   @   s   e Zd ZdZdd ZdS )FigureCanvasGTK4CairoTc              	   C   s   | j r| j  nt = | j| | j}|d| d|  |  }t	| 
 ||j|j|j|j | jj| j_| j| j W d    d S 1 sKw   Y  d S )Nr   )ZtoolbarZ_wait_cursor_for_draw_cmr   Z	_rendererZset_contextZdevice_pixel_ratioscaleZget_allocationr   Zrender_backgroundZget_style_contextxywidthheightZfigureZdpiZdraw)selfZwidgetctxr	   Z
allocation r   t/var/www/html/eduruby.in/lip-sync/lip-sync-env/lib/python3.10/site-packages/matplotlib/backends/backend_gtk4cairo.pyon_draw_event
   s   "z#FigureCanvasGTK4Cairo.on_draw_eventN)__name__
__module____qualname__Z_context_is_scaledr   r   r   r   r   r      s    r   c                   @   s   e Zd ZeZdS )_BackendGTK4CairoN)r   r   r   r   ZFigureCanvasr   r   r   r   r      s    r   N)
contextlibr   Zbackend_cairor   Zbackend_gtk4r   r   r   r   Zexportr   r   r   r   r   <module>   s    