pub fn events_get_distance(
    event1: &mut Event,
    event2: &mut Event
) -> Option<f64>
Expand description

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

first GdkEvent

event2

second GdkEvent

Returns

true if the distance could be calculated.

distance

return location for the distance