Event.getCenter

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

class Event
static
bool
getCenter
(,,
out double x
,
out double y
)

Parameters

event1 Event

first #GdkEvent

event2 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: %TRUE if the center could be calculated.

Meta