setCursorPosition method

void setCursorPosition(
  1. RendererHandle renderer,
  2. int x,
  3. int y,
  4. bool visible,
)

Sets cursor position and visibility.

Implementation

void setCursorPosition(RendererHandle renderer, int x, int y, bool visible) {
  _checkSigned32Abi(x, 'x');
  _checkSigned32Abi(y, 'y');
  _guard('Failed to set cursor position', () {
    _native.setCursorPosition(renderer.value, x, y, visible);
  });
}