Trait atk::prelude::RelationExt[][src]

pub trait RelationExt: 'static {
    fn add_target<P: IsA<Object>>(&self, target: &P);
fn relation_type(&self) -> RelationType;
fn target(&self) -> Vec<Object>;
fn remove_target<P: IsA<Object>>(&self, target: &P) -> bool;
fn set_relation_type(&self, relation_type: RelationType);
fn set_target(&self, target: Option<&ValueArray>);
fn connect_relation_type_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_target_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }
Expand description

Trait containing all Relation methods.

Implementors

Relation

Required methods

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

target

an Object

Gets the type of self

Returns

the type of self

Gets the target list of self

Returns

the target list of self

Remove the specified AtkObject from the target for the relation.

target

an Object

Returns

TRUE if the removal is successful.

Implementors