Skip to main content

TextEventSurface

Trait TextEventSurface 

Source
pub trait TextEventSurface: HasTextNode {
    // Provided methods
    fn on_text_changed(
        &self,
        handler: impl Fn(TextChangedEventArgs) + 'static,
    ) -> &Self { ... }
    fn on_selection_changed(
        &self,
        handler: impl Fn(SelectionChangedEventArgs) + 'static,
    ) -> &Self { ... }
}

Provided Methods§

Source

fn on_text_changed( &self, handler: impl Fn(TextChangedEventArgs) + 'static, ) -> &Self

Source

fn on_selection_changed( &self, handler: impl Fn(SelectionChangedEventArgs) + 'static, ) -> &Self

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§