%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3/dist-packages/orca/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3/dist-packages/orca/__pycache__/ax_utilities_state.cpython-312.pyc

�

g
f+���dZdZdZdZdZdZddlZejdd	�dd
lm	Z	ddl
mZdd
lm
Z
Gd�d�Zy)a�
Utilities for obtaining state-related information.
These utilities are app-type- and toolkit-agnostic. Utilities that might have
different implementations or results depending on the type of app (e.g. terminal,
chat, web) or toolkit (e.g. Qt, Gtk) should be in script_utilities.py file(s).

N.B. There are currently utilities that should never have custom implementations
that live in script_utilities.py files. These will be moved over time.
z$Id$z
$Revision$z$Date$zCopyright (c) 2023 Igalia, S.L.�LGPL�N�Atspiz2.0)r�)�debug)�AXObjectc���eZdZdZed��Zed��Zed��Zed��Zed��Z	ed��Z
ed��Zed	��Zed
��Z
ed��Zed��Zed
��Zed��Zed��Zed��Zed��Zed��Zed��Zed��Zed��Zed��Zed��Zed��Zed��Zed��Zed��Zed��Zed��Z ed��Z!ed��Z"ed ��Z#ed!��Z$ed"��Z%ed#��Z&ed$��Z'ed%��Z(ed&��Z)ed'��Z*ed(��Z+ed)��Z,ed*��Z-ed+��Z.ed,��Z/ed-��Z0ed.��Z1y/)0�AXUtilitiesStatez2Utilities for obtaining state-related information.c�H�tj|�j�S)z*Returns true if obj has an empty state set)r�
get_state_set�is_empty��objs �9/usr/lib/python3/dist-packages/orca/ax_utilities_state.py�has_no_statezAXUtilitiesState.has_no_state0s���%�%�c�*�3�3�5�5�c�^�tj|tjj�S)z+Returns true if obj has the has-popup state)r�	has_stater�	StateType�	HAS_POPUPr
s r�	has_popupzAXUtilitiesState.has_popup6�!���!�!�#�u���'@�'@�A�Arc�^�tj|tjj�S)z-Returns true if obj has the has-tooltip state)rrrr�HAS_TOOLTIPr
s r�has_tooltipzAXUtilitiesState.has_tooltip<�!���!�!�#�u���'B�'B�C�Crc�^�tj|tjj�S)z(Returns true if obj has the active state)rrrr�ACTIVEr
s r�	is_activezAXUtilitiesState.is_activeB�!���!�!�#�u���'=�'=�>�>rc�^�tj|tjj�S)z*Returns true if obj has the animated state)rrrr�ANIMATEDr
s r�is_animatedzAXUtilitiesState.is_animatedH�!���!�!�#�u���'?�'?�@�@rc�^�tj|tjj�S)z'Returns true if obj has the armed state)rrrr�ARMEDr
s r�is_armedzAXUtilitiesState.is_armedN�!���!�!�#�u���'<�'<�=�=rc�^�tj|tjj�S)z&Returns true if obj has the busy state)rrrr�BUSYr
s r�is_busyzAXUtilitiesState.is_busyTs!���!�!�#�u���';�';�<�<rc��tj|tjj�rytj|tjj
�r+d|dg}t
jtj|d�yy)z+Returns true if obj has the checkable stateT�AXUtilitiesState:�$is checked but lacks state checkableF)	rrrr�	CHECKABLE�CHECKEDr�printTokens�
LEVEL_INFO�r�tokenss  r�is_checkablezAXUtilitiesState.is_checkableZ�f�����c�5�?�?�#<�#<�=�����c�5�?�?�#:�#:�;�)�3�0V�W�F����e�.�.���=��rc��tj|tjj�sytj|tjj
�s*d|dg}t
jtj|d�y)z)Returns true if obj has the checked stateFr,r-T)	rrrrr/r.rr0r1r2s  r�
is_checkedzAXUtilitiesState.is_checkedh�c���!�!�#�u���'>�'>�?���!�!�#�u���'@�'@�A�)�3�0V�W�F����e�.�.���=�rc�^�tj|tjj�S)z+Returns true if obj has the collapsed state)rrrr�	COLLAPSEDr
s r�is_collapsedzAXUtilitiesState.is_collapsedurrc�^�tj|tjj�S)z,Returns true if obj has the is-default state)rrrr�
IS_DEFAULTr
s r�
is_defaultzAXUtilitiesState.is_default{�!���!�!�#�u���'A�'A�B�Brc�^�tj|tjj�S)z)Returns true if obj has the defunct state)rrrr�DEFUNCTr
s r�
is_defunctzAXUtilitiesState.is_defunct��!���!�!�#�u���'>�'>�?�?rc�^�tj|tjj�S)z*Returns true if obj has the editable state)rrrr�EDITABLEr
s r�is_editablezAXUtilitiesState.is_editable�r#rc�^�tj|tjj�S)z)Returns true if obj has the enabled state)rrrr�ENABLEDr
s r�
is_enabledzAXUtilitiesState.is_enabled�rCrc��tj|tjj�rytj|tjj
�r+d|dg}t
jtj|d�yy)z,Returns true if obj has the expandable stateTr,�&is expanded but lacks state expandableF)	rrrr�
EXPANDABLE�EXPANDEDrr0r1r2s  r�
is_expandablezAXUtilitiesState.is_expandable�sf�����c�5�?�?�#=�#=�>�����c�5�?�?�#;�#;�<�)�3�0X�Y�F����e�.�.���=��rc��tj|tjj�sytj|tjj
�s*d|dg}t
jtj|d�y)z*Returns true if obj has the expanded stateFr,rKT)	rrrrrMrLrr0r1r2s  r�is_expandedzAXUtilitiesState.is_expanded�sc���!�!�#�u���'?�'?�@���!�!�#�u���'A�'A�B�)�3�0X�Y�F����e�.�.���=�rc��tj|tjj�rytj|tjj
�r+d|dg}t
jtj|d�yy)z+Returns true if obj has the focusable stateTr,�$is focused but lacks state focusableF)	rrrr�	FOCUSABLE�FOCUSEDrr0r1r2s  r�is_focusablezAXUtilitiesState.is_focusable�r5rc��tj|tjj�sytj|tjj
�s*d|dg}t
jtj|d�y)z)Returns true if obj has the focused stateFr,rRT)	rrrrrTrSrr0r1r2s  r�
is_focusedzAXUtilitiesState.is_focused�r8rc�^�tj|tjj�S)z,Returns true if obj has the horizontal state)rrrr�
HORIZONTALr
s r�
is_horizontalzAXUtilitiesState.is_horizontal�r?rc�^�tj|tjj�S)z+Returns true if obj has the iconified state)rrrr�	ICONIFIEDr
s r�is_iconifiedzAXUtilitiesState.is_iconified�rrc�^�tj|tjj�S)z/Returns true if obj has the indeterminate state)rrrr�
INDETERMINATEr
s r�is_indeterminatez!AXUtilitiesState.is_indeterminate��!���!�!�#�u���'D�'D�E�Erc�^�tj|tjj�S)z/Returns true if obj has the invalid_state state)rrrr�INVALIDr
s r�is_invalid_statez!AXUtilitiesState.is_invalid_state�rCrc�^�tj|tjj�S)z/Returns true if obj has the invalid_entry state)rrrr�
INVALID_ENTRYr
s r�is_invalid_entryz!AXUtilitiesState.is_invalid_entry�rarc�^�tj|tjj�S)z'Returns true if obj has the modal state)rrrr�MODALr
s r�is_modalzAXUtilitiesState.is_modal�r'rc�^�tj|tjj�S)z,Returns true if obj has the multi_line state)rrrr�
MULTI_LINEr
s r�
is_multi_linezAXUtilitiesState.is_multi_line�r?rc�^�tj|tjj�S)z1Returns true if obj has the multiselectable state)rrrr�MULTISELECTABLEr
s r�is_multiselectablez#AXUtilitiesState.is_multiselectable��!���!�!�#�u���'F�'F�G�Grc�^�tj|tjj�S)z(Returns true if obj has the opaque state)rrrr�OPAQUEr
s r�	is_opaquezAXUtilitiesState.is_opaque�rrc�^�tj|tjj�S)z)Returns true if obj has the pressed state)rrrr�PRESSEDr
s r�
is_pressedzAXUtilitiesState.is_pressed�rCrc�^�tj|tjj�S)z+Returns true if obj has the read-only state)rrrr�	READ_ONLYr
s r�is_read_onlyzAXUtilitiesState.is_read_onlyrrc�^�tj|tjj�S)z*Returns true if obj has the required state)rrrr�REQUIREDr
s r�is_requiredzAXUtilitiesState.is_requiredr#rc�^�tj|tjj�S)z+Returns true if obj has the resizable state)rrrr�	RESIZABLEr
s r�is_resizablezAXUtilitiesState.is_resizablerrc�^�tj|tjj�S)z,Returns true if obj has the selectable state)rrrr�
SELECTABLEr
s r�
is_selectablezAXUtilitiesState.is_selectabler?rc�^�tj|tjj�S)z1Returns true if obj has the selectable-text state)rrrr�SELECTABLE_TEXTr
s r�is_selectable_textz#AXUtilitiesState.is_selectable_textrqrc�^�tj|tjj�S)z*Returns true if obj has the selected state)rrrr�SELECTEDr
s r�is_selectedzAXUtilitiesState.is_selected#r#rc�^�tj|tjj�S)z+Returns true if obj has the sensitive state)rrrr�	SENSITIVEr
s r�is_sensitivezAXUtilitiesState.is_sensitive)rrc�^�tj|tjj�S)z)Returns true if obj has the showing state)rrrr�SHOWINGr
s r�
is_showingzAXUtilitiesState.is_showing/rCrc�^�tj|tjj�S)z-Returns true if obj has the single-line state)rrrr�SINGLE_LINEr
s r�is_single_linezAXUtilitiesState.is_single_line5rrc�^�tj|tjj�S)z'Returns true if obj has the stale state)rrrr�STALEr
s r�is_stalezAXUtilitiesState.is_stale;r'rc�^�tj|tjj�S)z+Returns true if obj has the transient state)rrrr�	TRANSIENTr
s r�is_transientzAXUtilitiesState.is_transientArrc�^�tj|tjj�S)z+Returns true if obj has the truncated state)rrrr�	TRUNCATEDr
s r�is_truncatedzAXUtilitiesState.is_truncatedGrrc�^�tj|tjj�S)z*Returns true if obj has the vertical state)rrrr�VERTICALr
s r�is_verticalzAXUtilitiesState.is_verticalMr#rc�^�tj|tjj�S)z)Returns true if obj has the visible state)rrrr�VISIBLEr
s r�
is_visiblezAXUtilitiesState.is_visibleSrCrc�^�tj|tjj�S)z)Returns true if obj has the visited state)rrrr�VISITEDr
s r�
is_visitedzAXUtilitiesState.is_visitedYrCrc�^�tj|tjj�S)z5Returns true if obj has the manages-descendants state)rrrr�MANAGES_DESCENDANTSr
s r�manages_descendantsz$AXUtilitiesState.manages_descendants_s!���!�!�#�u���'J�'J�K�Krc�^�tj|tjj�S)z9Returns true if obj has the supports-autocompletion state)rrrr�SUPPORTS_AUTOCOMPLETIONr
s r�supports_autocompletionz(AXUtilitiesState.supports_autocompletiones!���!�!�#�u���'N�'N�O�OrN)2�__name__�
__module__�__qualname__�__doc__�staticmethodrrrrr"r&r*r4r7r;r>rBrFrIrNrPrUrWrZr]r`rdrgrjrmrprtrwrzr}r�r�r�r�r�r�r�r�r�r�r�r�r�r�r��rrr	r	-s���<��6��6�
�B��B�
�D��D�
�?��?�
�A��A�
�>��>�
�=��=�
�����
��
��B��B�
�C��C�
�@��@�
�A��A�
�@��@�
�����
��
������
��
��C��C�
�B��B�
�F��F�
�@��@�
�F��F�
�>��>�
�C��C�
�H��H�
�?��?�
�@��@�
�B��B�
�A��A�
�B��B�
�C��C�
�H��H�
�A��A�
�B��B�
�@��@�
�D��D�
�>��>�
�B��B�
�B��B�
�A��A�
�@��@�
�@��@�
�L��L�
�P��Prr	)r��__id__�__version__�__date__�
__copyright__�__license__�gi�require_version�
gi.repositoryr�r�	ax_objectrr	r�rr�<module>r�sQ��*�������1�
���	�����7�E�"����|P�|Pr

Zerion Mini Shell 1.0