locationInView method
locationInView:
Implementation
NSPoint locationInView(NSView? view) {
objc.checkOsVersionInternal(
'NSTouch.locationInView:',
iOS: (true, null),
macOS: (false, (10, 12, 2)),
);
final _ptr = pkg_ffi.calloc<NSPoint>();
objc.useMsgSendVariants
? _objc_msgSend_1mpyy6yStret(
_ptr,
this.ref.pointer,
_sel_locationInView_,
view?.ref.pointer ?? ffi.nullptr,
)
: _ptr.ref = _objc_msgSend_1mpyy6y(
this.ref.pointer,
_sel_locationInView_,
view?.ref.pointer ?? ffi.nullptr,
);
final _finalizable = _ptr.cast<ffi.Uint8>().asTypedList(
ffi.sizeOf<NSPoint>(),
finalizer: pkg_ffi.calloc.nativeFree,
);
return ffi.Struct.create<NSPoint>(_finalizable);
}