Trait RelationExt

Source
pub trait RelationExt: 'static {
    // Required methods
    fn add_target<P: IsA<Object>>(&self, target: &P);
    fn get_relation_type(&self) -> RelationType;
    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;
}

Required Methods§

Source

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

Source

fn get_relation_type(&self) -> RelationType

Source

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

Source

fn set_property_relation_type(&self, relation_type: RelationType)

Source

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

Source

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

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§