eventsGetDistance

Returns the distance between the event locations.

This assumes that both events have X/Y information. If not, this function returns false.

bool
eventsGetDistance

Parameters

event1 gdk.event.Event
event2 gdk.event.Event
distance double

return location for the distance

Return Value

Type: bool

true if the distance could be calculated.