Struct conrod::event::Drag [] [src]

pub struct Drag {
    pub button: MouseButton,
    pub origin: Point,
    pub from: Point,
    pub to: Point,
    pub delta_xy: Point,
    pub total_delta_xy: Point,
    pub modifiers: ModifierKey,
}

Contains all the relevant information for a mouse drag.

Fields

Which mouse button was being held during the drag

The point from which the current series of drag events began.

This will be the position of the pointing device whenever the dragging press began.

The point from which this drag event began.

The point at which this drag event ended.

The magnitude of the vector between from and to.

The magnitude of the vector between origin and to.

Which modifier keys are being held during the mouse drag.

Methods

impl Drag
[src]

[src]

Returns a copy of the Drag relative to the given xy

Trait Implementations

impl Copy for Drag
[src]

impl Clone for Drag
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Drag
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for Drag
[src]

[src]

Formats the value using the given formatter.