Skip to main content

pressable

Function pressable 

Source
pub fn pressable(
    theme: &Theme,
    handle: &FocusHandle,
    el: Stateful<Div>,
    enabled: bool,
    activate: impl Fn(&(), &mut Window, &mut App) + 'static,
) -> Stateful<Div>
Expand description

One activation path for pointer and keyboard, with a shared enabled gate. The caller still owns the value changed by the callback.