ori::core::views

Function on_release

Source
pub fn on_release<T, V, F>(content: V, on_release: F) -> Clickable<T, V, F>
where V: View<T>, F: FnMut(&mut EventCx<'_, '_>, &mut T) + 'static,
Expand description

Create a new Clickable, that calls on_release when released.