GestureSwipeUpdateEvent

Trait GestureSwipeUpdateEvent 

Source
pub trait GestureSwipeUpdateEvent<B: InputBackend>: Event<B> {
    // Required methods
    fn delta_x(&self) -> f64;
    fn delta_y(&self) -> f64;

    // Provided method
    fn delta(&self) -> Point<f64, Logical> { ... }
}
Expand description

Trait for gesture swipe update event.

Required Methods§

Source

fn delta_x(&self) -> f64

Delta of center on the x axis from last begin/update.

Source

fn delta_y(&self) -> f64

Delta of center on the y axis from last begin/update.

Provided Methods§

Source

fn delta(&self) -> Point<f64, Logical>

Delta between the last and new gesture center.

Implementations on Foreign Types§

Source§

impl GestureSwipeUpdateEvent<LibinputInputBackend> for GestureSwipeUpdateEvent

Available on crate feature backend_libinput only.
Source§

fn delta_x(&self) -> f64

Source§

fn delta_y(&self) -> f64

Implementors§