Other items ingdk
pub fn events_get_distance( event1: &mut Event, event2: &mut Event) -> Option<f64>
If both events have X/Y information, the distance between both coordinates (as in a straight line going from event1 to event2) will be returned.
event1
event2
first GdkEvent
GdkEvent
second GdkEvent
true if the distance could be calculated.
true
distance
return location for the distance