+
    Qi 3  c                   s    R t RtRtRtRtRt^ RIt]P                  ! RR4       ^ R	IH	t	 ^R
I
Ht ^RI
Ht ^RIHt  ! R R4      tR# )2Utilities for obtaining state-related information.z$Id$z
$Revision$z$Date$zCopyright (c) 2023 Igalia, S.L.ZLGPLNAtspiz2.0)r   )debug)messages)AXObjectc                   sH  a  ] tR t^*t o Rt]V 3R lR l4       t]V 3R lR l4       t]V 3R lR l4       t]V 3R lR	 l4       t	]V 3R
 lR l4       t
]V 3R lR l4       t]V 3R lR l4       t]V 3R lR l4       t]V 3R lR l4       t]V 3R lR l4       t]V 3R lR l4       t]V 3R lR l4       t]V 3R lR l4       t]V 3R lR l4       t]V 3R lR l4       t]V 3R  lR! l4       t]V 3R" lR# l4       t]V 3R$ lR% l4       t]V 3R& lR' l4       t]V 3R( lR) l4       t]V 3R* lR+ l4       t]V 3R, lR- l4       t]V 3R. lR/ l4       t]V 3R0 lR1 l4       t]V 3R2 lR3 l4       t]V 3R4 lR5 l4       t]V 3R6 lR7 l4       t ]V 3R8 lR9 l4       t!]V 3R: lR; l4       t"]V 3R< lR= l4       t#]V 3R> lR? l4       t$]V 3R@ lRA l4       t%]V 3RB lRC l4       t&]V 3RD lRE l4       t']V 3RF lRG l4       t(]V 3RH lRI l4       t)]V 3RJ lRK l4       t*]V 3RL lRM l4       t+]V 3RN lRO l4       t,]V 3RP lRQ l4       t-]V 3RR lRS l4       t.]V 3RT lRU l4       t/]V 3RV lRW l4       t0]V 3RX lRY l4       t1]V 3RZ lR[ l4       t2]V 3R\ lR] l4       t3]V 3R^ lR_ l4       t4R`t5V t6Ra# )bAXUtilitiesStater    c                :   < V ^8  d   QhRS[ P                  RS[/# i   objZreturn)r   
AccessibleZstrZformat__classdict__   "</usr/lib/python3.14/site-packages/orca/ax_utilities_state.py__annotate__AXUtilitiesState.__annotate__.   s!     % %E,<,< % %    c                s   \         P                  V 4      '       g   R# \        P                  ! V R4      pV'       g   R# VR8X  d   \        P
                  # VR8X  d   \        P                  # VR8X  d   \        P                  # VR8X  d   \        P                  # VR8X  d   \        P                  # \        P                  # )z.Returns the current item status string of obj. ZcurrentZdateZtimeZlocationZpageZstep)r   	is_activer   get_attributer   ZCURRENT_DATEZCURRENT_TIMEZCURRENT_LOCATIONZCURRENT_PAGEZCURRENT_STEPZCURRENT_ITEM)r   Zresult   & r   get_current_item_status_stringZ/AXUtilitiesState.get_current_item_status_string-   s      ))#..''Y7V(((V(((Z,,,V(((V((($$$r   c                r   r   r   r	   Zboolr
   r   r   r   r   D   s!     6 6%** 6t 6r   c                sJ    \         P                  ! V 4      P                  4       # )z*Returns true if obj has an empty state set)r   Zget_state_setZis_emptyr      &r   has_no_stateZAXUtilitiesState.has_no_stateC   s     %%c*3355r   c                r   r   r   r
   r   r   r   r   J   s%     B Bu'' BD Br   c                `    \         P                  ! V \        P                  P                  4      # )z+Returns true if obj has the has-popup state)r   	has_stater   	StateTypeZ	HAS_POPUPr   r   r   	has_popupZAXUtilitiesState.has_popupI   !     !!#u'@'@AAr   c                r   r   r   r
   r   r   r   r   P   s%     D D)) Dd Dr   c                r   )z-Returns true if obj has the has-tooltip state)r   r   r   r   ZHAS_TOOLTIPr   r   r   has_tooltipZAXUtilitiesState.has_tooltipO   !     !!#u'B'BCCr   c                r   r   r   r
   r   r   r   r   V   !     ? ?u'' ?D ?r   c                r   )z(Returns true if obj has the active state)r   r   r   r   ZACTIVEr   r   r   r   ZAXUtilitiesState.is_activeU   !     !!#u'='=>>r   c                r   r   r   r
   r   r   r   r   \   %     A A)) Ad Ar   c                r   )z*Returns true if obj has the animated state)r   r   r   r   ZANIMATEDr   r   r   is_animatedZAXUtilitiesState.is_animated[   !     !!#u'?'?@@r   c                r   r   r   r
   r   r   r   r   b   !     > >e&& >4 >r   c                r   )z'Returns true if obj has the armed state)r   r   r   r   ZARMEDr   r   r   is_armedZAXUtilitiesState.is_armeda   !     !!#u'<'<==r   c                r   r   r   r
   r   r   r   r   h   s!     = =U%% =$ =r   c                r   )z&Returns true if obj has the busy state)r   r   r   r   ZBUSYr   r   r   is_busyZAXUtilitiesState.is_busyg   s!     !!#u';';<<r   c                r   r   r   r
   r   r   r   r   n   !      %** t r   c                8   \         P                  ! V \        P                  P                  4      '       d   R# \         P                  ! V \        P                  P
                  4      '       d.   RV R.p\        P                  ! \        P                  VR4       R# R# )z+Returns true if obj has the checkable stateTAXUtilitiesState:$is checked but lacks state checkableF)	r   r   r   r   	CHECKABLECHECKEDr   print_tokens
LEVEL_INFOr   Ztokensr   r   is_checkableZAXUtilitiesState.is_checkablem   l     c5??#<#<==c5??#:#:;;)30VWFu//>r   c                r   r   r   r
   r   r   r   r   |   !     
 
(( 
T 
r   c                4   \         P                  ! V \        P                  P                  4      '       g   R# \         P                  ! V \        P                  P
                  4      '       g,   RV R.p\        P                  ! \        P                  VR4       R# )z)Returns true if obj has the checked stateFr,   r-   T)	r   r   r   r   r/   r.   r   r0   r1   r2   r   r   
is_checkedZAXUtilitiesState.is_checked{   i     !!#u'>'>??!!#u'@'@AA)30VWFu//>r   c                r   r   r   r
   r   r   r   r      %     B B%** Bt Br   c                r   )z+Returns true if obj has the collapsed state)r   r   r   r   Z	COLLAPSEDr   r   r   is_collapsedZAXUtilitiesState.is_collapsed   r   r   c                r   r   r   r
   r   r   r   r      s%     C C(( CT Cr   c                r   )z,Returns true if obj has the is-default state)r   r   r   r   Z
IS_DEFAULTr   r   r   
is_defaultZAXUtilitiesState.is_default   !     !!#u'A'ABBr   c                r   r   r   r
   r   r   r   r      %     @ @(( @T @r   c                r   )z)Returns true if obj has the defunct state)r   r   r   r   ZDEFUNCTr   r   r   
is_defunctZAXUtilitiesState.is_defunct   !     !!#u'>'>??r   c                r   r   r   r
   r   r   r   r      r#   r   c                r   )z*Returns true if obj has the editable state)r   r   r   r   ZEDITABLEr   r   r   is_editableZAXUtilitiesState.is_editable   r%   r   c                r   r   r   r
   r   r   r   r      r=   r   c                r   )z)Returns true if obj has the enabled state)r   r   r   r   ZENABLEDr   r   r   
is_enabledZAXUtilitiesState.is_enabled   r?   r   c                r   r   r   r
   r   r   r   r      s!      5++  r   c                r+   )z,Returns true if obj has the expandable stateTr,   &is expanded but lacks state expandableF)	r   r   r   r   
EXPANDABLEEXPANDEDr   r0   r1   r2   r   r   is_expandableZAXUtilitiesState.is_expandable   sl     c5??#=#=>>c5??#;#;<<)30XYFu//>r   c                r   r   r   r
   r   r   r   r      s!     
 
)) 
d 
r   c                r6   )z*Returns true if obj has the expanded stateFr,   rB   T)	r   r   r   r   rD   rC   r   r0   r1   r2   r   r   is_expandedZAXUtilitiesState.is_expanded   si     !!#u'?'?@@!!#u'A'ABB)30XYFu//>r   c                r   r   r   r
   r   r   r   r      r*   r   c                r+   )z+Returns true if obj has the focusable stateTr,   $is focused but lacks state focusableF)	r   r   r   r   	FOCUSABLEFOCUSEDr   r0   r1   r2   r   r   is_focusableZAXUtilitiesState.is_focusable   r4   r   c                r   r   r   r
   r   r   r   r      r5   r   c                r6   )z)Returns true if obj has the focused stateFr,   rG   T)	r   r   r   r   rI   rH   r   r0   r1   r2   r   r   
is_focusedZAXUtilitiesState.is_focused   r8   r   c                r   r   r   r
   r   r   r   r      s%     F Fu'' FD Fr   c                s8    \         P                  ! V RR4      R8H  # )z(Returns true if obj reports being hiddenZhiddenFZtrue)r   r   r   r   r   	is_hiddenZAXUtilitiesState.is_hidden   s     %%c8U;vEEr   c                r   r   r   r
   r   r   r   r      %     C C5++ C Cr   c                r   )z,Returns true if obj has the horizontal state)r   r   r   r   Z
HORIZONTALr   r   r   is_horizontalZAXUtilitiesState.is_horizontal   r<   r   c                r   r   r   r
   r   r   r   r      r9   r   c                r   )z+Returns true if obj has the iconified state)r   r   r   r   Z	ICONIFIEDr   r   r   is_iconifiedZAXUtilitiesState.is_iconified   r   r   c                r   r   r   r
   r   r   r   r      %     F Fe.. F4 Fr   c                r   )z/Returns true if obj has the indeterminate state)r   r   r   r   ZINDETERMINATEr   r   r   is_indeterminateZ!AXUtilitiesState.is_indeterminate   !     !!#u'D'DEEr   c                r   r   r   r
   r   r   r   r      s%     @ @e.. @4 @r   c                r   )z/Returns true if obj has the invalid_state state)r   r   r   r   ZINVALIDr   r   r   is_invalid_stateZ!AXUtilitiesState.is_invalid_state   r?   r   c                r   r   r   r
   r   r   r   r      rP   r   c                r   )z/Returns true if obj has the invalid_entry state)r   r   r   r   ZINVALID_ENTRYr   r   r   is_invalid_entryZ!AXUtilitiesState.is_invalid_entry   rR   r   c                r   r   r   r
   r   r   r   r     r&   r   c                r   )z'Returns true if obj has the modal state)r   r   r   r   ZMODALr   r   r   is_modalZAXUtilitiesState.is_modal   r(   r   c                r   r   r   r
   r   r   r   r     rM   r   c                r   )z,Returns true if obj has the multi_line state)r   r   r   r   Z
MULTI_LINEr   r   r   is_multi_lineZAXUtilitiesState.is_multi_line  r<   r   c                r   r   r   r
   r   r   r   r     %     H H 0 0 HT Hr   c                r   )z1Returns true if obj has the multiselectable state)r   r   r   r   ZMULTISELECTABLEr   r   r   is_multiselectableZ#AXUtilitiesState.is_multiselectable  !     !!#u'F'FGGr   c                r   r   r   r
   r   r   r   r     r!   r   c                r   )z(Returns true if obj has the opaque state)r   r   r   r   ZOPAQUEr   r   r   	is_opaqueZAXUtilitiesState.is_opaque  r"   r   c                r   r   r   r
   r   r   r   r     r=   r   c                r   )z)Returns true if obj has the pressed state)r   r   r   r   ZPRESSEDr   r   r   
is_pressedZAXUtilitiesState.is_pressed  r?   r   c                r   r   r   r
   r   r   r   r     s!     	9 	9%** 	9t 	9r   c                s   \         P                  ! V \        P                  P                  4      '       d   R# \
        P                  V 4      '       d   R# \         P                  ! V 4      \        P                  P                  8H  # )z+Returns true if obj has the read-only stateTF)
r   r   r   r   Z	READ_ONLYr   r@   Zget_roleZRoleZTEXTr   r   r   is_read_onlyZAXUtilitiesState.is_read_only  sX     c5??#<#<=='',,   %88r   c                r   r   r   r
   r   r   r   r   +  r#   r   c                r   )z*Returns true if obj has the required state)r   r   r   r   ZREQUIREDr   r   r   is_requiredZAXUtilitiesState.is_required*  r%   r   c                r   r   r   r
   r   r   r   r   1  r9   r   c                r   )z+Returns true if obj has the resizable state)r   r   r   r   Z	RESIZABLEr   r   r   is_resizableZAXUtilitiesState.is_resizable0  r   r   c                r   r   r   r
   r   r   r   r   7  rM   r   c                r   )z,Returns true if obj has the selectable state)r   r   r   r   Z
SELECTABLEr   r   r   is_selectableZAXUtilitiesState.is_selectable6  r<   r   c                r   r   r   r
   r   r   r   r   =  rW   r   c                r   )z1Returns true if obj has the selectable-text state)r   r   r   r   ZSELECTABLE_TEXTr   r   r   is_selectable_textZ#AXUtilitiesState.is_selectable_text<  rY   r   c                r   r   r   r
   r   r   r   r   C  r#   r   c                r   )z*Returns true if obj has the selected state)r   r   r   r   ZSELECTEDr   r   r   is_selectedZAXUtilitiesState.is_selectedB  r%   r   c                r   r   r   r
   r   r   r   r   I  r9   r   c                r   )z+Returns true if obj has the sensitive state)r   r   r   r   Z	SENSITIVEr   r   r   is_sensitiveZAXUtilitiesState.is_sensitiveH  r   r   c                r   r   r   r
   r   r   r   r   O  r=   r   c                r   )z)Returns true if obj has the showing state)r   r   r   r   ZSHOWINGr   r   r   
is_showingZAXUtilitiesState.is_showingN  r?   r   c                r   r   r   r
   r   r   r   r   U  s%     D DE,, D Dr   c                r   )z-Returns true if obj has the single-line state)r   r   r   r   ZSINGLE_LINEr   r   r   is_single_lineZAXUtilitiesState.is_single_lineT  r    r   c                r   r   r   r
   r   r   r   r   [  r&   r   c                r   )z'Returns true if obj has the stale state)r   r   r   r   ZSTALEr   r   r   is_staleZAXUtilitiesState.is_staleZ  r(   r   c                r   r   r   r
   r   r   r   r   a  r9   r   c                r   )z+Returns true if obj has the transient state)r   r   r   r   Z	TRANSIENTr   r   r   is_transientZAXUtilitiesState.is_transient`  r   r   c                r   r   r   r
   r   r   r   r   g  r9   r   c                r   )z+Returns true if obj has the truncated state)r   r   r   r   Z	TRUNCATEDr   r   r   is_truncatedZAXUtilitiesState.is_truncatedf  r   r   c                r   r   r   r
   r   r   r   r   m  r#   r   c                r   )z*Returns true if obj has the vertical state)r   r   r   r   ZVERTICALr   r   r   is_verticalZAXUtilitiesState.is_verticall  r%   r   c                r   r   r   r
   r   r   r   r   s  r=   r   c                r   )z)Returns true if obj has the visible state)r   r   r   r   ZVISIBLEr   r   r   
