
    g
f1                     f    d Z dZdZdZdZddlmZ ddlmZ ddl	m
Z
  G d	 d
e
j                        Zy)z$Id$z
$Revision$z$Date$zCopyright (c) 2019 Igalia, S.L.LGPL    )AXObject)AXUtilities)switcherc                   0     e Zd Z fdZd Zd Zd Z xZS )	Utilitiesc                 $    t         |   |       y )N)super__init__)selfscript	__class__s     I/usr/lib/python3/dist-packages/orca/scripts/apps/kwin/script_utilities.pyr   zUtilities.__init__"   s         c                 Z    t        j                  |      xr t        j                  |      S )z.Returns True if obj is the switcher container.)r   	is_filler
is_focused)r   objs     r   isSwitcherContainerzUtilities.isSwitcherContainer%   s%     $$S)Ik.D.DS.IIr   c                 R    |j                   j                  d      r|j                  S y)z@Returns True if this event is the one we use to present changes.zobject:state-changed:focusedF)type
startswithdetail1)r   events     r   "isSwitcherSelectionChangeEventTypez,Utilities.isSwitcherSelectionChangeEventType*   s$     ::  !?@== r   c                 P    | j                  |      rt        j                  |      S y)z0Returns the name of the currently-selected item. )r   r   get_name)r   	containers     r   getSelectionNamezUtilities.getSelectionName2   s&     ##I.$$Y//r   )__name__
__module____qualname__r   r   r   r    __classcell__)r   s   @r   r   r       s    !J
r   r   N)__id____version____date____copyright____license__orca.ax_objectr   orca.ax_utilitiesr   orca.scriptsr   r    r   r   <module>r.      s;   * 1 # ) !"" r   