%PDF- %PDF-
Mini Shell

Mini Shell

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

�

g
f����v�dZdZdZdZdZdZddlZejdd	�dd
lm	Z	ddl
mZGd
�d�Zy)a�
Utilities for obtaining role-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�)�AXObjectc���eZdZdZed�d��Zed��Zed��Zed��Zed��Z	ed��Z
ed��Zed�d	��Zed
��Z
ed�d��Zed��Zed
��Zed��Zed�d��Zed�d��Zed�d��Zed�d��Zed�d��Zed�d��Zed�d��Zed�d��Zed�d��Zed�d��Zed�d��Zed�d��Zed�d��Zed�d��Zed�d��Z ed�d��Z!ed�d ��Z"ed�d!��Z#ed�d"��Z$ed�d#��Z%ed�d$��Z&ed�d%��Z'ed�d&��Z(ed�d'��Z)ed�d(��Z*ed�d)��Z+ed�d*��Z,ed�d+��Z-ed�d,��Z.ed�d-��Z/ed�d.��Z0ed�d/��Z1ed�d0��Z2ed�d1��Z3ed�d2��Z4ed�d3��Z5ed�d4��Z6ed�d5��Z7ed�d6��Z8ed�d7��Z9ed�d8��Z:ed�d9��Z;ed�d:��Z<ed�d;��Z=ed�d<��Z>ed�d=��Z?ed�d>��Z@ed�d?��ZAed�d@��ZBed�dA��ZCed�dB��ZDed�dC��ZEed�dD��ZFed�dE��ZGed�dF��ZHed�dG��ZIed�dH��ZJed�dI��ZKed�dJ��ZLed�dK��ZMed�dL��ZNed�dM��ZOed�dN��ZPed�dO��ZQed�dP��ZRed�dQ��ZSed�dR��ZTed�dS��ZUed�dT��ZVed�dU��ZWed�dV��ZXed�dW��ZYed�dX��ZZed�dY��Z[ed�dZ��Z\ed�d[��Z]ed�d\��Z^ed�d]��Z_ed�d^��Z`ed�d_��Zaed�d`��Zbed�da��Zced�db��Zded�dc��Zeed�dd��Zfed�de��Zged�df��Zhed�dg��Zied�dh��Zjed�di��Zked�dj��Zled�dk��Zmed�dl��Zned�dm��Zoed�dn��Zped�do��Zqed�dp��Zred�dq��Zsed�dr��Zted�ds��Zued�dt��Zved�du��Zwed�dv��Zxed�dw��Zyed�dx��Zzed�dy��Z{ed�dz��Z|ed�d{��Z}ed�d|��Z~ed�d}��Zed�d~��Z�ed�d��Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�ed�d���Z�y)��AXUtilitiesRolez1Utilities for obtaining role-related information.c��tjjtjjtjjg}|r)|jtjj�|S�z/Returns the list of roles we consider documents)r�Role�
COLOR_CHOOSER�DIALOG�FILE_CHOOSER�append�ALERT)�include_alert_as_dialog�roless  �8/usr/lib/python3/dist-packages/orca/ax_utilities_role.py�get_dialog_rolesz AXUtilitiesRole.get_dialog_roles.sR�����)�)����"�"����(�(�*��#��L�L����)�)�*���c�6�tjjtjjtjjtjj
tjjtjjg}|Sr
)rr�DOCUMENT_EMAIL�DOCUMENT_FRAME�DOCUMENT_PRESENTATION�DOCUMENT_SPREADSHEET�
DOCUMENT_TEXT�DOCUMENT_WEB�rs r�get_document_rolesz"AXUtilitiesRole.get_document_roles9s`�����*�*����*�*����1�1����0�0����)�)����(�(�*���rc
��tjjtjjtjjtjj
tjjtjjtjjtjjtjjtjjg
}|S)z1Returns the list of roles we consider form fields)rr�	CHECK_BOX�RADIO_BUTTON�	COMBO_BOXr�TEXT�LIST_BOX�ENTRY�
PASSWORD_TEXT�PUSH_BUTTON�SPIN_BUTTONrs r�get_form_field_rolesz$AXUtilitiesRole.get_form_field_rolesEs������%�%����(�(����%�%����*�*���������$�$����!�!����)�)����'�'����'�'�	)���rc���tjjtjjtjjtjj
g}|S)z0Returns the list of roles we consider menu items)rr�	MENU_ITEM�CHECK_MENU_ITEM�RADIO_MENU_ITEM�TEAROFF_MENU_ITEMrs r�get_menu_item_rolesz#AXUtilitiesRole.get_menu_item_rolesUsF�����%�%����+�+����+�+����-�-�/���rc�h�tjjtjjtjjtjj
tjjtjjtjjg}|S)z2Returns the list of roles we consider menu related)	rr�MENU�MENU_BAR�
POPUP_MENUr+r,r-r.rs r�get_menu_related_rolesz&AXUtilitiesRole.get_menu_related_roles_sk����������$�$����&�&����%�%����+�+����+�+����-�-�
/���rc�\�tjjtjjtjjtjj
tjjtjjtjjtjjtjjtjjtjjtjjtjjtjjtjj tjj"tjj$g}|S)zHReturns the list of roles we want to exclude from the list of clickables)rrr"r%r$r1r+r,r-�PAGE_TAB�
PAGE_TAB_LISTr&�PROGRESS_BAR�SLIDERr(�TOOL_BAR�	TREE_ITEM�
TREE_TABLE�TREErs r�)get_roles_to_exclude_from_clickables_listz9AXUtilitiesRole.get_roles_to_exclude_from_clickables_listls������%�%����!�!����$�$���������%�%����+�+����+�+����$�$����)�)����)�)����(�(����"�"����'�'����$�$����%�%����&�&������!"��"�rc�6�tjjtjjtjjtjj
tjjtjjg}|S)z5Returns the list of roles we consider a set container)rr�LISTr1r7�TABLEr=r<rs r�get_set_container_rolesz'AXUtilitiesRole.get_set_container_roles�sZ���������������)�)����!�!���������&�&�(���rc�*�tjjg}|ru|jtjjtjj
tjjtjjg�|S)z1Returns the list of roles we consider table cells)rr�
TABLE_CELL�extend�TABLE_COLUMN_HEADER�TABLE_ROW_HEADER�
COLUMN_HEADER�
ROW_HEADER)�include_headersrs  r�get_table_cell_rolesz$AXUtilitiesRole.get_table_cell_roles�sd�����&�&�'����L�L�%�*�*�8�8��*�*�5�5��*�*�2�2��*�*�/�/�1�
2��rc���tjjtjjtjjtjj
g}|S)z3Returns the list of roles we consider table headers)rrrFrGrHrIrs r�get_table_header_rolesz&AXUtilitiesRole.get_table_header_roles�sF�����/�/����,�,����)�)����&�&�(���rc��tjjtjjtjjtjj
tjjtjjg}|r)|jtjj�|S)z3Returns the list of roles we consider table related)
rrrArDrFrGrHrIr�CAPTION)�include_captionrs  r�get_table_related_rolesz'AXUtilitiesRole.get_table_related_roles�sy�����!�!����&�&����/�/����,�,����)�)����&�&�(����L�L����+�+�,��rc��tjjtjjtjjg}|S)z2Returns the list of roles we consider tree related)rrr=r;r<rs r�get_tree_related_rolesz&AXUtilitiesRole.get_tree_related_roles�s7����������%�%����&�&�(���rc
��tjjtjjtjjtjj
tjjtjjtjjtjjtjjtjjg
}|S)z-Returns the list of roles we consider widgets)rrr r"r%r&r'r!r9r(r#�
TOGGLE_BUTTONrs r�get_widget_rolesz AXUtilitiesRole.get_widget_roles�s������%�%����%�%����!�!����)�)����'�'����(�(����"�"����'�'���������)�)�	+���rc�X�tj|�tj|�k(S)z0Returns True if obj1 and obj2 have the same role)r�get_role)�obj1�obj2s  r�have_same_rolezAXUtilitiesRole.have_same_role�s%��� � ��&�(�*;�*;�D�*A�A�ArNc�j�|�tj|�}|tjjk(S)z2Returns True if obj has the accelerator label role)rrXrr�ACCELERATOR_LABEL��obj�roles  r�is_accelerator_labelz$AXUtilitiesRole.is_accelerator_label��.���<��$�$�S�)�D��u�z�z�3�3�3�3rc�j�|�tj|�}|tjjk(S)z&Returns True if obj has the alert role)rrXrrrr^s  r�is_alertzAXUtilitiesRole.is_alert��.���<��$�$�S�)�D��u�z�z�'�'�'�'rc�j�|�tj|�}|tjjk(S)z*Returns True if obj has the animation role)rrXrr�	ANIMATIONr^s  r�is_animationzAXUtilitiesRole.is_animation��.���<��$�$�S�)�D��u�z�z�+�+�+�+rc�j�|�tj|�}|tjjk(S)z,Returns True if obj has the application role)rrXrr�APPLICATIONr^s  r�is_applicationzAXUtilitiesRole.is_application��.���<��$�$�S�)�D��u�z�z�-�-�-�-rc�j�|�tj|�}|tjjk(S)z&Returns True if obj has the arrow role)rrXrr�ARROWr^s  r�is_arrowzAXUtilitiesRole.is_arrow�rerc�j�|�tj|�}|tjjk(S)z(Returns True if obj has the article role)rrXrr�ARTICLEr^s  r�
is_articlezAXUtilitiesRole.is_article��.���<��$�$�S�)�D��u�z�z�)�)�)�)rc�j�|�tj|�}|tjjk(S)z&Returns True if obj has the audio role)rrXrr�AUDIOr^s  r�is_audiozAXUtilitiesRole.is_audiorerc�j�|�tj|�}|tjjk(S)z-Returns True if obj has the autocomplete role)rrXrr�AUTOCOMPLETEr^s  r�is_autocompletezAXUtilitiesRole.is_autocomplete
�.���<��$�$�S�)�D��u�z�z�.�.�.�.rc�j�|�tj|�}|tjjk(S)z,Returns True if obj has the block quote role)rrXrr�BLOCK_QUOTEr^s  r�is_block_quotezAXUtilitiesRole.is_block_quotermrc��|�tj|�}|tjjtjj
fvS)z7Returns True if obj has the push- or toggle-button role)rrXrrr'rUr^s  r�	is_buttonzAXUtilitiesRole.is_buttons=���<��$�$�S�)�D���
�
�.�.��
�
�0H�0H�I�I�Irc�j�|�tj|�}|tjjk(S)z)Returns True if obj has the calendar role)rrXrr�CALENDARr^s  r�is_calendarzAXUtilitiesRole.is_calendar"�.���<��$�$�S�)�D��u�z�z�*�*�*�*rc�j�|�tj|�}|tjjk(S)z'Returns True if obj has the canvas role)rrXrr�CANVASr^s  r�	is_canvaszAXUtilitiesRole.is_canvas*�.���<��$�$�S�)�D��u�z�z�(�(�(�(rc�j�|�tj|�}|tjjk(S)z(Returns True if obj has the caption role)rrXrrrOr^s  r�
is_captionzAXUtilitiesRole.is_caption2rtrc�j�|�tj|�}|tjjk(S)z&Returns True if obj has the chart role)rrXrr�CHARTr^s  r�is_chartzAXUtilitiesRole.is_chart:rerc�j�|�tj|�}|tjjk(S)z)Returns True if obj has the checkbox role)rrXrrr r^s  r�is_check_boxzAXUtilitiesRole.is_check_boxBrirc�j�|�tj|�}|tjjk(S)z/Returns True if obj has the check menuitem role)rrXrrr,r^s  r�is_check_menu_itemz"AXUtilitiesRole.is_check_menu_itemJ�.���<��$�$�S�)�D��u�z�z�1�1�1�1rc�j�|�tj|�}|tjjk(S)z.Returns True if obj has the color_chooser role)rrXrrrr^s  r�is_color_chooserz AXUtilitiesRole.is_color_chooserR�.���<��$�$�S�)�D��u�z�z�/�/�/�/rc�j�|�tj|�}|tjjk(S)z.Returns True if obj has the column header role)rrXrrrHr^s  r�is_column_headerz AXUtilitiesRole.is_column_headerZr�rc�j�|�tj|�}|tjjk(S)z)Returns True if obj has the combobox role)rrXrrr"r^s  r�is_combo_boxzAXUtilitiesRole.is_combo_boxbrirc�j�|�tj|�}|tjjk(S)z(Returns True if obj has the comment role)rrXrr�COMMENTr^s  r�
is_commentzAXUtilitiesRole.is_commentjrtrc�j�|�tj|�}|tjjk(S)z1Returns True if obj has the content deletion role)rrXrr�CONTENT_DELETIONr^s  r�is_content_deletionz#AXUtilitiesRole.is_content_deletionr�.���<��$�$�S�)�D��u�z�z�2�2�2�2rc�j�|�tj|�}|tjjk(S)z2Returns True if obj has the content insertion role)rrXrr�CONTENT_INSERTIONr^s  r�is_content_insertionz$AXUtilitiesRole.is_content_insertionzrbrc�j�|�tj|�}|tjjk(S)z,Returns True if obj has the date editor role)rrXrr�DATE_EDITORr^s  r�is_date_editorzAXUtilitiesRole.is_date_editor�rmrc��tj||�xr.tj|tj
j�S)zAReturns True if obj has the push button role the is-default state)r�is_push_buttonr�	has_stater�	StateType�
IS_DEFAULTr^s  r�is_default_buttonz!AXUtilitiesRole.is_default_button�s:���-�-�c�4�8�D��"�"�3����(B�(B�C�	Drc�j�|�tj|�}|tjjk(S)z+Returns True if obj has the definition role)rrXrr�
DEFINITIONr^s  r�
is_definitionzAXUtilitiesRole.is_definition��.���<��$�$�S�)�D��u�z�z�,�,�,�,rc�j�|�tj|�}|tjjk(S)z1Returns True if obj has the description list role)rrXrr�DESCRIPTION_LISTr^s  r�is_description_listz#AXUtilitiesRole.is_description_list�r�rc�j�|�tj|�}|tjjk(S)z1Returns True if obj has the description term role)rrXrr�DESCRIPTION_TERMr^s  r�is_description_termz#AXUtilitiesRole.is_description_term�r�rc�j�|�tj|�}|tjjk(S)z2Returns True if obj has the description value role)rrXrr�DESCRIPTION_VALUEr^s  r�is_description_valuez$AXUtilitiesRole.is_description_value�rbrc�j�|�tj|�}|tjjk(S)z.Returns True if obj has the desktop frame role)rrXrr�
DESKTOP_FRAMEr^s  r�is_desktop_framez AXUtilitiesRole.is_desktop_frame�r�rc�j�|�tj|�}|tjjk(S)z-Returns True if obj has the desktop icon role)rrXrr�DESKTOP_ICONr^s  r�is_desktop_iconzAXUtilitiesRole.is_desktop_icon�r{rc�j�|�tj|�}|tjjk(S)z%Returns True if obj has the dial role)rrXrr�DIALr^s  r�is_dialzAXUtilitiesRole.is_dial��,���<��$�$�S�)�D��u�z�z���&�&rc�j�|�tj|�}|tjjk(S)z'Returns True if obj has the dialog role)rrXrrr
r^s  r�	is_dialogzAXUtilitiesRole.is_dialog�r�rc�b�tjd�}|�tj|�}||vS)z0Returns True if obj has any dialog or alert roleT)rrrrX�r_r`rs   r�is_dialog_or_alertz"AXUtilitiesRole.is_dialog_or_alert�s3�� �0�0��6���<��$�$�S�)�D��u�}�rc�j�|�tj|�}|tjjk(S)z/Returns True if obj has the directory pane role)rrXrr�DIRECTORY_PANEr^s  r�is_directory_panez!AXUtilitiesRole.is_directory_pane��.���<��$�$�S�)�D��u�z�z�0�0�0�0rc�`�tj�}|�tj|�}||vS)z1Returns True if obj has any document-related role)rrrrXr�s   r�is_documentzAXUtilitiesRole.is_document�s1�� �2�2�4���<��$�$�S�)�D��u�}�rc�j�|�tj|�}|tjjk(S)z/Returns True if obj has the document email role)rrXrrrr^s  r�is_document_emailz!AXUtilitiesRole.is_document_email�r�rc�j�|�tj|�}|tjjk(S)z/Returns True if obj has the document frame role)rrXrrrr^s  r�is_document_framez!AXUtilitiesRole.is_document_frame�r�rc�j�|�tj|�}|tjjk(S)z6Returns True if obj has the document presentation role)rrXrrrr^s  r�is_document_presentationz(AXUtilitiesRole.is_document_presentation�s.���<��$�$�S�)�D��u�z�z�7�7�7�7rc�j�|�tj|�}|tjjk(S)z5Returns True if obj has the document spreadsheet role)rrXrrrr^s  r�is_document_spreadsheetz'AXUtilitiesRole.is_document_spreadsheets.���<��$�$�S�)�D��u�z�z�6�6�6�6rc�j�|�tj|�}|tjjk(S)z.Returns True if obj has the document text role)rrXrrrr^s  r�is_document_textz AXUtilitiesRole.is_document_textr�rc�j�|�tj|�}|tjjk(S)z-Returns True if obj has the document web role)rrXrrrr^s  r�is_document_webzAXUtilitiesRole.is_document_webr{rc�j�|�tj|�}|tjjk(S)z-Returns True if obj has the drawing area role)rrXrr�DRAWING_AREAr^s  r�is_drawing_areazAXUtilitiesRole.is_drawing_arear{rc�j�|�tj|�}|tjjk(S)z(Returns True if obj has the editbar role)rrXrr�EDITBARr^s  r�
is_editbarzAXUtilitiesRole.is_editbar#rtrc�j�|�tj|�}|tjjk(S)z)Returns True if obj has the embedded role)rrXrr�EMBEDDEDr^s  r�is_embeddedzAXUtilitiesRole.is_embedded+r�rc�j�|�tj|�}|tjjk(S)z&Returns True if obj has the entry role)rrXrrr%r^s  r�is_entryzAXUtilitiesRole.is_entry3rerc�j�|�tj|�}|tjjk(S)z)Returns True if obj has the extended role)rrXrr�EXTENDEDr^s  r�is_extendedzAXUtilitiesRole.is_extended;r�rc�j�|�tj|�}|tjjk(S)z-Returns True if obj has the file chooser role)rrXrrrr^s  r�is_file_chooserzAXUtilitiesRole.is_file_chooserCr{rc�j�|�tj|�}|tjjk(S)z'Returns True if obj has the filler role)rrXrr�FILLERr^s  r�	is_fillerzAXUtilitiesRole.is_fillerKr�rc�j�|�tj|�}|tjjk(S)z2Returns True if obj has the focus traversable role)rrXrr�FOCUS_TRAVERSABLEr^s  r�is_focus_traversablez$AXUtilitiesRole.is_focus_traversableSrbrc�j�|�tj|�}|tjjk(S)z-Returns True if obj has the font chooser role)rrXrr�FONT_CHOOSERr^s  r�is_font_chooserzAXUtilitiesRole.is_font_chooser[r{rc�j�|�tj|�}|tjjk(S)z'Returns True if obj has the footer role)rrXrr�FOOTERr^s  r�	is_footerzAXUtilitiesRole.is_footercr�rc�j�|�tj|�}|tjjk(S)z)Returns True if obj has the footnote role)rrXrr�FOOTNOTEr^s  r�is_footnotezAXUtilitiesRole.is_footnotekr�rc�j�|�tj|�}|tjjk(S)z%Returns True if obj has the form role)rrXrr�FORMr^s  r�is_formzAXUtilitiesRole.is_formsr�rc�j�|�tj|�}|tjjk(S)z&Returns True if obj has the frame role)rrXrr�FRAMEr^s  r�is_framezAXUtilitiesRole.is_frame{rerc�j�|�tj|�}|tjjk(S)z+Returns True if obj has the glass pane role)rrXrr�
GLASS_PANEr^s  r�
is_glass_panezAXUtilitiesRole.is_glass_pane�r�rc�j�|�tj|�}|tjjk(S)z)Returns True if obj has the grouping role)rrXrr�GROUPINGr^s  r�is_groupingzAXUtilitiesRole.is_grouping�r�rc�j�|�tj|�}|tjjk(S)z'Returns True if obj has the header role)rrXrr�HEADERr^s  r�	is_headerzAXUtilitiesRole.is_header�r�rc�j�|�tj|�}|tjjk(S)z(Returns True if obj has the heading role)rrXrr�HEADINGr^s  r�
is_headingzAXUtilitiesRole.is_heading�rtrc�j�|�tj|�}|tjjk(S)z/Returns True if obj has the html container role)rrXrr�HTML_CONTAINERr^s  r�is_html_containerz!AXUtilitiesRole.is_html_container�r�rc��tj||�xr.tj|tj
j�S)z-Returns True if obj is a horizontal scrollbar)r�
is_scroll_barrr�rr��
HORIZONTALr^s  r�is_horizontal_scrollbarz'AXUtilitiesRole.is_horizontal_scrollbar�s:���,�,�S�$�7�D��"�"�3����(B�(B�C�	Drc��tj||�xr.tj|tj
j�S)z-Returns True if obj is a horizontal separator)r�is_separatorrr�rr�rr^s  r�is_horizontal_separatorz'AXUtilitiesRole.is_horizontal_separator�s:���+�+�C��6�D��"�"�3����(B�(B�C�	Drc��tj||�xr.tj|tj
j�S)z*Returns True if obj is a horizontal slider)r�	is_sliderrr�rr�rr^s  r�is_horizontal_sliderz$AXUtilitiesRole.is_horizontal_slider�s:���(�(��d�3�D��"�"�3����(B�(B�C�	Drc�j�|�tj|�}|tjjk(S)z%Returns True if obj has the icon role)rrXrr�ICONr^s  r�is_iconzAXUtilitiesRole.is_icon�r�rc��|�tj|�}|tjjtjj
fvS)z/Returns True if obj has the icon or canvas role)rrXrrrr�r^s  r�is_icon_or_canvasz!AXUtilitiesRole.is_icon_or_canvas�s;���<��$�$�S�)�D���
�
������):�):�;�;�;rc�j�|�tj|�}|tjjk(S)z&Returns True if obj has the image role)rrXrr�IMAGEr^s  r�is_imagezAXUtilitiesRole.is_image�rerc��|�tj|�}|tjjtjj
fvS)z0Returns True if obj has the image or canvas role)rrXrrrr�r^s  r�is_image_or_canvasz"AXUtilitiesRole.is_image_or_canvas�s=���<��$�$�S�)�D���
�
�(�(�%�*�*�*;�*;�<�<�<rc�j�|�tj|�}|tjjk(S)z*Returns True if obj has the image map role)rrXrr�	IMAGE_MAPr^s  r�is_image_mapzAXUtilitiesRole.is_image_map�rirc�j�|�tj|�}|tjjk(S)z)Returns True if obj has the info bar role)rrXrr�INFO_BARr^s  r�is_info_barzAXUtilitiesRole.is_info_bar�r�rc�j�|�tj|�}|tjjk(S)z4Returns True if obj has the input method window role)rrXrr�INPUT_METHOD_WINDOWr^s  r�is_input_method_windowz&AXUtilitiesRole.is_input_method_window��.���<��$�$�S�)�D��u�z�z�5�5�5�5rc�j�|�tj|�}|tjjk(S)z/Returns True if obj has the internal frame role)rrXrr�INTERNAL_FRAMEr^s  r�is_internal_framez!AXUtilitiesRole.is_internal_frame�r�rc�j�|�tj|�}|tjjk(S)z(Returns True if obj has the invalid role)rrXrr�INVALIDr^s  r�is_invalid_rolezAXUtilitiesRole.is_invalid_rolertrc�j�|�tj|�}|tjjk(S)z&Returns True if obj has the label role)rrXrr�LABELr^s  r�is_labelzAXUtilitiesRole.is_labelrerc��|�tj|�}|tjjtjj
fvS)z1Returns True if obj has the label or caption role)rrXrrr4rOr^s  r�is_label_or_captionz#AXUtilitiesRole.is_label_or_captions=���<��$�$�S�)�D���
�
�(�(�%�*�*�*<�*<�=�=�=rc�j�|�tj|�}|tjjk(S)z)Returns True if obj has the landmark role)rrXrr�LANDMARKr^s  r�is_landmarkzAXUtilitiesRole.is_landmarkr�rc�j�|�tj|�}|tjjk(S)z-Returns True if obj has the layered pane role)rrXrr�LAYERED_PANEr^s  r�is_layered_panezAXUtilitiesRole.is_layered_pane r{rc�j�|�tj|�}|tjjk(S)z*Returns True if obj has the level bar role)rrXrr�	LEVEL_BARr^s  r�is_level_barzAXUtilitiesRole.is_level_bar(rirc�j�|�tj|�}|tjjk(S)z%Returns True if obj has the link role)rrXrr�LINKr^s  r�is_linkzAXUtilitiesRole.is_link0r�rc�j�|�tj|�}|tjjk(S)z%Returns True if obj has the list role)rrXrrr@r^s  r�is_listzAXUtilitiesRole.is_list8r�rc�j�|�tj|�}|tjjk(S)z)Returns True if obj has the list box role)rrXrrr$r^s  r�is_list_boxzAXUtilitiesRole.is_list_box@r�rc�j�|�tj|�}|tjjk(S)z*Returns True if obj has the list item role)rrXrr�	LIST_ITEMr^s  r�is_list_itemzAXUtilitiesRole.is_list_itemHrirc�j�|�tj|�}|tjjk(S)z$Returns True if obj has the log role)rrXrr�LOGr^s  r�is_logzAXUtilitiesRole.is_logPs,���<��$�$�S�)�D��u�z�z�~�~�%�%rc�j�|�tj|�}|tjjk(S)z%Returns True if obj has the mark role)rrXrr�MARKr^s  r�is_markzAXUtilitiesRole.is_markXr�rc�j�|�tj|�}|tjjk(S)z(Returns True if obj has the marquee role)rrXrr�MARQUEEr^s  r�
is_marqueezAXUtilitiesRole.is_marquee`rtrc�j�|�tj|�}|tjjk(S)z%Returns True if obj has the math role)rrXrr�MATHr^s  r�is_mathzAXUtilitiesRole.is_mathhr�rc�j�|�tj|�}|tjjk(S)z.Returns True if obj has the math fraction role)rrXrr�
MATH_FRACTIONr^s  r�is_math_fractionz AXUtilitiesRole.is_math_fractionpr�rc�j�|�tj|�}|tjjk(S)z*Returns True if obj has the math root role)rrXrr�	MATH_ROOTr^s  r�is_math_rootzAXUtilitiesRole.is_math_rootxrirc�j�|�tj|�}|tjjk(S)z%Returns True if obj has the menu role)rrXrrr1r^s  r�is_menuzAXUtilitiesRole.is_menu�r�rc�j�|�tj|�}|tjjk(S)z(Returns True if obj has the menubar role)rrXrrr2r^s  r�is_menu_barzAXUtilitiesRole.is_menu_bar�r�rc�j�|�tj|�}|tjjk(S)z*Returns True if obj has the menu item role)rrXrrr+r^s  r�is_menu_itemzAXUtilitiesRole.is_menu_item�rirc�`�tj�}|�tj|�}||vS)z*Returns True if obj has any menu item role)rr/rrXr�s   r�is_menu_item_of_any_kindz(AXUtilitiesRole.is_menu_item_of_any_kind�s1�� �3�3�5���<��$�$�S�)�D��u�}�rc�`�tj�}|�tj|�}||vS)z-Returns True if obj has any menu-related role)rr4rrXr�s   r�is_menu_relatedzAXUtilitiesRole.is_menu_related��1�� �6�6�8���<��$�$�S�)�D��u�}�rc��tj||�xr.tj|tj
j�S)z@Returns True if obj has the alert or dialog role and modal state)rr�rr�rr��MODALr^s  r�is_modal_dialogzAXUtilitiesRole.is_modal_dialog�s8���1�1�#�t�<�?��"�"�3����(=�(=�>�	?rc��tj||�xr.tj|tj
j�S�z:Returns True if obj has the entry role and multiline state)rr�rr�rr��
MULTI_LINEr^s  r�is_multi_line_entryz#AXUtilitiesRole.is_multi_line_entry�s:���'�'��T�2�D��"�"�3����(B�(B�C�	Drc�j�|�tj|�}|tjjk(S)z-Returns True if obj has the notification role)rrXrr�NOTIFICATIONr^s  r�is_notificationzAXUtilitiesRole.is_notification�r{rc�j�|�tj|�}|tjjk(S)z,Returns True if obj has the option pane role)rrXrr�OPTION_PANEr^s  r�is_option_panezAXUtilitiesRole.is_option_pane�rmrc�j�|�tj|�}|tjjk(S)z%Returns True if obj has the page role)rrXrr�PAGEr^s  r�is_pagezAXUtilitiesRole.is_page�r�rc�j�|�tj|�}|tjjk(S)z)Returns True if obj has the page tab role)rrXrrr6r^s  r�is_page_tabzAXUtilitiesRole.is_page_tab�r�rc�j�|�tj|�}|tjjk(S)z.Returns True if obj has the page tab list role)rrXrrr7r^s  r�is_page_tab_listz AXUtilitiesRole.is_page_tab_list�r�rc��tjjtjjg}|�t	j
|�}||vS)z:Returns True if obj has the page tab or page tab list role)rrr7r6rrXr�s   r�is_page_tab_list_relatedz(AXUtilitiesRole.is_page_tab_list_related�sA�����)�)�5�:�:�+>�+>�?���<��$�$�S�)�D��u�}�rc�j�|�tj|�}|tjjk(S)z&Returns True if obj has the panel role)rrXrr�PANELr^s  r�is_panelzAXUtilitiesRole.is_panel�rerc�j�|�tj|�}|tjjk(S)z*Returns True if obj has the paragraph role)rrXrr�	PARAGRAPHr^s  r�is_paragraphzAXUtilitiesRole.is_paragraph�rirc�j�|�tj|�}|tjjk(S)z.Returns True if obj has the password text role)rrXrrr&r^s  r�is_password_textz AXUtilitiesRole.is_password_text�r�rc�j�|�tj|�}|tjjk(S)z+Returns True if obj has the popup menu role)rrXrrr3r^s  r�
is_popup_menuzAXUtilitiesRole.is_popup_menur�rc�j�|�tj|�}|tjjk(S)z-Returns True if obj has the progress bar role)rrXrrr8r^s  r�is_progress_barzAXUtilitiesRole.is_progress_bar	r{rc�j�|�tj|�}|tjjk(S)z,Returns True if obj has the push button role)rrXrrr'r^s  rr�zAXUtilitiesRole.is_push_buttonrmrc�j�|�tj|�}|tjjk(S)z1Returns True if obj has the push button menu role)rrXrr�PUSH_BUTTON_MENUr^s  r�is_push_button_menuz#AXUtilitiesRole.is_push_button_menur�rc�j�|�tj|�}|tjjk(S)z-Returns True if obj has the radio button role)rrXrrr!r^s  r�is_radio_buttonzAXUtilitiesRole.is_radio_button!r{rc�j�|�tj|�}|tjjk(S)z0Returns True if obj has the radio menu item role)rrXrrr-r^s  r�is_radio_menu_itemz"AXUtilitiesRole.is_radio_menu_item)r�rc�j�|�tj|�}|tjjk(S)z'Returns True if obj has the rating role)rrXrr�RATINGr^s  r�	is_ratingzAXUtilitiesRole.is_rating1r�rc�j�|�tj|�}|tjjk(S)z1Returns True if obj has the redundant object role)rrXrr�REDUNDANT_OBJECTr^s  r�is_redundant_objectz#AXUtilitiesRole.is_redundant_object9r�rc�j�|�tj|�}|tjjk(S)z*Returns True if obj has the root pane role)rrXrr�	ROOT_PANEr^s  r�is_root_panezAXUtilitiesRole.is_root_paneArirc�j�|�tj|�}|tjjk(S)z+Returns True if obj has the row header role)rrXrrrIr^s  r�
is_row_headerzAXUtilitiesRole.is_row_headerIr�rc�j�|�tj|�}|tjjk(S)z&Returns True if obj has the ruler role)rrXrr�RULERr^s  r�is_rulerzAXUtilitiesRole.is_rulerQrerc�j�|�tj|�}|tjjk(S)z*Returns True if obj has the scrollbar role)rrXrr�
SCROLL_BARr^s  rrzAXUtilitiesRole.is_scroll_barYr�rc�j�|�tj|�}|tjjk(S)z,Returns True if obj has the scroll pane role)rrXrr�SCROLL_PANEr^s  r�is_scroll_panezAXUtilitiesRole.is_scroll_panearmrc�j�|�tj|�}|tjjk(S)z(Returns True if obj has the section role)rrXrr�SECTIONr^s  r�
is_sectionzAXUtilitiesRole.is_sectionirtrc�j�|�tj|�}|tjjk(S)z*Returns True if obj has the separator role)rrXrr�	SEPARATORr^s  rrzAXUtilitiesRole.is_separatorqrirc��tj||�xr.tj|tj
j�Srl)rr�rr�rr��SINGLE_LINEr^s  r�is_single_line_entryz$AXUtilitiesRole.is_single_line_entryys:���'�'��T�2�E��"�"�3����(C�(C�D�	Erc�j�|�tj|�}|tjjk(S)z'Returns True if obj has the slider role)rrXrrr9r^s  rrzAXUtilitiesRole.is_slider�r�rc�j�|�tj|�}|tjjk(S)z,Returns True if obj has the spin button role)rrXrrr(r^s  r�is_spin_buttonzAXUtilitiesRole.is_spin_button�rmrc�j�|�tj|�}|tjjk(S)z+Returns True if obj has the split pane role)rrXrr�
SPLIT_PANEr^s  r�
is_split_panezAXUtilitiesRole.is_split_pane�r�rc�j�|�tj|�}|tjjk(S)z'Returns True if obj has the static role)rrXrr�STATICr^s  r�	is_staticzAXUtilitiesRole.is_static�r�rc�j�|�tj|�}|tjjk(S)z*Returns True if obj has the statusbar role)rrXrr�
STATUS_BARr^s  r�
is_status_barzAXUtilitiesRole.is_status_bar�r�rc�j�|�tj|�}|tjjk(S)z*Returns True if obj has the subscript role)rrXrr�	SUBSCRIPTr^s  r�is_subscriptzAXUtilitiesRole.is_subscript�rirc��|�tj|�}|tjjtjj
fvS)z9Returns True if obj has the subscript or superscript role)rrXrrr��SUPERSCRIPTr^s  r�is_subscript_or_superscriptz+AXUtilitiesRole.is_subscript_or_superscript�s=���<��$�$�S�)�D���
�
�,�,�e�j�j�.D�.D�E�E�Erc�j�|�tj|�}|tjjk(S)z+Returns True if obj has the suggestion role)rrXrr�
SUGGESTIONr^s  r�
is_suggestionzAXUtilitiesRole.is_suggestion�r�rc�j�|�tj|�}|tjjk(S)z,Returns True if obj has the superscript role)rrXrrr�r^s  r�is_superscriptzAXUtilitiesRole.is_superscript�rmrc�j�|�tj|�}|tjjk(S)z&Returns True if obj has the table role)rrXrrrAr^s  r�is_tablezAXUtilitiesRole.is_table�rerc�j�|�tj|�}|tjjk(S)z+Returns True if obj has the table cell role)rrXrrrDr^s  r�
is_table_cellzAXUtilitiesRole.is_table_cell�r�rc�`�tj�}|�tj|�}||vS)z?Returns True if obj has the table cell or a header-related role)rrKrrXr�s   r�is_table_cell_or_headerz'AXUtilitiesRole.is_table_cell_or_header�s1�� �4�4�6���<��$�$�S�)�D��u�}�rc�j�|�tj|�}|tjjk(S)z4Returns True if obj has the table column header role)rrXrrrFr^s  r�is_table_column_headerz&AXUtilitiesRole.is_table_column_header�r,rc�`�tj�}|�tj|�}||vS)z3Returns True if obj has a table header related role)rrMrrXr�s   r�is_table_headerzAXUtilitiesRole.is_table_header�rgrc�b�tj|�}|�tj|�}||vS)z,Returns True if obj has a table-related role)rrQrrX)r_r`rPrs    r�is_table_relatedz AXUtilitiesRole.is_table_related�s3�� �7�7��H���<��$�$�S�)�D��u�}�rc�j�|�tj|�}|tjjk(S)z*Returns True if obj has the table row role)rrXrr�	TABLE_ROWr^s  r�is_table_rowzAXUtilitiesRole.is_table_row�rirc�j�|�tj|�}|tjjk(S)z1Returns True if obj has the table row header role)rrXrrrGr^s  r�is_table_row_headerz#AXUtilitiesRole.is_table_row_headerr�rc�j�|�tj|�}|tjjk(S)z2Returns True if obj has the tearoff menu item role)rrXrrr.r^s  r�is_tearoff_menu_itemz$AXUtilitiesRole.is_tearoff_menu_itemrbrc�j�|�tj|�}|tjjk(S)z)Returns True if obj has the terminal role)rrXrr�TERMINALr^s  r�is_terminalzAXUtilitiesRole.is_terminals.���<��$�$�S�)�D��u�z�z�*�*�*�*rc�j�|�tj|�}|tjjk(S)z%Returns True if obj has the text role)rrXrrr#r^s  r�is_textzAXUtilitiesRole.is_textr�rc���tjjtjjtjjg}|�tj|�}||vS)z>Returns True if obj has any role associated with textual input)rrr%r&r(rrXr�s   r�
is_text_inputzAXUtilitiesRole.is_text_input"sM�����!�!�5�:�:�#;�#;�U�Z�Z�=S�=S�T���<��$�$�S�)�D��u�}�rc�j�|�tj|�}|tjjk(S)z&Returns True if obj has the timer role)rrXrr�TIMERr^s  r�is_timerzAXUtilitiesRole.is_timer+rerc�j�|�tj|�}|tjjk(S)z)Returns True if obj has the titlebar role)rrXrr�	TITLE_BARr^s  r�is_title_barzAXUtilitiesRole.is_title_bar3rirc�j�|�tj|�}|tjjk(S)z.Returns True if obj has the toggle button role)rrXrrrUr^s  r�is_toggle_buttonz AXUtilitiesRole.is_toggle_button;r�rc�j�|�tj|�}|tjjk(S)z(Returns True if obj has the toolbar role)rrXrrr:r^s  r�is_tool_barzAXUtilitiesRole.is_tool_barCr�rc�j�|�tj|�}|tjjk(S)z(Returns True if obj has the tooltip role)rrXrr�TOOL_TIPr^s  r�is_tool_tipzAXUtilitiesRole.is_tool_tipKr�rc�j�|�tj|�}|tjjk(S)z%Returns True if obj has the tree role)rrXrrr=r^s  r�is_treezAXUtilitiesRole.is_treeSr�rc��|�tj|�}|tjjtjj
fvS)z3Returns True if obj has the tree or tree table role)rrXrrr=r<r^s  r�is_tree_or_tree_tablez%AXUtilitiesRole.is_tree_or_tree_table[s;���<��$�$�S�)�D���
�
������)>�)>�?�?�?rc���tjjtjjtjjg}|�tj|�}||vS)z+Returns True if obj has a tree-related role)rrr=r;r<rrXr�s   r�is_tree_relatedzAXUtilitiesRole.is_tree_relatedcsQ����������%�%����&�&�(���<��$�$�S�)�D��u�}�rc�j�|�tj|�}|tjjk(S)z*Returns True if obj has the tree item role)rrXrrr;r^s  r�is_tree_itemzAXUtilitiesRole.is_tree_itemnrirc�j�|�tj|�}|tjjk(S)z+Returns True if obj has the tree table role)rrXrrr<r^s  r�
is_tree_tablezAXUtilitiesRole.is_tree_tablevr�rc�j�|�tj|�}|tjjk(S)z(Returns True if obj has the unknown role)rrXrr�UNKNOWNr^s  r�
is_unknownzAXUtilitiesRole.is_unknown~rtrc��|�tj|�}|tjjtjj
fvS)z<Returns True if obj has the unknown or redundant object role)rrXrrr�r�r^s  r�is_unknown_or_redundantz'AXUtilitiesRole.is_unknown_or_redundant�s=���<��$�$�S�)�D���
�
�*�*�E�J�J�,G�,G�H�H�Hrc��tj||�xr.tj|tj
j�S)z+Returns True if obj is a vertical scrollbar)rrrr�rr��VERTICALr^s  r�is_vertical_scrollbarz%AXUtilitiesRole.is_vertical_scrollbar�s:���,�,�S�$�7�B��"�"�3����(@�(@�A�	Brc��tj||�xr.tj|tj
j�S)z+Returns True if obj is a vertical separator)rrrr�rr�r�r^s  r�is_vertical_separatorz%AXUtilitiesRole.is_vertical_separator�s:���+�+�C��6�B��"�"�3����(@�(@�A�	Brc��tj||�xr.tj|tj
j�S)z(Returns True if obj is a vertical slider)rrrr�rr�r�r^s  r�is_vertical_sliderz"AXUtilitiesRole.is_vertical_slider�s:���(�(��d�3�B��"�"�3����(@�(@�A�	Brc�j�|�tj|�}|tjjk(S)z&Returns True if obj has the video role)rrXrr�VIDEOr^s  r�is_videozAXUtilitiesRole.is_video�rerc�j�|�tj|�}|tjjk(S)z)Returns True if obj has the viewport role)rrXrr�VIEWPORTr^s  r�is_viewportzAXUtilitiesRole.is_viewport�r�rc�j�|�tj|�}|tjjk(S)z'Returns True if obj has the window role)rrXrr�WINDOWr^s  r�	is_windowzAXUtilitiesRole.is_window�r�r)T)F)N)NF)��__name__�
__module__�__qualname__�__doc__�staticmethodrrr)r/r4r>rBrKrMrQrSrVr[rardrhrlrprsrwrzr~r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrrrrrrrrr r"r%r(r+r/r2r5r7r:r=r@rCrErGrJrMrPrSrVrYr\r^r`rbrdrfrjrnrqrtrwryr{r}r�r�r�r�r�r�r�r�r�r�r�r�r�r�rr�r�rr�rr�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�r�rrrr	�rrrr+sg
��;������	��	��
��
������
��
�����,�	��	��	��	��������������
��
��B��B�
�4��4��(��(��,��,��.��.��(��(��*��*��(��(��/��/��.��.��J��J��+��+��)��)��*��*��(��(��,��,��2��2��0��0��0��0��,��,��*��*��3��3��4��4��.��.��D��D��-��-��3��3��3��3��4��4��0��0��/��/��'��'��)��)������1��1������1��1��1��1��8��8��7��7��0��0��/��/��/��/��*��*��+��+��(��(��+��+��/��/��)��)��4��4��/��/��)��)��+��+��'��'��(��(��-��-��+��+��)��)��*��*��1��1��D��D��D��D��D��D��'��'��<��<��(��(��=��=��,��,��+��+��6��6��1��1��*��*��(��(��>��>��+��+��/��/��,��,��'��'��'��'��+��+��,��,��&��&��'��'��*��*��'��'��0��0��,��,��'��'��+��+��,��,����������?��?��D��D��/��/��.��.��'��'��+��+��0��0������(��(��,��,��0��0��-��-��/��/��.��.��3��3��/��/��2��2��)��)��3��3��,��,��-��-��(��(��-��-��.��.��*��*��,��,��E��E��)��)��.��.��-��-��)��)��-��-��,��,��F��F��-��-��.��.��(��(��-��-������6��6����������,��,��3��3��4��4��+��+��'��'������(��(��,��,��0��0��+��+��+��+��'��'��@��@������,��,��-��-��*��*��I��I��B��B��B��B��B��B��(��(��+��+��)��)rr)
r
�__id__�__version__�__date__�
__copyright__�__license__�gi�require_version�
gi.repositoryr�	ax_objectrrrrr�<module>rsL��*�������1�
���	�����7�E�"���N)�N)r

Zerion Mini Shell 1.0