Ë
    J9ÖcŽ!  ã                   ó¾  — d Z ddlmZ ddlmZ dZdZdZ G d„ dej                  «      Z	d„ Z
 G d	„ d
ej                  «      Zd d„Z G d„ dej                  «      Zd d„Z G d„ dej                  «      Zd d„Z G d„ dej                  «      Zd d„Z G d„ dej                  «      Zd d„Z G d„ dej                  «      Zd d„Z G d„ dej                  «      Zd„ Zd„ Zy)!a“  Composite extension, allowing windows to be rendered to off-screen
storage.

For detailed description, see the protocol specification at
http://freedesktop.org/wiki/Software/CompositeExt

By itself this extension is not very useful, it is intended to be used
together with the DAMAGE and XFIXES extensions.  Typically you would
also need RENDER or glX or some similar method of creating fancy
graphics.
é    )Úrq)ÚdrawableÚ	Compositeé   c                   óâ  — e Zd Z ej                   ej
                  d«       ej                  d«       ej                  «        ej                  d«       ej                  d«      «      Z	 ej                   ej                  «        ej                  d«       ej                  d«       ej                  «        ej                  d«       ej                  d«       ej                  d«      «      Zy)	ÚQueryVersionÚopcoder   Úmajor_versionÚminor_versionr   Úsequence_numberé   N)Ú__name__Ú
__module__Ú__qualname__r   ÚStructÚCard8ÚOpcodeÚRequestLengthÚCard32Ú_requestÚ	ReplyCodeÚPadÚCard16ÚReplyLengthÚ_reply© ó    ú4/usr/lib/python3/dist-packages/Xlib/ext/composite.pyr   r   ,   sÅ   „ Øˆr�y‰yØˆB�H‰H�XÓØˆB�I‰I�a‹LØˆB×ÑÓØˆB�I‰I�oÓ&ØˆB�I‰I�oÓ&ó€Hð ˆR�Y‰YØˆB�L‰L‹NØˆB�F‰F�1‹IØˆB�I‰IÐ'Ó(ØˆB�N‰NÓØˆB�I‰I�oÓ&ØˆB�I‰I�oÓ&ØˆB�F‰F�2‹Jó�Fr   r   c                 ón   — t        | j                  | j                  j                  t        «      dd¬«      S )Nr   é   )Údisplayr	   r
   r   )r   r!   Úget_extension_majorÚextname©Úselfs    r   Úquery_versionr&   ?   s.   € ÜØ—,‘,Ø—‘×1Ñ1´'Ó:ØØô	
ð 
r   c                   ó   — e Zd Z ej                   ej
                  d«       ej                  d«       ej                  «        ej                  d«       ej                  dde
ef«       ej                  d«      «      Zy)ÚRedirectWindowr	   r   ÚwindowÚupdateé   N©r   r   r   r   r   r   r   r   ÚWindowÚSetÚRedirectAutomaticÚRedirectManualr   r   r   r   r   r(   r(   H   ón   „ Øˆr�y‰yØˆ�‰�ÓØˆ�	‰	�!‹Øˆ×ÑÓØˆ�	‰	�(ÓØˆ�‰ˆx˜Ð.°Ð?Ó@Øˆ�‰ˆq‹	ó
�Hr   r(   Nc                 ór   — t        | j                  || j                  j                  t        «      | |¬«       y)zNRedirect the hierarchy starting at this window to off-screen
    storage.
    ©r!   Úonerrorr	   r)   r*   N©r(   r!   r"   r#   ©r%   r*   r4   s      r   Úredirect_windowr7   R   s-   € ô ˜TŸ\™\Ø$Ø ŸL™L×<Ñ<¼WÓEØ Ø"ö	r   c                   ó   — e Zd Z ej                   ej
                  d«       ej                  d«       ej                  «        ej                  d«       ej                  dde
ef«       ej                  d«      «      Zy)ÚRedirectSubwindowsr	   é   r)   r*   r   r+   Nr,   r   r   r   r9   r9   ^   r1   r   r9   c                 ór   — t        | j                  || j                  j                  t        «      | |¬«       y)zsRedirect the hierarchies starting at all current and future
    children to this window to off-screen storage.
    r3   N)r9   r!   r"   r#   r6   s      r   Úredirect_subwindowsr<   h   s-   € ô  §¡Ø!(Ø $§¡× @Ñ @ÄÓ IØ $Ø &ö	r   c                   ó   — e Zd Z ej                   ej
                  d«       ej                  d«       ej                  «        ej                  d«       ej                  dde
ef«       ej                  d«      «      Zy)ÚUnredirectWindowr	   r+   r)   r*   r   Nr,   r   r   r   r>   r>   t   r1   r   r>   c                 ór   — t        | j                  || j                  j                  t        «      | |¬«       y)z,Stop redirecting this window hierarchy.
    r3   N)r>   r!   r"   r#   r6   s      r   Úunredirect_windowr@   ~   s-   € ô ˜tŸ|™|Ø&Ø"Ÿl™l×>Ñ>¼wÓGØ"Ø$ö	r   c                   ó   — e Zd Z ej                   ej
                  d«       ej                  d«       ej                  «        ej                  d«       ej                  dde
ef«       ej                  d«      «      Zy)ÚUnredirectSubindowsr	   r    r)   r*   r   r+   Nr,   r   r   r   rB   rB   ‰   r1   r   rB   c                 ór   — t        | j                  || j                  j                  t        «      | |¬«       y)zAStop redirecting the hierarchies of children to this window.
    r3   Nr5   r6   s      r   Úunredirect_subwindowsrD   “   s-   € ô ˜TŸ\™\Ø$Ø ŸL™L×<Ñ<¼WÓEØ Ø"ö	r   c            	       óÖ   — e Zd Z ej                   ej
                  d«       ej                  d«       ej                  «        ej                  d«       ej                  d«      «      Z
