locationOfPrintRect method
locationOfPrintRect:
Implementation
NSPoint locationOfPrintRect(NSRect rect) {
objc.checkOsVersionInternal(
'NSView.locationOfPrintRect:',
iOS: (true, null),
);
final _ptr = pkg_ffi.calloc<NSPoint>();
objc.useMsgSendVariants
? _objc_msgSend_txl7s5Stret(
_ptr,
this.ref.pointer,
_sel_locationOfPrintRect_,
rect,
)
: _ptr.ref = _objc_msgSend_txl7s5(
this.ref.pointer,
_sel_locationOfPrintRect_,
rect,
);
final _finalizable = _ptr.cast<ffi.Uint8>().asTypedList(
ffi.sizeOf<NSPoint>(),
finalizer: pkg_ffi.calloc.nativeFree,
);
return ffi.Struct.create<NSPoint>(_finalizable);
}