Mini Shell

Direktori : /usr/lib/python3.6/site-packages/pyatspi/__pycache__/
Upload File :
Current File : //usr/lib/python3.6/site-packages/pyatspi/__pycache__/component.cpython-36.opt-1.pyc

3

���X��@s�ddlmZddlTddlTddlTddddddd	d
ddd
dddgZGdd�de�Zed�Zed�Z	Gdd�de�Z
e
d�Ze
d�Ze
d�Z
e
d�Ze
d�Ze
d�Ze
d�Ze
d�Ze
d�ZGdd�de�ZdS)�)�Atspi)�*�	CoordType�	XY_SCREEN�	XY_WINDOW�ComponentLayer�	Component�LAYER_BACKGROUND�LAYER_CANVAS�
LAYER_INVALID�LAYER_LAST_DEFINED�	LAYER_MDI�
LAYER_OVERLAY�LAYER_POPUP�LAYER_WIDGET�LAYER_WINDOWc@seZdZddd�ZdS)rrr)r�N)�__name__�
__module__�__qualname__�_enum_lookup�rr�/usr/lib/python3.6/component.pyr(src
@s$eZdZddddddddd	d
�	ZdS)rrr	r
rr
rrrr)	rr�������N)rrrrrrrrr3srrrrrrrc@sXeZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�ZdS)ras
        The Component interface is implemented by objects which occupy
        on-screen space, e.g. objects which have onscreen visual representations.
        The methods in Component allow clients to identify where the
        objects lie in the onscreen coordinate system, their relative
        size, stacking order, and position. It also provides a mechanism
        whereby keyboard focus may be transferred to specific user interface
        elements programmatically. This is a 2D API, coordinates of 3D
        objects are projected into the 2-dimensional screen view for
        purposes of this interface.
        cCstjj|j|||�S)z�
                @return True if the specified point lies within the Component's
                bounding box, False otherwise.
                )rr�contains�obj)�self�x�y�
coord_typerrrr YszComponent.containscCstjj|j|||�S)z
                @return the Accessible child whose bounding box contains the
                specified point.
                )rrZget_accessible_at_pointr!)r"r#r$r%rrr�getAccessibleAtPoint`szComponent.getAccessibleAtPointcCstjj|j�S)aL
                Obtain the alpha value of the component. An alpha value of 1.0
                or greater indicates that the object is fully opaque, and an
                alpha value of 0.0 indicates that the object is fully transparent.
                Negative alpha values have no defined meaning at this time.
                )rrZ	get_alphar!)r"rrr�getAlphagszComponent.getAlphacCsttjj|j|��S)a,
                Obtain the Component's bounding box, in pixels, relative to the
                specified coordinate system. 
                @param coord_type
                @return a BoundingBox which entirely contains the object's onscreen
                visual representation.
                )ZgetBoundingBoxrrZget_extentsr!)r"r%rrr�
getExtentspszComponent.getExtentscCstjj|j�S)zZ
                @return the ComponentLayer in which this object resides.
                )rrZ	get_layerr!)r"rrr�getLayerzszComponent.getLayercCstjj|j�S)a�
                Obtain the relative stacking order (i.e. 'Z' order) of an object.
                Larger values indicate that an object is on "top" of the stack,
                therefore objects with smaller MDIZOrder may be obscured by objects
                with a larger MDIZOrder, but not vice-versa. 
                @return an integer indicating the object's place in the stacking
                order.
                )rrZget_mdi_z_orderr!)r"rrr�getMDIZOrder�s	zComponent.getMDIZOrdercCsttjj|j|��S)a�
                Obtain the position of the current component in the coordinate
                system specified by coord_type. 
                @param : coord_type
                @param : x
                an out parameter which will be back-filled with the returned
                x coordinate. 
                @param : y
                an out parameter which will be back-filled with the returned
                y coordinate.
                )�pointToListrrZget_positionr!)r"r%rrr�getPosition�szComponent.getPositioncCsttjj|j��S)a�
                Obtain the size, in the coordinate system specified by coord_type,
                of the rectangular area which fully contains the object's visual
                representation, without accounting for viewport clipping. 
                @param : width
                the object's horizontal extents in the specified coordinate system.
                @param : height
                the object's vertical extents in the specified coordinate system.
                )r+rrZget_sizer!)r"rrr�getSize�s
zComponent.getSizecCstjj|j�S)z�
                Request that the object obtain keyboard focus.
                @return True if keyboard focus was successfully transferred to
                the Component.
                )rrZ
grab_focusr!)r"rrr�	grabFocus�szComponent.grabFocusN)
rrr�__doc__r r&r'r(r)r*r,r-r.rrrrrLs	
N)Z
gi.repositoryrZpyatspi.atspienumZ
pyatspi.utilsZpyatspi.interface�__all__Z	AtspiEnumrrrrr	r
rrr
rrrrZ	interfacerrrrr�<module>s>