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
Required methods
fn add_target<P: IsA<Object>>(&self, target: &P)
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 relation_type(&self) -> RelationType
fn relation_type(&self) -> RelationType
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