
    ^h(                     ,   S r SrS rSrSrSrSrSrS rS SK	J
r
  S SKJrJr  Sr " S S	\R                  5      rS
 r " S S\R$                  5      rS r " S S\R$                  5      rS r " S S\R$                  5      rS r " S S\R$                  5      rS r " S S\R                  5      rS r " S S\R$                  5      rS'S jr " S S\R                  5      rS r  " S  S!\R                  5      r!S" r" " S# S$\RF                  5      rS% r$g&)(                )X)rqstructsSHAPEc                      \ rS rSr\R
                  " \R                  " S5      \R                  " S5      \R                  " 5       5      r	\R
                  " \R                  " 5       \R                  " S5      \R                  " S5      \R                  " 5       \R                  " S5      \R                  " S5      \R                  " S5      5      rS	rg
)QueryVersionB   opcoder   r   sequence_numbermajor_versionminor_version    N)__name__
__module____qualname____firstlineno__r   StructCard8OpcodeRequestLength_request	ReplyCodePadCard16ReplyLength_reply__static_attributes__r       @/var/www/html/env/lib/python3.13/site-packages/Xlib/ext/shape.pyr   r   B   s    yyHHXIIaLH
 YYLLNFF1III'(NNIIo&IIo&FF2JFr#   r   c                 d    [        U R                  U R                  R                  [        5      S9$ )N)displayr   )r   r&   get_extension_majorextnameselfs    r$   query_versionr+   R   s(    ,,11':
 
r#   c                      \ rS rSr\R
                  " \R                  " S5      \R                  " S5      \R                  " 5       \R                  " S5      \R                  " SS\
\45      \R                  " S5      \R                  " S5      \R                  " S5      \R                  " S5      \R                  " S	5      \R                  " S
\R"                  5      5      rSrg)
RectanglesZ   r   r   	operationregionorderingwindowxy
rectanglesr   N)r   r   r   r   r   r   r   r   r   SetShapeBounding	ShapeClipr   WindowInt16Listr	   	Rectangler   r"   r   r#   r$   r-   r-   Z   s    yyHHXIIaLHH[!FF8Q	 :;HHZ FF1IIIhHHSMHHSMGGL'"3"34Hr#   r-   c                     [        U R                  U R                  R                  [        5      UUUU R                  UUUS9	  g )N)	r&   r   r/   r0   r1   r2   r3   r4   r5   )r-   r&   r'   r(   id)r*   r0   r/   r1   r3   r4   r5   s          r$   r5   r5   i   s<    ll\\55g>!WW#
r#   c                      \ rS rSr\R
                  " \R                  " S5      \R                  " S5      \R                  " 5       \R                  " S5      \R                  " SS\
\45      \R                  " S5      \R                  " S5      \R                  " S5      \R                  " S	5      \R                  " S
\R"                  45      5
      rSrg)Maskx   r   r   r/   r0   r   r2   r3   r4   sourcer   N)r   r   r   r   r   r   r   r   r   r6   r7   r8   r   r9   r:   Pixmapr   NONEr   r"   r   r#   r$   r@   r@   x   s    yyHHXIIaLHH[!FF8Q	 :;FF1IIIhHHSMHHSMIIh
+Hr#   r@   c                     [        U R                  U R                  R                  [        5      U R                  UUUUUS9  g )N)r&   r   r2   r/   r0   r3   r4   rB   )r@   r&   r'   r(   r>   )r*   r/   r0   r3   r4   rB   s         r$   maskrF      s8    4<<,,227;''r#   c                      \ rS rSr\R
                  " \R                  " S5      \R                  " S5      \R                  " 5       \R                  " S5      \R                  " SS\
\45      \R                  " SS\
\45      \R                  " S5      \R                  " S5      \R                  " S	5      \R                  " S
5      \R                  " S5      5      rSrg)Combine   r   r   r/   dest_regionr   source_regiondestr3   r4   rB   r   Nr   r   r   r   r   r   r   r   r   r6   r7   r8   r   r9   r:   r   r"   r   r#   r$   rH   rH      s    yyHHXIIaLHH[!FF=!mY%?@FF?Ay'ABFF1IIIfHHSMHHSMIIhHr#   rH   c                     [        U R                  U R                  R                  [        5      UUUU R                  UUUS9	  g )N)	r&   r   r/   rJ   rK   rL   r3   r4   rB   )rH   r&   r'   r(   r>   )r*   r/   r0   rB   rK   r3   r4   s          r$   combinerO      s<    ll\\55g>! )77
r#   c                   L   \ rS rSr\R
                  " \R                  " S5      \R                  " S5      \R                  " 5       \R                  " SS\
\45      \R                  " S5      \R                  " S5      \R                  " S5      \R                  " S	5      5      rS
rg)Offset   r   r   r0   r   r   r2   r3   r4   r   NrM   r   r#   r$   rQ   rQ      su    yyHHXIIaLFF8Q	 :;FF1IIIhHHSMHHSM	Hr#   rQ   c           	          [        U R                  U R                  R                  [        5      UU R                  UUS9  g )N)r&   r   r0   r2   r3   r4   )rQ   r&   r'   r(   r>   )r*   r0   r3   r4   s       r$   offsetrT      s3    
ll\\55g>WWr#   c                      \ rS rSr\R
                  " \R                  " S5      \R                  " S5      \R                  " 5       \R                  " S5      5      r
\R
                  " \R                  " 5       \R                  " S5      \R                  " S5      \R                  " 5       \R                  " S5      \R                  " S5      \R                  " S	5      \R                   " S
