expansionFrameWithFrame method
expansionFrameWithFrame:inView:
Implementation
NSRect expansionFrameWithFrame(NSRect cellFrame, {required NSView inView}) {
objc.checkOsVersionInternal(
'NSCell.expansionFrameWithFrame:inView:',
iOS: (true, null),
macOS: (false, (10, 5, 0)),
);
final _ptr = pkg_ffi.calloc<NSRect>();
objc.useMsgSendVariants
? _objc_msgSend_2olghrStret(
_ptr,
this.ref.pointer,
_sel_expansionFrameWithFrame_inView_,
cellFrame,
inView.ref.pointer,
)
: _ptr.ref = _objc_msgSend_2olghr(
this.ref.pointer,
_sel_expansionFrameWithFrame_inView_,
cellFrame,
inView.ref.pointer,
);
final _finalizable = _ptr.cast<ffi.Uint8>().asTypedList(
ffi.sizeOf<NSRect>(),
finalizer: pkg_ffi.calloc.nativeFree,
);
return ffi.Struct.create<NSRect>(_finalizable);
}