eventsGetCenter

Returns the point halfway between the events' positions.

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

bool
eventsGetCenter

Parameters

event1 gdk.event.Event
event2 gdk.event.Event
x double

return location for the X coordinate of the center

y double

return location for the Y coordinate of the center

Return Value

Type: bool

true if the center could be calculated.