y)ÚCreateRegionFromBorderClipr	   é   Úregionr)   N)r   r   r   r   r   r   r   r   r   r-   r   r   r   r   rF   rF   ž   óW   „ Øˆr�y‰yØˆ�‰�ÓØˆ�	‰	�!‹Øˆ×ÑÓØˆ�	‰	�(ÓØˆ�	‰	�(Óó
�Hr   rF   c                 ó¨   — | j                   j                  «       }t        | j                   || j                   j                  t        «      || ¬«       |S )zƒCreate a region of the border clip of the window, i.e. the area
    that is not clipped by the parent and any sibling windows.
    )r!   r4   r	   rH   r)   )r!   Úallocate_resource_idrF   r"   r#   )r%   r4   Úrids      r   Úcreate_region_from_border_cliprM   §   sG   € ð
 �,‰,×
+Ñ
+Ó
-€CÜØ—,‘,ØØ—‘×1Ñ1´'Ó:ØØõ
ð €Jr   c            	       óÖ   — e Zd Z ej                   ej
                  d«       ej                  d«       ej                  «        ej                  d«       ej                  d«      «      Z
y)ÚNameWindowPixmapr	   é   r)   ÚpixmapN)r   r   r   r   r   r   r   r   r-   ÚPixmapr   r   r   r   rO   rO   ¹   rI   r   rO   c                 ó"  — | j                   j                  «       }t        | j                   || j                   j                  t        «      | |¬«       | j                   j                  dt        j                  «      } || j                   |d¬«      S )a‰  Create a new pixmap that refers to the off-screen storage of
    the window, including its border.

    This pixmap will remain allocated until freed whatever happens
    with the window.  However, the window will get a new off-screen
    pixmap every time it is mapped or resized, so to keep track of the
    contents you must listen for these events and get a new pixmap
    after them.
    )r!   r4   r	   r)   rQ   rQ   r   )Úowner)r!   rK   rO   r"   r#   Úget_resource_classr   rR   )r%   r4   ÚpidÚclss       r   Úname_window_pixmaprX   Â   sn   € ð �,‰,×
+Ñ
+Ó
-€CÜ˜tŸ|™|Ø&Ø"Ÿl™l×>Ñ>¼wÓGØ"Ø!õ	ð �,‰,×
)Ñ
)¨(´H·O±OÓ
D€CÙˆt�|‰|˜S¨!Ô,Ð,r   c            
       óž  — e Zd Z ej                   ej
                  d«       ej                  d«       ej                  «        ej                  d«      «      Z	 ej                   ej                  «        ej                  d«       ej                  d«       ej                  «        ej                  d«       ej                  d«      «      Zy)	ÚGetOverlayWindowr	   é   r)   r   r   Úoverlay_windowé   N)r   r   r   r   r   r   r   r   r-   r   r   r   r   r   r   r   r   r   rZ   rZ   Ø   sª   „ Øˆr�y‰yØˆ�‰�ÓØˆ�	‰	�!‹Øˆ×ÑÓØˆ�	‰	�(Óó	€Hð ˆR�Y‰YØˆ�‰‹Øˆ�‰ˆq‹	Øˆ�	‰	Ð#Ó$Øˆ�‰ÓØˆ�	‰	Ð"Ó#Øˆ�‰ˆr‹
ó�Fr   rZ   c                 ól   — t        | j                  | j                  j                  t        «      | ¬«      S )z2Return the overlay window of the root window.
    )r!   r	   r)   )rZ   r!   r"   r#   r$   s    r   Úget_overlay_windowr_   è   s,   € ô  d§l¡lØ'+§|¡|×'GÑ'GÌÓ'PØ'+ô-ð -r   c                 ót  — | j                  ddt        «       | j                  ddt        «       | j                  ddt        «       | j                  ddt        «       | j                  ddt
        «       | j                  ddt        «       | j                  dd	t        «       | j                  dd
t        «       y )Nr!   Úcomposite_query_versionr)   Úcomposite_redirect_windowÚcomposite_redirect_subwindowsÚcomposite_unredirect_windowÚcomposite_unredirect_subwindowsÚ(composite_create_region_from_border_clipÚcomposite_name_window_pixmapÚcomposite_get_overlay_window)	Úextension_add_methodr&   r7   r<   r@   rD   rM   rX   r_   )ÚdispÚinfos     r   Úinitrl   ð   sÀ   € Ø×Ñ˜iØ7Ü+ô-ð 	×Ñ˜hØ9Ü-ô/ð 	×Ñ˜hØ=Ü1ô3ð 	×Ñ˜hØ;Ü/ô1ð 	×Ñ˜hØ?Ü3ô5ð 	×Ñ˜hØHÜ<ô>ð 	×Ñ˜hØ<Ü0ô2ð 	×Ñ˜hØ<Ü0õ2r   )N)Ú__doc__ÚXlib.protocolr   ÚXlib.xobjectr   r#   r/   r0   ÚReplyRequestr   r&   ÚRequestr(   r7   r9   r<   r>   r@   rB   rD   rF   rM   rO   rX   rZ   r_   rl   r   r   r   ú<module>rr      sÏ   ðñ0
õ Ý !à
€àÐ Ø€ô�2—?‘?ô ò&
ô
�R—Z‘Zô 
ó	ô
˜Ÿ™ô 
ó	ô
�r—z‘zô 
óô
˜"Ÿ*™*ô 
óô
 §¡ô 
óô$
�r—z‘zô 
ó-ô,�r—‘ô ò -ó2r   