Ë
    J9Öcü"  ã            	       ó  — d Z ddlmZ dZdZdZdZdZdZdZ	dZ
dZ G d	„ d
ej                  «      Zeefd„Z ej                   ej                   d«       ej                   d«      «      Z G d„ dej                  «      Zd„ Z ej                   ej                   d«       ej                   d«      «      Z G d„ dej                  «      Zd„ Z G d„ dej                  «      Zd„ Z G d„ dej2                  «      ZdZdZ ej                   ej                   d«       ej                   d«      «      Z ej                   ej<                  de«       eddd«       ej>                  dej@                  «      «      Z! G d„ d ej                  «      Z"d!„ Z# ej                   ej                   d"«       ej                   d#«      «      Z$ ej                   ej                   d"«       ej                   d#«       ej                   d$«       ej                   d%«       ej                   d&«      «      Z% ej                   ej<                  d'e%«       ej2                  d(d«       ej>                  d(e%«      «      Z& G d)„ d*ej                  «      Z'd+„ Z(d,„ Z)y-).aU  X-Resource extension allows a client to query the X server about its usage
of various resources.

For detailed description see any of the following documents.
Protocol specification:
    https://www.x.org/releases/current/doc/resourceproto/resproto.txt
XCB Protocol specification:
    https://cgit.freedesktop.org/xcb/proto/tree/src/res.xml
é    )Úrqé   é   z
X-Resourceé   é   é   c                   ó  — e Zd Z ej                   ej
                  d«       ej                  e«       ej                  «        ej
                  d«       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ÚopcodeÚclient_majorÚclient_minorr   r   Úsequence_numberÚserver_majorÚserver_minoré   N)Ú__name__Ú
__module__Ú__qualname__r   ÚStructÚCard8ÚOpcodeÚResQueryVersionÚRequestLengthÚPadÚ_requestÚ	ReplyCodeÚCard16ÚReplyLengthÚ_reply© ó    ú./usr/lib/python3/dist-packages/Xlib/ext/res.pyr
   r
   0   sÓ   „ Øˆr�y‰yØˆB�H‰H�XÓØˆB�I‰I�oÓ&ØˆB×ÑÓØˆB�H‰H�^Ó$ØˆB�H‰H�^Ó$ØˆB�F‰F�1‹Ió€Hð ˆR�Y‰YØˆB�L‰L‹NØˆB�F‰F�1‹IØˆB�I‰IÐ'Ó(ØˆB�N‰NÓØˆB�I‰I�nÓ%ØˆB�I‰I�nÓ%ØˆB�F‰F�2‹Jó�Fr!   r
   c                 ón   — t        | j                  | j                  j                  t        «      ||¬«      S )zà Query the protocol version supported by the X server.

    The client sends the highest supported version to the server and the
    server sends the highest version it supports, but no higher than the
    requested version.)Údisplayr   r   r   )r
   r$   Úget_extension_majorÚextname)Úselfr   r   s      r"   Úquery_versionr(   B   s0   € ô Ø—L‘LØ—<‘<×3Ñ3´GÓ<Ø%Ø%ô	'ð 'r!   Úresource_baseÚresource_maskc                   ó¢  — e Zd Z ej                   ej
                  d«       ej                  e«       ej                  «       «      Z	 ej                   ej                  «        ej                  d«       ej                  d«       ej                  «        ej                  dd«       ej                  d«       ej                  de«      «      Zy)ÚQueryClientsr   r   r   Úclientsr   r   N)r   r   r   r   r   r   r   ÚResQueryClientsr   r   r   r   r   r   ÚLengthOfÚListÚClientr   r    r!   r"   r,   r,   U   s®   „ Øˆr�y‰yØˆB�H‰H�XÓØˆB�I‰I�oÓ&ØˆB×ÑÓó €Hð ˆR�Y‰YØˆB�L‰L‹NØˆB�F‰F�1‹IØˆB�I‰IÐ'Ó(ØˆB�N‰NÓØˆB�K‰K˜	 1Ó%ØˆB�F‰F�2‹JØˆB�G‰G�I˜vÓ&ó(�Fr!   r,   c                 ój   — t        | j                  | j                  j                  t        «      ¬«      S )z4Request the list of all currently connected clients.)r$   r   )r,   r$   r%   r&   )r'   s    r"   Úquery_clientsr3   d   s(   € äØ—L‘LØ—<‘<×3Ñ3´GÓ<ô>ð >r!   Úresource_typeÚcountc                   óÄ  — e Zd Z ej                   ej
                  d«       ej                  e«       ej                  «        ej                  d«      «      Z
 ej                   ej                  «        ej                  d«       ej                  d«       ej                  «        ej                  dd«       ej                  d«       ej                   de«      «      Zy)	ÚQueryClientResourcesr   Úclientr   r   Útypesr   r   N)r   r   r   r   r   r   r   ÚResQueryClientResourcesr   ÚCard32r   r   r   r   r   r/   r0   ÚTyper   r    r!   r"   r7   r7   p   s½   „ Øˆr�y‰yØˆB�H‰H�XÓØˆB�I‰IÐ-Ó.ØˆB×ÑÓØˆB�I‰I�hÓó	!€Hð
 ˆR�Y‰YØˆB�L‰L‹NØˆB�F‰F�1‹IØˆB�I‰IÐ'Ó(ØˆB�N‰NÓØˆB�K‰K˜ Ó#ØˆB�F‰F�2‹JØˆB�G‰G�G˜TÓ"ó$�Fr!   r7   c                 ól   — t        | j                  | j                  j                  t        «      |¬«      S )zxRequest the number of resources owned by a client.

    The server will return the counts of each type of resource.
    ©r$   r   r8   )r7   r$   r%   r&   ©r'   r8   s     r"   Úquery_client_resourcesr@   €   s-   € ô
  Ø—L‘LØ—<‘<×3Ñ3´GÓ<Øôð r!   c                   óÀ  — e Zd Z ej                   ej
                  d«       ej                  e«       ej                  «        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)	ÚQueryClientPixmapBytesr   r8   r   r   ÚbytesÚbytes_overflowé   N)r   r   r   r   r   r   r   ÚResQueryClientPixmapBytesr   r;   r   r   r   r   r   r   r    r!   r"   rB   rB   ‹   sº   „ Øˆr�y‰yØˆB�H‰H�XÓØˆB�I‰IÐ/Ó0ØˆB×ÑÓØˆB�I‰I�hÓó	!€Hð
 ˆR�Y‰YØˆB�L‰L‹NØˆB�F‰F�1‹IØˆB�I‰IÐ'Ó(ØˆB�N‰NÓØˆB�I‰I�gÓØˆB�I‰IÐ&Ó'ØˆB�F‰F�2‹Jó�Fr!   rB   c                 ól   — t        | j                  | j                  j                  t        «      |¬«      S )zœQuery the pixmap usage of some client.

    The returned number is a sum of memory usage of each pixmap that can be
    attributed to the given client.
    r>   )rB   r$   r%   r&   r?   s     r"   Úquery_client_pixmap_bytesrH   ›   s-   € ô "Ø—L‘LØ—<‘<×3Ñ3´GÓ<Øôð r!   c                   ó   — e Zd ZdZd„ Zd„ Zy)ÚSizeOfz]A SizeOf stores the size in bytes of some other Field whose size
    may vary, e.g. List
    c                 óT   — t         j                  j                  | ||«       || _        y ©N)r   r/   Ú__init__Ú	item_size)r'   ÚnameÚsizerN   s       r"   rM   zSizeOf.__init__«   s   € Ü
