get_distance


Description:

[ CCode ( cname = "gdk_events_get_distance" ) ]
public static bool 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.