Skip to main content

InteractiveElementExt

Trait InteractiveElementExt 

Source
pub trait InteractiveElementExt: InteractiveElement {
    // Provided method
    fn on_double_click(
        self,
        listener: impl Fn(&ClickEvent, &mut Window, &mut App) + 'static,
    ) -> Self
       where Self: Sized { ... }
}

Provided Methods§

Source

fn on_double_click( self, listener: impl Fn(&ClickEvent, &mut Window, &mut App) + 'static, ) -> Self
where Self: Sized,

Set the listener for a double click event.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<E: InteractiveElement> InteractiveElementExt for Stateful<E>

Implementors§