�‰×Ñ˜T 4¨Ô.Ø"ˆ�r!   c                 ó    — || j                   z  S rL   )rN   )r'   Úlengthr$   s      r"   Úparse_valuezSizeOf.parse_value¯   s   € Ø˜Ÿ™Ñ'Ð'r!   N)r   r   r   Ú__doc__rM   rS   r    r!   r"   rJ   rJ   §   s   „ ñò#ó(r!   rJ   r8   ÚmaskÚspecÚvaluec                   óê  — e Zd Z ej                   ej
                  d«       ej                  e«       ej                  «        ej                  dd«       ej                  de«      «      Z ej                   ej                  «        ej                  d«       ej                  d«       ej                   «        ej                  dd«       ej                  d«       ej                  de«      «      Zy)	ÚQueryClientIdsr   Úspecsr   r   r   Úidsr   N)r   r   r   r   r   r   r   ÚResQueryClientIdsr   r/   r0   ÚClientIdSpecr   r   r   r   r   ÚClientIdValuer   r    r!   r"   rY   rY   Â   sÏ   „ Øˆr�y‰yØˆB�H‰H�XÓØˆB�I‰IÐ'Ó(ØˆB×ÑÓØˆB�K‰K˜ Ó#ØˆB�G‰G�G˜\Ó*ó,€Hð ˆR�Y‰YØˆB�L‰L‹NØˆB�F‰F�1‹IØˆB�I‰IÐ'Ó(ØˆB�N‰NÓØˆB�K‰K˜˜qÓ!ØˆB�F‰F�2‹JØˆB�G‰G�E˜=Ó)ó+�Fr!   rY   c                 ól   — t        | j                  | j                  j                  t        «      |¬«      S )a  Request to identify a given set of clients with some identification method.

    The request sends a list of specifiers that select clients and
    identification methods to server. The server then tries to identify the
    chosen clients using the identification methods specified for each client.
    The server returns IDs for those clients that were successfully identified.
    )r$   r   rZ   )rY   r$   r%   r&   )r'   rZ   s     r"   Úquery_client_idsr`   Ó   s-   € ô Ø—L‘LØ—<‘<×3Ñ3´GÓ<Øôð r!   ÚresourceÚtyperC   Ú	ref_countÚ	use_countrP   Úcross_referencesc                   ó  — e Zd Z ej                   ej
                  d«       ej                  e«       ej                  «        ej                  d«       ej                  dd«       ej                  de«      «      Z ej                   ej                  «        ej                  d«       ej                   d«       ej"                  «        ej                  dd«       ej                  d«       ej                  de«      «      Zy	)
