fn on_click(
        self,
        f: impl Fn(&mut EventCtx, &mut T, &Env) + 'static,
    ) -> ControllerHost<Self, Click<T>> {
        ControllerHost::new(self, Click::new(f))
    }
/// Control the events of this widget with a [`Click`] widget. The closure
/// provided will be called when the widget is clicked with the left mouse
/// button.
///
/// The child widget will also be updated on [`LifeCycle::HotChanged`] and
/// mouse down, which can be useful for painting based on `ctx.is_active()`
/// and `ctx.is_hot()`.
///
/// [`Click`]: widget/struct.Click.html
/// [`LifeCycle::HotChanged`]: enum.LifeCycle.html#variant.HotChanged
Control the events of this widget with a [`Click`] widget. The closure
provided will be called when the widget is clicked with the left mouse
button.




Control the events of this widget with a [ ` Click ` ] widget . The closure provided will be called when the widget is clicked with the left mouse button .
fn on_click(
        self,
        f: impl Fn(&mut EventCtx, &mut T, &Env) + 'static,
    ) -> ControllerHost<Self, Click<T>> {
        ControllerHost::new(self, Click::new(f))
    }
fn on_click ( self , f : impl Fn ( & mut EventCtx , & mut T , & Env ) + ' static , ) -> ControllerHost < Self , Click < T > > { ControllerHost :: new ( self , Click :: new ( f ) ) }
Control the events of this widget with a [`Click`] widget.
Control the events of this widget with a [ ` Click ` ] widget .
self
f
impl Fn(&mut EventCtx, &mut T, &Env) + 'static
self
f
impl Fn(&mut EventCtx, &mut T, &Env) + 'static