Function

Gdkevents_get_center

Declaration [src]

gboolean
gdk_events_get_center (
  GdkEvent* event1,
  GdkEvent* event2,
  gdouble* x,
  gdouble* y
)

Description [src]

If both events contain X/Y information, the center of both coordinates will be returned in x and y.

Available since:3.0

Parameters

event1 GdkEvent
 

First GdkEvent.

 The data is owned by the caller of the function.
event2 GdkEvent
 

Second GdkEvent.

 The data is owned by the caller of the function.
x gdouble*
 

Return location for the X coordinate of the center.

 The argument will be set by the function.
 The called function takes ownership of the data, and is responsible for freeing it.
y gdouble*
 

Return location for the Y coordinate of the center.

 The argument will be set by the function.
 The called function takes ownership of the data, and is responsible for freeing it.

Return value

Returns: gboolean
 

TRUE if the center could be calculated.