drawWithRect method

void drawWithRect(
  1. CGRect rect, {
  2. required NSStringDrawingOptions options,
  3. NSDictionary? attributes,
  4. NSStringDrawingContext? context,
})

drawWithRect:options:attributes:context:

Implementation

void drawWithRect(
  objc.CGRect rect, {
  required NSStringDrawingOptions options,
  objc.NSDictionary? attributes,
  NSStringDrawingContext? context,
}) {
  objc.checkOsVersionInternal(
    'NSString.drawWithRect:options:attributes:context:',
    iOS: (false, (7, 0, 0)),
    macOS: (false, (10, 11, 0)),
  );
  _objc_msgSend_1dr66uk(
    this.ref.pointer,
    _sel_drawWithRect_options_attributes_context_,
    rect,
    options.value,
    attributes?.ref.pointer ?? ffi.nullptr,
    context?.ref.pointer ?? ffi.nullptr,
  );
}