Enum drag_controller::Drag [] [src]

pub enum Drag {
    Interrupt,
    Start(f64f64),
    Move(f64f64),
    End(f64f64),
}

Describes a drag

Variants

Interrupt

When the drag is interrupted by something, for example when the window is defocused. By returning true, the drag will continue when the window retrieves focus.

Start(f64f64)

Starts the drag.

Move(f64f64)

Moves the drag.

End(f64f64)

Ends the drag.

Trait Implementations

impl Clone for Drag
[src]

fn clone(&self) -> Drag

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for Drag
[src]