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
origin: Point
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.
from: Point
The point from which this drag event began.
to: Point
The point at which this drag event ended.
delta_xy: Point
The magnitude of the vector between from
and to
.
total_delta_xy: Point
The magnitude of the vector between origin
and to
.
modifiers: ModifierKey
Which modifier keys are being held during the mouse drag.
Methods
impl Drag
[src]
fn relative_to(&self, xy: Point) -> Drag
[src]
Returns a copy of the Drag relative to the given xy
Trait Implementations
impl Copy for Drag
[src]
impl Clone for Drag
[src]
fn clone(&self) -> Drag
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq for Drag
[src]
fn eq(&self, __arg_0: &Drag) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Drag) -> bool
[src]
This method tests for !=
.