[][src]Trait atk::RelationExt

pub trait RelationExt: 'static {
    fn add_target<P: IsA<Object>>(&self, target: &P);
fn get_relation_type(&self) -> RelationType;
fn get_target(&self) -> Vec<Object>;
fn remove_target<P: IsA<Object>>(&self, target: &P) -> bool;
fn set_property_relation_type(&self, relation_type: RelationType);
fn set_property_target(&self, target: Option<&ValueArray>);
fn connect_property_relation_type_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId;
fn connect_property_target_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F
    ) -> SignalHandlerId; }

Trait containing all Relation methods.

Implementors

Relation

Required methods

fn add_target<P: IsA<Object>>(&self, target: &P)

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

target

an Object

fn get_relation_type(&self) -> RelationType

Gets the type of self

Returns

the type of self

fn get_target(&self) -> Vec<Object>

Gets the target list of self

Returns

the target list of self

fn remove_target<P: IsA<Object>>(&self, target: &P) -> bool

Remove the specified AtkObject from the target for the relation.

target

an Object

Returns

TRUE if the removal is successful.

fn set_property_relation_type(&self, relation_type: RelationType)

fn set_property_target(&self, target: Option<&ValueArray>)

fn connect_property_relation_type_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

fn connect_property_target_notify<F: Fn(&Self) + 'static>(
    &self,
    f: F
) -> SignalHandlerId

Loading content...

Implementors

impl<O: IsA<Relation>> RelationExt for O[src]

Loading content...