PanelWidgetClassSubclassExt

Trait PanelWidgetClassSubclassExt 

Source
pub unsafe trait PanelWidgetClassSubclassExt: ClassStruct {
    // Provided methods
    fn install_action_async<Fut, F>(
        &mut self,
        action_name: &str,
        parameter_type: Option<&str>,
        activate: F,
    )
       where F: Fn(<<Self as ClassStruct>::Type as ObjectSubclass>::Type, String, Option<Variant>) -> Fut + 'static + Clone,
             Fut: Future<Output = ()> { ... }
    fn install_action<F>(
        &mut self,
        action_name: &str,
        parameter_type: Option<&str>,
        activate: F,
    )
       where F: Fn(&<<Self as ClassStruct>::Type as ObjectSubclass>::Type, &str, Option<&Variant>) + 'static { ... }
    fn install_property_action(
        &mut self,
        action_name: &str,
        property_name: &str,
    ) { ... }
}

Provided Methods§

Source

fn install_action_async<Fut, F>( &mut self, action_name: &str, parameter_type: Option<&str>, activate: F, )
where F: Fn(<<Self as ClassStruct>::Type as ObjectSubclass>::Type, String, Option<Variant>) -> Fut + 'static + Clone, Fut: Future<Output = ()>,

Source

fn install_action<F>( &mut self, action_name: &str, parameter_type: Option<&str>, activate: F, )
where F: Fn(&<<Self as ClassStruct>::Type as ObjectSubclass>::Type, &str, Option<&Variant>) + 'static,

Source

fn install_property_action(&mut self, action_name: &str, property_name: &str)

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§