get_center
Description:
[ CCode ( cname = "gdk_events_get_center" ) ]
public bool get_center (Event event2, out double x, out double y)
public bool get_center (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:
event2 |
second `GdkEvent` |
x |
return location for the X coordinate of the center |
y |
return location for the Y coordinate of the center |
event1 |
first `GdkEvent` |
Returns:
true if the center could be calculated. |