get_distance


Description:

[ 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.

Parameters:

event2

second `GdkEvent`

distance

return location for the distance

event1

first `GdkEvent`

Returns:

true if the distance could be calculated.




2022 vala-language.org