mouseLocationOutsideOfEventStream property

CGPoint get mouseLocationOutsideOfEventStream

mouseLocationOutsideOfEventStream

Implementation

NSPoint get mouseLocationOutsideOfEventStream {
  objc.checkOsVersionInternal(
    'NSWindow.mouseLocationOutsideOfEventStream',
    iOS: (true, null),
  );
  final _ptr = pkg_ffi.calloc<NSPoint>();
  objc.useMsgSendVariants
      ? _objc_msgSend_1uwdhlkStret(
          _ptr,
          this.ref.pointer,
          _sel_mouseLocationOutsideOfEventStream,
        )
      : _ptr.ref = _objc_msgSend_1uwdhlk(
          this.ref.pointer,
          _sel_mouseLocationOutsideOfEventStream,
        );
  final _finalizable = _ptr.cast<ffi.Uint8>().asTypedList(
    ffi.sizeOf<NSPoint>(),
    finalizer: pkg_ffi.calloc.nativeFree,
  );
  return ffi.Struct.create<NSPoint>(_finalizable);
}