backingAlignedRect method
backingAlignedRect:options:
Implementation
NSRect backingAlignedRect(
NSRect rect, {
required NSAlignmentOptions options,
}) {
objc.checkOsVersionInternal(
'NSWindow.backingAlignedRect:options:',
iOS: (true, null),
macOS: (false, (10, 7, 0)),
);
final _ptr = pkg_ffi.calloc<NSRect>();
objc.useMsgSendVariants
? _objc_msgSend_qmdcb3Stret(
_ptr,
this.ref.pointer,
_sel_backingAlignedRect_options_,
rect,
options.value,
)
: _ptr.ref = _objc_msgSend_qmdcb3(
this.ref.pointer,
_sel_backingAlignedRect_options_,
rect,
options.value,
);
final _finalizable = _ptr.cast<ffi.Uint8>().asTypedList(
ffi.sizeOf<NSRect>(),
finalizer: pkg_ffi.calloc.nativeFree,
);
return ffi.Struct.create<NSRect>(_finalizable);
}