Trait atk::prelude::RelationExt
source · [−]pub trait RelationExt: 'static {
fn add_target(&self, target: &impl IsA<Object>);
fn relation_type(&self) -> RelationType;
fn target(&self) -> Vec<Object>;
fn remove_target(&self, target: &impl IsA<Object>) -> 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(&self, target: &impl IsA<Object>)
fn add_target(&self, target: &impl IsA<Object>)
Adds the specified AtkObject to the target for the relation, if it is
not already present. See also AtkObjectExt::add_relationship()
.
target
an Object