textRectForBounds method
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,
object$.ref.pointer,
_sel_textRectForBounds_limitedToNumberOfLines_,
bounds,
limitedToNumberOfLines,
)
: $ptr.ref = _objc_msgSend_o8h5mj(
object$.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);
}