eventsGetCenter

fnbool eventsGetCenter(gdk.event.Event event1, gdk.event.Event event2, out double x, out double y)

Returns the point halfway between the events' positions.

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

Parameters

event1first [gdk.event.Event]
event2second [gdk.event.Event]
xreturn location for the X coordinate of the center
yreturn location for the Y coordinate of the center

Returns

true if the center could be calculated.