5      \R                   " S5      \R                  " S5      \R                  " S5      \R                   " S5      \R                   " S5      \R                  " S5      \R                  " S5      \R                  " S5      5      rSrg)QueryExtents   r      r2   r   r   bounding_shapedclip_shapedr   
bounding_x
bounding_ybounding_widthbounding_heightclip_xclip_y
clip_widthclip_heightr   r   N)r   r   r   r   r   r   r   r   r   r9   r   r   r   r   r    Boolr:   r!   r"   r   r#   r$   rV   rV      s   yyHHXIIaLIIh	H YYLLNFF1III'(NNGG%&GGM"FF1IHH\"HH\"II&'II'(HHXHHXIIl#IIm$FF1I!Fr#   rV   c                 z    [        U R                  U R                  R                  [        5      U R                  S9$ N)r&   r   r2   )rV   r&   r'   r(   r>   r)   s    r$   query_extentsrf      s/    ,,11':
 
r#   c            
           \ rS rSr\R
                  " \R                  " S5      \R                  " S5      \R                  " 5       \R                  " S5      \R                  " S5      \R                  " S5      5      rSrg)	SelectInput   r      r2   enabler   r   N)r   r   r   r   r   r   r   r   r   r9   rc   r   r   r"   r   r#   r$   rh   rh      sV    yyHHXIIaLIIhGGHFF1IHr#   rh   c                 ~    [        U R                  U R                  R                  [        5      U R                  US9  g )N)r&   r   r2   rk   )rh   r&   r'   r(   r>   )r*   rk   s     r$   select_inputrm      s-    ll\\55g>WW	r#   c            	          \ rS rSr\R
                  " \R                  " S5      \R                  " S5      \R                  " 5       \R                  " S5      5      r
\R
                  " \R                  " 5       \R                  " S5      \R                  " S5      \R                  " 5       \R                  " S5      5      rSrg	)
InputSelected   r      r2   enabledr      r   N)r   r   r   r   r   r   r   r   r   r9   r   r   rc   r   r    r   r!   r"   r   r#   r$   ro   ro      s    yyHHXIIaLIIh	H YYLLNGGIII'(NNFF2JFr#   ro   c                     [        U R                  U R                  R                  [        5      U R                  S9nUR
                  $ re   )ro   r&   r'   r(   r>   rr   )r*   replys     r$   input_selectedrv     s8    ll\\55g>WWE
 ==r#   c                   ,   \ rS rSr\R
                  " \R                  " S5      \R                  " S5      \R                  " 5       \R                  " S5      \R                  " SS\\45      \R                  " S5      5      r\R
                  " \R                  " 5       \R                  " S5      \R                   " S	5      \R"                  " 5       \R$                  " S
S5      \R                  " S5      \R&                  " S
\R*                  5      5      rSrg)GetRectanglesi  r      r2   r0   r   r   r1   r   r5   r   r   r   N)r   r   r   r   r   r   r   r   r   r9   r6   r7   r8   r   r   r   r   r    LengthOfr;   r	   r<   r!   r"   r   r#   r$   rx   rx     s    yyHHXIIaLIIhFF8Q	 :;FF1IH YYLLNHHZ II'(NNKKa(FF2JGGL'"3"34Fr#   rx   c                 |    [        U R                  U R                  R                  [        5      U R                  US9$ )N)r&   r   r2   r0   )rx   r&   r'   r(   r>   )r*   r0   s     r$   get_rectanglesr|   +  s2    ,,11':	
 
r#   c                      \ rS rSrSr\R                  " \R                  " S5      \R                  " SS\	\
45      \R                  " S5      \R                  " S5      \R                  " S5      \R                  " S	5      \R                  " S
5      \R                  " S5      \R                  " S5      \R                  " S5      \R                   " S5      5      rSrg)ShapeNotifyi4  Ntyper0   r   r   r2   r3   r4   widthheighttimeshaped   r   )r   r   r   r   _coder   r   r   r6   r7   r8   r   r9   r:   Card32rc   r   _fieldsr"   r   r#   r$   r~   r~   4  s    Eii&)!mY-GH#458,##7+8,6**Gr#   r~   c                    U R                  SS[        5        U R                  SS[        5        U R                  SS[        5        U R                  SS[        5        U R                  SS[
        5        U R                  SS[        5        U R                  SS	[        5        U R                  SS
[        5        U R                  SS[        5        U R                  UR                  [        5        g )Nr&   shape_query_versionr2   shape_rectangles
shape_maskshape_combineshape_offsetshape_query_extentsshape_select_inputshape_input_selectedshape_get_rectangles)extension_add_methodr+   r5   rF   rO   rT   rf   rm   rv   r|   extension_add_eventfirst_eventr~   )dispinfos     r$   initr   C  s    i)>Oh(:
LhFhIhHh(=Oh(<Nh(>Ph(>PT--{;r#   N)r   )%r7   r8   ShapeSet
ShapeUnionShapeIntersectShapeSubtractShapeInvertShapeNotifyMaskr~   Xlibr   Xlib.protocolr   r	   r(   ReplyRequestr   r+   Requestr-   r5   r@   rF   rH   rO   rQ   rT   rV   rf   rh   rm   ro   rv   rx   r|   Eventr   r   r#   r$   <module>r      s  . 	
8  %
2??  
 2:: 	bjj 
RZZ 
2?? 6
"** BOO  BOO (
"(( <r#   