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
intindicating how many target objects which the originatingAtspi.Accessibleobject has theAtspi.Relationrelationship with.- Return type:
Gets the number of objects which this relationship has as its target objects (the subject is the
Atspi.Accessiblefrom which thisAtspi.Relationoriginated).
- get_relation_type()¶
- Returns:
an
Atspi.RelationTypeindicating the type of relation encapsulated in thisAtspi.Relationobject.- Return type:
Gets the type of relationship represented by an
Atspi.Relation.
- get_target(i)¶
- Parameters:
i (
int) – a (zero-index)intindicating which (of possibly several) target is requested.- Returns:
an
Atspi.Accessiblewhich is the i-th object with which the originatingAtspi.Accessiblehas relationship specified in theAtspi.Relationobject.- Return type:
Gets the i-th target of a specified
Atspi.Relationrelationship.