rulerView$11 method

NSPoint rulerView$11(
  1. NSRulerView ruler, {
  2. required DartCGFloat pointForLocation,
})

rulerView:pointForLocation:

Implementation

NSPoint rulerView$11(
  NSRulerView ruler, {
  required DartCGFloat pointForLocation,
}) {
  objc.checkOsVersionInternal(
    'NSView.rulerView:pointForLocation:',
    iOS: (true, null),
    macOS: (false, (10, 7, 0)),
  );
  final _ptr = pkg_ffi.calloc<NSPoint>();
  objc.useMsgSendVariants
      ? _objc_msgSend_17l1gu5Stret(
          _ptr,
          this.ref.pointer,
          _sel_rulerView_pointForLocation_,
          ruler.ref.pointer,
          pointForLocation,
        )
      : _ptr.ref = _objc_msgSend_17l1gu5(
          this.ref.pointer,
          _sel_rulerView_pointForLocation_,
          ruler.ref.pointer,
          pointForLocation,
        );
  final _finalizable = _ptr.cast<ffi.Uint8>().asTypedList(
    ffi.sizeOf<NSPoint>(),
    finalizer: pkg_ffi.calloc.nativeFree,
  );
  return ffi.Struct.create<NSPoint>(_finalizable);
}