convertPointToBase method
convertPointToBase:
Implementation
NSPoint convertPointToBase(NSPoint point) {
objc.checkOsVersionInternal(
'NSView.convertPointToBase:',
iOS: (true, null),
macOS: (false, (10, 5, 0)),
);
final _ptr = pkg_ffi.calloc<NSPoint>();
objc.useMsgSendVariants
? _objc_msgSend_1w4qqqrStret(
_ptr,
this.ref.pointer,
_sel_convertPointToBase_,
point,
)
: _ptr.ref = _objc_msgSend_1w4qqqr(
this.ref.pointer,
_sel_convertPointToBase_,
point,
);
final _finalizable = _ptr.cast<ffi.Uint8>().asTypedList(
ffi.sizeOf<NSPoint>(),
finalizer: pkg_ffi.calloc.nativeFree,
);
return ffi.Struct.create<NSPoint>(_finalizable);
}