Trait Gesture

Source
pub trait Gesture: Bind {
    type Body: Gesture = NeverGesture;

    // Provided methods
    fn body(&self) -> Self::Body { ... }
    fn fire(&self, event: &GestureEvent, event_path: &IdPath, context: &Context) { ... }
    fn render(&self, context: &Context) -> GestureNode { ... }
}
Expand description

A composable gesture.

Provided Associated Types§

Provided Methods§

Source

fn body(&self) -> Self::Body

Source

fn fire(&self, event: &GestureEvent, event_path: &IdPath, context: &Context)

Source

fn render(&self, context: &Context) -> GestureNode

Implementors§

Source§

impl Gesture for NeverGesture

Source§

impl<F> Gesture for DragGesture<F>
where F: Fn(&DragEvent),

Source§

impl<F> Gesture for TapGesture<F>
where F: Fn(),