Event.getDistance

If both events have X/Y information, the distance between both coordinates (as in a straight line going from @event1 to @event2) will be returned.

class Event
static
bool
getDistance

Parameters

event1 Event

first #GdkEvent

event2 Event

second #GdkEvent

distance double

return location for the distance

Return Value

Type: bool

%TRUE if the distance could be calculated.

Meta