Atk.Socket¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
embedded_plug_id |
r |
||
parent |
r |
Class Details¶
- class Atk.Socket(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Container for
Atk.Plug
objects from other processesTogether with
Atk.Plug
,Atk.Socket
provides the ability to embed accessibles from one process into another in a fashion that is transparent to assistive technologies.Atk.Socket
works as the container ofAtk.Plug
, embedding it using the methodAtk.Socket.embed
(). Any accessible contained in theAtk.Plug
will appear to the assistive technologies as being inside the application that created theAtk.Socket
.The communication between a
Atk.Socket
and aAtk.Plug
is done by the IPC layer of the accessibility framework, normally implemented by the D-Bus based implementation of AT-SPI (at-spi2). If that is the case, at-spi-atk2 is the responsible to implement the abstract methodsAtk.Plug.get_id
() andAtk.Socket.embed
(), so an ATK implementor shouldn’t reimplement them. The process that contains theAtk.Plug
is responsible to send the ID returned by atk_plug_id() to the process that contains theAtk.Socket
, so it could call the methodAtk.Socket.embed
() in order to embed it.For the same reasons, an implementor doesn’t need to implement
Atk.Object.get_n_accessible_children
() andAtk.Object.ref_accessible_child
(). All the logic related to those functions will be implemented by the IPC layer.See [class`AtkPlug`]
- classmethod new()[source]¶
- Returns:
the newly created
Atk.Socket
instance- Return type:
Creates a new
Atk.Socket
.
- embed(plug_id)[source]¶
-
Embeds the children of an
Atk.Plug
as the children of theAtk.Socket
. The plug may be in the same process or in a different process.The class item used by this function should be filled in by the IPC layer (usually at-spi2-atk). The implementor of the
Atk.Socket
should call this function and pass the id for the plug as returned byAtk.Plug.get_id
(). It is the responsibility of the application to pass the plug id on to the process implementing theAtk.Socket
as needed.New in version 1.30.
- is_occupied()[source]¶
-
Determines whether or not the socket has an embedded plug.
New in version 1.30.
- do_embed(plug_id) virtual¶
-
Embeds the children of an
Atk.Plug
as the children of theAtk.Socket
. The plug may be in the same process or in a different process.The class item used by this function should be filled in by the IPC layer (usually at-spi2-atk). The implementor of the
Atk.Socket
should call this function and pass the id for the plug as returned byAtk.Plug.get_id
(). It is the responsibility of the application to pass the plug id on to the process implementing theAtk.Socket
as needed.New in version 1.30.