eventsGetCenter

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

bool
eventsGetCenter

Parameters

event1 gdk.event.Event

first #GdkEvent

event2 gdk.event.Event

second #GdkEvent

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.