convertRectFromBase method
convertRectFromBase:
Implementation
NSRect convertRectFromBase(NSRect rect) {
objc.checkOsVersionInternal(
'NSView.convertRectFromBase:',
iOS: (true, null),
macOS: (false, (10, 5, 0)),
);
final _ptr = pkg_ffi.calloc<NSRect>();
objc.useMsgSendVariants
? _objc_msgSend_1gn1s3dStret(
_ptr,
this.ref.pointer,
_sel_convertRectFromBase_,
rect,
)
: _ptr.ref = _objc_msgSend_1gn1s3d(
this.ref.pointer,
_sel_convertRectFromBase_,
rect,
);
final _finalizable = _ptr.cast<ffi.Uint8>().asTypedList(
ffi.sizeOf<NSRect>(),
finalizer: pkg_ffi.calloc.nativeFree,
);
return ffi.Struct.create<NSRect>(_finalizable);
}