clearButtonRectForBounds method

CGRect clearButtonRectForBounds(
  1. CGRect bounds
)

clearButtonRectForBounds:

Implementation

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