atk.Relation an object used to describe a relation between a object and one or more other objects. Synopsis atk.Relation gobject.GObject atk.Relation targets relationship get_relation_type get_target Functions atk.relation_type_register name atk.relation_type_get_name relationship atk.relation_type_for_name name Ancestry +-- gobject.GObject +-- atk.Relation atk.Relation Properties
"relation-type" Read-Write The type of the relation - one of the . Default value: atk.RELATION_NULL. "target" Read-Write An array of the targets for the relation. Default value: None.
atk.Relation Signal Prototypes gobject.GObject Signal Prototypes Description An atk.Relation describes a relation between an object and one or more other objects. The actual relations that an object has with other objects are defined as an atk.RelationSet, which contains a set of atk.Relation objects. Constructor atk.Relation atk.Relation targets relationship targets : a sequence of atk.Object objects relationship : one of the with which to create the new atk.Relation Returns : a new atk.Relation Create a new relation for the specified relationship type and the specified sequence of targets. Methods atk.Relation.get_relation_type get_relation_type Returns : the relation type - one of the . Gets the relationship type. atk.Relation.get_target get_target Returns : the target list of relation Gets the target list of atk.Object objects. Functions atk.relation_type_register atk.relation_type_register name name : a name string Returns : a new one of the that is associated with name Associate name with a new one of the . atk.relation_type_get_name atk.relation_type_get_name type type : one of the . Returns : the string associated with relationship. Gets the description string describing the relation type specified by type. atk.relation_type_for_name atk.relation_type_for_name name name : a string which is the (non-localized) name of an ATK relation type. Returns : the matching type of the corresponding to the specified name, or atk.RELATION_NULL if no matching relation type is found. Get the relation type corresponding to the specified name.