Atspi.Relation

g Atspi.Relation Atspi.Relation GObject.Object GObject.Object GObject.Object->Atspi.Relation

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

get_n_targets ()

get_relation_type ()

get_target (i)

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent

GObject.Object

r

relation_type

Atspi.RelationType

r

targets

[object]

r

Class Details

class Atspi.Relation(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

Atspi.RelationClass

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 originating Atspi.Accessible object has the Atspi.Relation relationship with.

Return type:

int

Gets the number of objects which this relationship has as its target objects (the subject is the Atspi.Accessible from which this Atspi.Relation originated).

get_relation_type()
Returns:

an Atspi.RelationType indicating the type of relation encapsulated in this Atspi.Relation object.

Return type:

Atspi.RelationType

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 originating Atspi.Accessible has relationship specified in the Atspi.Relation object.

Return type:

Atspi.Accessible

Gets the i-th target of a specified Atspi.Relation relationship.