Event.GetCenter

Returns the point halfway between the events' positions.

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

class Event
bool
GetCenter
(,
out double x
,
out double y
)

Parameters

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 Value

Type: bool

%TRUE if the center could be calculated.

Meta