events_get_distance


Description:


[ Version ( since = "3.0" ) ]
public bool events_get_distance (Event event1, Event event2, out double distance)

Returns the distance between the event locations.

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

Parameters:

event1

first `GdkEvent`

event2

second `GdkEvent`

distance

return location for the distance

Returns:

true if the distance could be calculated.


Namespace: Gdk
Package: gdk-3.0