+
    }c]  c                   s
   ^ RI Ht ^ RIHt ^RIHt ^ RIt]P                  ! R4      ]P                  ! R4      ]P                  ! R4      ]P                  ! R4      ]P                  ! R	4      .t ! R
 R]P                  4      t
R# )i    )error)request)resourceNz@\Argb:([0-9a-fA-F]{1,4})/([0-9a-fA-F]{1,4})/([0-9a-fA-F]{1,4})\Zz,\A#([0-9a-fA-F])([0-9a-fA-F])([0-9a-fA-F])\ZzM\A#([0-9a-fA-F][0-9a-fA-F])([0-9a-fA-F][0-9a-fA-F])([0-9a-fA-F][0-9a-fA-F])\Zzn\A#([0-9a-fA-F][0-9a-fA-F][0-9a-fA-F])([0-9a-fA-F][0-9a-fA-F][0-9a-fA-F])([0-9a-fA-F][0-9a-fA-F][0-9a-fA-F])\Zz\A#([0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F])([0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F])([0-9a-fA-F][0-9a-fA-F][0-9a-fA-F][0-9a-fA-F])\Zc                   s   a  ] tR t^%t o ]P
                  P                  tRR ltR t	RR lt
RR ltR tR tR tR	 tRR
 ltRR ltRR ltR tR tRtV tR# )ColormapNc                s    \         P                  ! V P                  VV P                  R 7       V P                  P	                  V P                  4       R# )displayonerrorcmapN)r   ZFreeColormapr   idZfree_resource_idselfr      &&:/usr/lib/python3.14/site-packages/Xlib/xobject/colormap.pyfreeZColormap.free(   s8    t||'.$(GG	- 	%%dgg.    c                s    V P                   P                  4       p\        P                  ! V P                   V\        R 7       V P                   P                  R\        4      pV! V P                   V^R7      # ))r   midsrc_cmapZcolormap)Zowner)r   Zallocate_resource_idr   ZCopyColormapAndFreer   Zget_resource_classr   )r
   Zscr_cmapr   Zclss   &&  r   copy_colormap_and_freeZColormap.copy_colormap_and_free/   sY    ll//1##dll*-/7	9 ll--j(C4<<a00r   c                `    \         P                  ! V P                  VV P                  R 7       R# r   )r   ZInstallColormapr   r   r	   r   r   install_colormapZColormap.install_colormap8   s     $,,*1'+ww	0r   c                r   r   )r   ZUninstallColormapr   r   r	   r   r   uninstall_colormapZColormap.uninstall_colormap=   s     !!DLL,3)-	2r   c                s`    \         P                  ! V P                  V P                  VVVR 7      # ))r   r   redgreenblue)r   Z
AllocColorr   r   )r
   r   r   r      &&&&r   alloc_colorZColormap.alloc_colorB   s+    !!DLL)-(+*/)-	/ 	/r   c           	     sl   \          F  pVP                  V4      pV'       g   K  VP                  ^4      p\        VR^\	        V4      ,
          ,          ,           ^4      pVP                  ^4      p\        VR^\	        V4      ,
          ,          ,           ^4      pVP                  ^4      p\        VR^\	        V4      ,
          ,          ,           ^4      pV P                  W&V4      u # 	   \        P                  ! V P                  V P                  VR7      #   \        P                   d     R# i ; i)i   Z0r   r   nameN)rgb_resZmatchZgroupZintZlenr   r   ZAllocNamedColorr   r   r    ZBadName)	r
   r   rZmZrsZgsZgZbsZbs	   &&       r   alloc_named_colorZColormap.alloc_named_colorI   s    AAqWWQZSABK00"5WWQZSABK00"5WWQZSABK00"5''a00 	**T\\26''268 8 }} 		s   -,D D32D3c                s`    \         P                  ! V P                  VV P                  VVR 7      # ))r   
contiguousr   colorsplanes)r   ZAllocColorCellsr   r   )r
   r   r    r!   r   r   alloc_color_cellsZColormap.alloc_color_cells_   s+    &&4>.2gg0606	8 	8r   c           
     sd    \         P                  ! V P                  VV P                  VVVVR 7      # ))r   r   r   r    r   r   r   )r   ZAllocColorPlanesr   r   )r
   r   r    r   r   r   s   &&&&&&r   alloc_color_planesZColormap.alloc_color_planesf   s1    ''$,,5?/3ww17.105/35 	5r   c                sd    \         P                  ! V P                  VV P                  VVR 7       R# ))r   r   r   
plane_maskpixelsN)r   Z
FreeColorsr   r   )r
   r%   r$   r   r   r   free_colorsZColormap.free_colorso   s&    T\\%,"&''(2$*		,r   c                sb    \         P                  ! V P                  VV P                  VR 7       R# ))r   r   r   itemsN)r   ZStoreColorsr   r   )r
   r'   r   s   &&&r   store_colorsZColormap.store_colorsv   s#    dll&-#'77$)	+r   c           	     sf    \         P                  ! V P                  VVV P                  VVR 7       R# ))r   r   flagsr   pixelr   N)r   ZStoreNamedColorr   r   )r
   r   r*   r)   r   s   &&&&&r   store_named_colorZColormap.store_named_color|   s)    $,,*1(-'+ww(-'+	-r   c                st    \         P                  ! V P                  V P                  VR 7      pVP                  # ))r   r   r%   )r   ZQueryColorsr   r   r    )r
   r%   r   s   && r   query_colorsZColormap.query_colors   s-    $,,'+ww)/1 xxr   c                s\    \         P                  ! V P                  V P                  VR 7      # )r   )r   ZLookupColorr   r   )r
   r   r   r   lookup_colorZColormap.lookup_color   s%    ""T\\*.''*.0 	0r    )N)Z__name__Z
__module__Z__qualname__Z__firstlineno__r   ResourceZ__resource__Z__colormap__r   r   r   r   r   r   r"   r#   r&   r(   r+   r,   r-   Z__static_attributes__Z__classdictcell__)Z__classdict__s   @r   r   r   %   s\     $$11L/10
2
/,85,+-0 0r   r   )ZXlibr    ZXlib.protocolr   Z r   ZreZcompiler   r/   r   r.   r   r   <module>r0      s}   ,  !  	 JJRSJJ>?JJ_`JJ  A  BJJ  b  ch0x   h0r   