eventsGetDistance

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.

bool
eventsGetDistance

Parameters

event1 gdk.event.Event

first #GdkEvent

event2 gdk.event.Event

second #GdkEvent

distance double

return location for the distance

Return Value

Type: bool

true if the distance could be calculated.