leftViewRectForBounds method

CGRect leftViewRectForBounds(
  1. CGRect bounds
)

leftViewRectForBounds:

Implementation

objc.CGRect leftViewRectForBounds(objc.CGRect bounds) {
  final _$$ref = object$.ref;
  objc.checkOsVersionInternal('UITextField.leftViewRectForBounds:', iOS: (false, (2, 0, 0)));
  final $ptr = pkg_ffi.calloc<objc.CGRect>();
  objc.useMsgSendVariants
      ? _objc_msgSend_1gn1s3dStret($ptr, _$$ref.pointer, _sel_leftViewRectForBounds_, bounds)
      : $ptr.ref = _objc_msgSend_1gn1s3d(_$$ref.pointer, _sel_leftViewRectForBounds_, bounds);
  final $finalizable = $ptr.cast<ffi.Uint8>().asTypedList(
    ffi.sizeOf<objc.CGRect>(),
    finalizer: pkg_ffi.calloc.nativeFree,
  );
  return ffi.Struct.create<objc.CGRect>($finalizable);
}