Skip to main content

InteractiveExt

Trait InteractiveExt 

Source
pub trait InteractiveExt: Sized {
    // Required method
    fn get_effect(&mut self) -> &mut EffectData;

    // Provided method
    fn interactive(self, interactive: impl Into<Interactive>) -> Self { ... }
}
Expand description

Method for controlling whether an element responds to pointer events.

Required Methods§

Source

fn get_effect(&mut self) -> &mut EffectData

Returns a mutable reference to the element’s effect data.

Provided Methods§

Source

fn interactive(self, interactive: impl Into<Interactive>) -> Self

Set whether the element receives pointer events. See Interactive.

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§