is_visibleZAXUtilitiesState.is_visibler  r?   r   c                r   r   r   r
   r   r   r   r   y  r=   r   c                r   )z)Returns true if obj has the visited state)r   r   r   r   ZVISITEDr   r   r   
is_visitedZAXUtilitiesState.is_visitedx  r?   r   c                r   r   r   r
   r   r   r   r     s%     L L!1!1 Ld Lr   c                r   )z5Returns true if obj has the manages-descendants state)r   r   r   r   ZMANAGES_DESCENDANTSr   r   r   manages_descendantsZ$AXUtilitiesState.manages_descendants~  s!     !!#u'J'JKKr   c                r   r   r   r
   r   r   r   r     s%     P PU%5%5 P$ Pr   c                r   )z9Returns true if obj has the supports-autocompletion state)r   r   r   r   ZSUPPORTS_AUTOCOMPLETIONr   r   r   supports_autocompletionZ(AXUtilitiesState.supports_autocompletion  s!     !!#u'N'NOOr    N)7Z__name__Z
__module__Z__qualname__Z__firstlineno____doc__Zstaticmethodr   r   r   r   r   r$   r'   r)   r3   r7   r:   r;   r>   r@   rA   rE   rF   rJ   rK   rL   rN   rO   rQ   rS   rT   rU   rV   rX   rZ   r[   r\   r]   r^   r_   r`   ra   rb   rc   rd   re   rf   rg   rh   ri   rj   rk   rl   Z__static_attributes__Z__classdictcell__)r   s   @r   r   r   *   s    <% %* 6 6
 B B
 D D
 ? ?
 A A
 > >
 = =
   
 
 B B
 C C
 @ @
 A A
 @ @
   
 
   
 
 F F
 C C
 B B
 F F
 @ @
 F F
 > >
 C C
 H H
 ? ?
 @ @
 	9 	9 A A
 B B
 C C
 H H
 A A
 B B
 @ @
 D D
 > >
 B B
 B B
 A A
 @ @
 @ @
 L L
 P Pr   r   )rn   Z__id__Z__version__Z__date__Z__copyright__Z__license__ZgiZrequire_versionZgi.repositoryr   r   r   r   Z	ax_objectr   r   rm   r   r   <module>ro      sP   2 91 	   7E "    ^P ^Pr   