
    1f                         d dl mZ d dl d dl g dZ G d de      Z G d de      Z G d d	e      Z G d
 d      Z	y)    )Atspi)*)
Collection	SortOrder	MatchTypeTreeTraversalTypec                       e Zd ZdddddddZy)	r   MATCH_INVALID	MATCH_ALL	MATCH_ANY
MATCH_NONEMATCH_EMPTYMATCH_LAST_DEFINED)r                  N__name__
__module____qualname___enum_lookup     4/usr/lib/python3/dist-packages/pyatspi/collection.pyr   r      s    !&
r   r   c            	       "    e Zd Zddddddddd	Zy
)r   SORT_ORDER_INVALIDSORT_ORDER_CANONICALSORT_ORDER_FLOWSORT_ORDER_TABSORT_ORDER_REVERSE_CANONICALSORT_ORDER_REVERSE_FLOWSORT_ORDER_REVERSE_TABSORT_ORDER_LAST_DEFINED)r   r   r   r   r   r         Nr   r   r   r   r   r   '   s!    &(#"0+*+	
r   r   c                       e Zd ZdddddZy)r   TREE_RESTRICT_CHILDRENTREE_RESTRICT_SIBLINGTREE_INORDERTREE_LAST_DEFINED)r   r   r   r   Nr   r   r   r   r   r   3   s    *) %	
r   r   c                   \   e Zd Z ed      Z ed      Z ed      Z ed      Z ed      Z ed      Z	 e
d      Z e
d      Z e
d      Z e
d      Z e
d      Z e
d      Z e
d      Z e
d      Z ed      Z ed      Z ed      Z ed      Zd	 Zd
 Zd Zd Zd Zd Zd Zd Zy)r   r   r   r   r   r   r   r'   r&   c                     || _         y N)obj)selfr0   s     r   __init__zCollection.__init__R   s	    r   c                 T    t         j                  j                  | j                        S r/   )r   r   is_ancestor_ofr0   )r1   objects     r   isAncestorOfzCollection.isAncestorOfU   s    ''66txx@@r   c
                 f    t        |      }
t        j                  j                  |||
||||||		      S r/   )attributeListToHashr   	MatchRulenew)r1   statesstateMatchType
attributesattributeMatchTyperolesroleMatchType
interfacesinterfaceMatchTypeinvertattributes_hashs              r   createMatchRulezCollection.createMatchRuleX   sI    "5j"A**6>?Tfhmo|  I  K]  _e  f  fr   c                      y r/   r   )r1   rules     r   freeMatchRulezCollection.freeMatchRule\   s    r   c                 \    t         j                  j                  | j                  ||||      S r/   )r   r   get_matchesr0   )r1   rG   sortbycounttraverses        r   
getMatcheszCollection.getMatches_   s&    ''33DHHdFES[\\r   c           
      b    t         j                  j                  | j                  |||||||      S r/   )r   r   get_matches_tor0   )r1   current_objectrG   rK   treerecurserL   rM   s           r   getMatchesTozCollection.getMatchesTob   s1    ''66txxQUW]_celnsu}~~r   c           	      `    t         j                  j                  | j                  ||||||      S r/   )r   r   get_matches_fromr0   )r1   rQ   rG   rK   rR   rL   rM   s          r   getMatchesFromzCollection.getMatchesFrome   s.    ''88>SWY_aeglnvwwr   c                 T    t         j                  j                  | j                        S r/   )r   r   get_active_descendantr0   )r1   s    r   getActiveDescendantzCollection.getActiveDescendanth   s    ''==dhhGGr   N) r   r   r   r   r   r   r   r
   r   r   r   r   r    r   r%   r"   r#   r$   r!   r   r+   r,   r)   r*   r2   r6   rE   rH   rN   rT   rW   rZ   r   r   r   r   r   ;   s    aL	aL	l!!&q\q\
(|#A,&q\"+A,'0|$"+A,!*1"1(+-a0!21!5 1! 4		A	f		]		x	Hr   r   N)
gi.repositoryr   pyatspi.atspienumpyatspi.utils__all__	AtspiEnumr   r   r   r   r   r   r   <module>r`      sG        
	 


	 


	 
.H .Hr   