pub trait StatefulInteractiveElement: InteractiveElement {
// Provided methods
fn focusable(self) -> Focusable<Self> { ... }
fn overflow_scroll(self) -> Self { ... }
fn overflow_x_scroll(self) -> Self { ... }
fn overflow_y_scroll(self) -> Self { ... }
fn active(self, f: impl FnOnce(StyleRefinement) -> StyleRefinement) -> Self
where Self: Sized { ... }
fn group_active(
self,
group_name: impl Into<SharedString>,
f: impl FnOnce(StyleRefinement) -> StyleRefinement
) -> Self
where Self: Sized { ... }
fn on_click(
self,
listener: impl Fn(&ClickEvent, &mut WindowContext<'_>) + 'static
) -> Self
where Self: Sized { ... }
fn on_drag<W>(
self,
listener: impl Fn(&mut WindowContext<'_>) -> View<W> + 'static
) -> Self
where Self: Sized,
W: 'static + Render { ... }
fn on_hover(
self,
listener: impl Fn(&bool, &mut WindowContext<'_>) + 'static
) -> Self
where Self: Sized { ... }
fn tooltip(
self,
build_tooltip: impl Fn(&mut WindowContext<'_>) -> AnyView + 'static
) -> Self
where Self: Sized { ... }
}