[ CCode ( cname = "gdk_events_get_distance" ) ]
public bool get_distance (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.
event2 |
second `GdkEvent` |
distance |
return location for the distance |
event1 |
first `GdkEvent` |
true if the distance could be calculated. |