Trait MapExt

Source
pub trait MapExt: 'static {
    // Required methods
    fn get_view(&self) -> Option<View>;
    fn set_view<P: IsA<View>>(&self, view: &P);
    fn get_property_view(&self) -> Option<View>;
    fn set_property_view<P: IsA<View> + SetValueOptional>(
        &self,
        view: Option<&P>,
    );
    fn connect_property_view_notify<F: Fn(&Self) + 'static>(
        &self,
        f: F,
    ) -> SignalHandlerId;
}

Required Methods§

Source

fn get_view(&self) -> Option<View>

Source

fn set_view<P: IsA<View>>(&self, view: &P)

Source

fn get_property_view(&self) -> Option<View>

Source

fn set_property_view<P: IsA<View> + SetValueOptional>(&self, view: Option<&P>)

Source

fn connect_property_view_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§

Source§

impl<O: IsA<Map>> MapExt for O