Function

Gdk.events_get_distance

Declaration [src]

gboolean
gdk_events_get_distance (
  GdkEvent* event1,
  GdkEvent* event2,
  double* distance
)

Description [src]

Returns the distance between the event locations.

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

Parameters

event1 GdkEvent
 

first GdkEvent

 Ownership is not transferred to the callee
event2 GdkEvent
 

second GdkEvent

 Ownership is not transferred to the callee
distance double*
 

return location for the distance

 Direction: out
 Ownership of the data is transferred to the callee

Return value

Returns: gboolean

TRUE if the distance could be calculated.