getCursorPosition method
Get the current cursor position in screen coordinates.
Used for .nearCursor() positioning to get exact position
at the moment of showing a palette.
Implementation
Point getCursorPosition() {
final x = calloc<Double>();
final y = calloc<Double>();
try {
_bindings.GetCursorPosition(x, y);
return Point(x.value, y.value);
} finally {
calloc.free(x);
calloc.free(y);
}
}