Atspi.Relation¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
||
relation_type |
r |
||
targets |
[ |
r |
Class Details¶
- class Atspi.Relation(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An interface via which non-hierarchical relationships are indicated.
An interface via which non-hierarchical relationships are indicated. An instance of this interface represents a “one-to-many” correspondence.
- get_n_targets()¶
- Returns:
a
int
indicating how many target objects which the originatingAtspi.Accessible
object has theAtspi.Relation
relationship with.- Return type:
Gets the number of objects which this relationship has as its target objects (the subject is the
Atspi.Accessible
from which thisAtspi.Relation
originated).
- get_relation_type()¶
- Returns:
an
Atspi.RelationType
indicating the type of relation encapsulated in thisAtspi.Relation
object.- Return type:
Gets the type of relationship represented by an
Atspi.Relation
.
- get_target(i)¶
- Parameters:
i (
int
) – a (zero-index)int
indicating which (of possibly several) target is requested.- Returns:
an
Atspi.Accessible
which is the i-th object with which the originatingAtspi.Accessible
has relationship specified in theAtspi.Relation
object.- Return type:
Gets the i-th target of a specified
Atspi.Relation
relationship.