locationForSubmenu method
locationForSubmenu:
Implementation
NSPoint locationForSubmenu(NSMenu submenu) {
objc.checkOsVersionInternal(
'NSMenu.locationForSubmenu:',
iOS: (true, null),
macOS: (false, (10, 0, 0)),
);
final _ptr = pkg_ffi.calloc<NSPoint>();
objc.useMsgSendVariants
? _objc_msgSend_1mpyy6yStret(
_ptr,
this.ref.pointer,
_sel_locationForSubmenu_,
submenu.ref.pointer,
)
: _ptr.ref = _objc_msgSend_1mpyy6y(
this.ref.pointer,
_sel_locationForSubmenu_,
submenu.ref.pointer,
);
final _finalizable = _ptr.cast<ffi.Uint8>().asTypedList(
ffi.sizeOf<NSPoint>(),
finalizer: pkg_ffi.calloc.nativeFree,
);
return ffi.Struct.create<NSPoint>(_finalizable);
}