ÚQueryResourceBytesr   r8   rZ   r   r   r   Úsizesr   N)r   r   r   r   r   r   r   ÚResQueryResourceBytesr   r;   r/   r0   ÚResourceIdSpecr   r   r   r   r   ÚResourceSizeValuer   r    r!   r"   rg   rg   ö   sÞ   „ Øˆr�y‰yØˆB�H‰H�XÓØˆB�I‰IÐ+Ó,ØˆB×ÑÓØˆB�I‰I�hÓØˆB�K‰K˜ Ó#ØˆB�G‰G�G˜^Ó,ó.€Hð ˆR�Y‰YØˆB�L‰L‹NØˆB�F‰F�1‹IØˆB�I‰IÐ'Ó(ØˆB�N‰NÓØˆB�K‰K˜ Ó#ØˆB�F‰F�2‹JØˆB�G‰G�GÐ.Ó/ó1�Fr!   rg   c                 ón   — t        | j                  | j                  j                  t        «      ||¬«      S )a  Query the sizes of resources from X server.

    The request sends a list of specifiers that selects resources for size
    calculation. The server tries to calculate the sizes of chosen resources
    and returns an estimate for a resource only if the size could be determined
    )r$   r   r8   rZ   )rg   r$   r%   r&   )r'   r8   rZ   s      r"   Úquery_resource_bytesrm     s0   € ô Ø—L‘LØ—<‘<×3Ñ3´GÓ<ØØô	ð r!   c                 ó  — | 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$   Úres_query_versionÚres_query_clientsÚres_query_client_resourcesÚres_query_client_pixmap_bytesÚres_query_client_idsÚres_query_resource_bytes)Úextension_add_methodr(   r3   r@   rH   r`   rm   )ÚdispÚinfos     r"   Úinitrx     s€   € Ø×Ñ˜iÐ)<¼mÔLØ×Ñ˜iÐ)<¼mÔLØ×Ñ˜iÐ)EÜ4ô6à×Ñ˜iÐ)HÜ7ô9à×Ñ˜iÐ)?Ü.ô0à×Ñ˜iÐ)CÜ2õ4r!   N)*rT   ÚXlib.protocolr   ÚRES_MAJOR_VERSIONÚRES_MINOR_VERSIONr&   r   r.   r:   rF   r\   ri   ÚReplyRequestr
   r(   r   r;   r1   r,   r3   r<   r7   r@   rB   rH   r/   rJ   ÚClientXIDMaskÚLocalClientPIDMaskr]   ÚObjectr0   Ú	Card32Objr^   rY   r`   rj   ÚResourceSizeSpecrk   rg   rm   rx   r    r!   r"   ú<module>r‚      sˆ  ðñ,õ àÐ ØÐ à
€ð €Ø€ØÐ ØÐ àÐ ØÐ ô�2—?‘?ô ð$ &7Ø0ó'ð 
ˆ�‰Øˆ�	‰	�/Ó"Øˆ�	‰	�/Ó"ó
$€ô
(�2—?‘?ô (ò>ð €r‡y�yØˆ�	‰	�/Ó"Øˆ�	‰	�'Óó€ô
$˜2Ÿ?™?ô $ò ô˜RŸ_™_ô ò 	ô	(ˆR�[‰[ô 	(ð €ØÐ ð ˆr�y‰yØˆ�	‰	�(ÓØˆ�	‰	�&Óó€ð
 �—	‘	Øˆ�	‰	�&˜,Ó'Ùˆw˜˜1ÓØˆ�‰�˜Ÿ™Ó&ó(€ô+�R—_‘_ô +ò"ð �—‘Øˆ�	‰	�*ÓØˆ�	‰	�&Óó€ð
 �2—9‘9ð 	ˆ�	‰	�*ÓØˆ�	‰	�&ÓØˆ�	‰	�'ÓØˆ�	‰	�+ÓØˆ�	‰	�+Óó Ð ð �B—I‘IØˆ�	‰	�&Ð*Ó+Øˆ�‰Ð&¨Ó*Øˆ�‰Ð"Ð$4Ó5ó7Ð ô1˜Ÿ™ô 1ò$ó
4r!   