textRectForBounds method

CGRect textRectForBounds(
  1. CGRect bounds, {
  2. required int limitedToNumberOfLines,
})

textRectForBounds:limitedToNumberOfLines:

Implementation

objc.CGRect textRectForBounds(objc.CGRect bounds, {required int limitedToNumberOfLines}) {
  objc.checkOsVersionInternal('UILabel.textRectForBounds:limitedToNumberOfLines:', iOS: (false, (2, 0, 0)));
  final _ptr = pkg_ffi.calloc<objc.CGRect>();
  objc.useMsgSendVariants
      ? _objc_msgSend_o8h5mjStret(
          _ptr,
          this.ref.pointer,
          _sel_textRectForBounds_limitedToNumberOfLines_,
          bounds,
          limitedToNumberOfLines,
        )
      : _ptr.ref = _objc_msgSend_o8h5mj(
          this.ref.pointer,
          _sel_textRectForBounds_limitedToNumberOfLines_,
          bounds,
          limitedToNumberOfLines,
        );
  final _finalizable = _ptr.cast<ffi.Uint8>().asTypedList(
    ffi.sizeOf<objc.CGRect>(),
    finalizer: pkg_ffi.calloc.nativeFree,
  );
  return ffi.Struct.create<objc.CGRect>(_finalizable);
}