Class: Atk::Relation

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#add_target(target) ⇒ nil

Adds the specified AtkObject to the target for the relation, if it is not already present. See also atk_object_add_relationship().

Parameters:

Returns:

  • (nil)

#new(targets, n_targets, relationship) ⇒ Atk::Relation

Create a new relation for the specified key and the specified list of targets. See also atk_object_add_relationship().

Parameters:

  • targets (Array<Atk::Object>)

    an array of pointers to Atk::Objects

  • n_targets (Integer)

    number of Atk::Objects pointed to by targets

  • relationship (Atk::RelationType)

    an Atk::RelationType with which to create the new Atk::Relation

Returns:

#relation_typeAtk::RelationType

Returns relation-type.

Returns:

#relation_type=(relation_type) ⇒ Atk::RelationType

Parameters:

Returns:

#remove_target(target) ⇒ TrueClass

Remove the specified AtkObject from the target for the relation.

Parameters:

Returns:

  • (TrueClass)

    TRUE if the removal is successful.

#targetGObject::ValueArray

Returns target.

Returns:

  • (GObject::ValueArray)

    target

#target=(target) ⇒ GObject::ValueArray

Parameters:

  • target (GObject::ValueArray)

Returns:

  • (GObject::ValueArray)

    target

  • (GObject::ValueArray)

    target