addToBuilder static method

void addToBuilder(
  1. ObjCProtocolBuilder builder, {
  2. bool textView_clickedOnLink_atIndex_(
    1. NSTextView,
    2. ObjCObjectBase,
    3. DartNSUInteger
    )?,
  3. void textView_clickedOnCell_inRect_atIndex_(
    1. NSTextView,
    2. NSTextAttachmentCell,
    3. NSRect,
    4. DartNSUInteger,
    )?,
  4. void textView_doubleClickedOnCell_inRect_atIndex_(
    1. NSTextView,
    2. NSTextAttachmentCell,
    3. NSRect,
    4. DartNSUInteger,
    )?,
  5. void textView_draggedCell_inRect_event_atIndex_(
    1. NSTextView,
    2. NSTextAttachmentCell,
    3. NSRect,
    4. NSEvent,
    5. DartNSUInteger,
    )?,
  6. NSArray textView_writablePasteboardTypesForCell_atIndex_(
    1. NSTextView,
    2. NSTextAttachmentCell,
    3. DartNSUInteger
    )?,
  7. bool textView_writeCell_atIndex_toPasteboard_type_(
    1. NSTextView,
    2. NSTextAttachmentCell,
    3. DartNSUInteger,
    4. NSPasteboard,
    5. DartNSPasteboardType,
    )?,
  8. NSRange textView_willChangeSelectionFromCharacterRange_toCharacterRange_(
    1. NSTextView,
    2. NSRange,
    3. NSRange
    )?,
  9. NSArray textView_willChangeSelectionFromCharacterRanges_toCharacterRanges_(
    1. NSTextView,
    2. NSArray,
    3. NSArray
    )?,
  10. bool textView_shouldChangeTextInRanges_replacementStrings_(
    1. NSTextView,
    2. NSArray,
    3. NSArray?
    )?,
  11. NSDictionary textView_shouldChangeTypingAttributes_toAttributes_(
    1. NSTextView,
    2. NSDictionary,
    3. NSDictionary
    )?,
  12. void textViewDidChangeSelection_(
    1. NSNotification
    )?,
  13. void textViewDidChangeTypingAttributes_(
    1. NSNotification
    )?,
  14. NSString? textView_willDisplayToolTip_forCharacterAtIndex_(
    1. NSTextView,
    2. NSString,
    3. DartNSUInteger
    )?,
  15. NSArray textView_completions_forPartialWordRange_indexOfSelectedItem_(
    1. NSTextView,
    2. NSArray,
    3. NSRange,
    4. Pointer<NSInteger>,
    )?,
  16. bool textView_shouldChangeTextInRange_replacementString_(
    1. NSTextView,
    2. NSRange,
    3. NSString?
    )?,
  17. bool textView_doCommandBySelector_(
    1. NSTextView,
    2. Pointer<ObjCSelector>
    )?,
  18. DartNSInteger textView_shouldSetSpellingState_range_(
    1. NSTextView,
    2. DartNSInteger,
    3. NSRange
    )?,
  19. NSMenu? textView_menu_forEvent_atIndex_(
    1. NSTextView,
    2. NSMenu,
    3. NSEvent,
    4. DartNSUInteger,
    )?,
  20. NSDictionary textView_willCheckTextInRange_options_types_(
    1. NSTextView,
    2. NSRange,
    3. NSDictionary,
    4. Pointer<CVOptionFlags>,
    )?,
  21. NSArray textView_didCheckTextInRange_types_options_results_orthography_wordCount_(
    1. NSTextView,
    2. NSRange,
    3. DartNSTextCheckingTypes,
    4. NSDictionary,
    5. NSArray,
    6. NSOrthography,
    7. DartNSInteger,
    )?,
  22. NSURL? textView_URLForContentsOfTextAttachment_atIndex_(
    1. NSTextView,
    2. NSTextAttachment,
    3. DartNSUInteger
    )?,
  23. NSSharingServicePicker? textView_willShowSharingServicePicker_forItems_(
    1. NSTextView,
    2. NSSharingServicePicker,
    3. NSArray
    )?,
  24. NSUndoManager? undoManagerForTextView_(
    1. NSTextView
    )?,
  25. NSArray textView_shouldUpdateTouchBarItemIdentifiers_(
    1. NSTextView,
    2. NSArray
    )?,
  26. NSArray? textView_candidatesForSelectedRange_(
    1. NSTextView,
    2. NSRange
    )?,
  27. NSArray textView_candidates_forSelectedRange_(
    1. NSTextView,
    2. NSArray,
    3. NSRange
    )?,
  28. bool textView_shouldSelectCandidateAtIndex_(
    1. NSTextView,
    2. DartNSUInteger
    )?,
  29. void textViewWritingToolsWillBegin_(
    1. NSTextView
    )?,
  30. void textViewWritingToolsDidEnd_(
    1. NSTextView
    )?,
  31. NSArray textView_writingToolsIgnoredRangesInEnclosingRange_(
    1. NSTextView,
    2. NSRange
    )?,
  32. bool textView_clickedOnLink_(
    1. NSTextView,
    2. ObjCObjectBase
    )?,
  33. void textView_clickedOnCell_inRect_(
    1. NSTextView,
    2. NSTextAttachmentCell,
    3. NSRect
    )?,
  34. void textView_doubleClickedOnCell_inRect_(
    1. NSTextView,
    2. NSTextAttachmentCell,
    3. NSRect
    )?,
  35. void textView_draggedCell_inRect_event_(
    1. NSTextView,
    2. NSTextAttachmentCell,
    3. NSRect,
    4. NSEvent,
    )?,
  36. bool textShouldBeginEditing_(
    1. NSText
    )?,
  37. bool textShouldEndEditing_(
    1. NSText
    )?,
  38. void textDidBeginEditing_(
    1. NSNotification
    )?,
  39. void textDidEndEditing_(
    1. NSNotification
    )?,
  40. void textDidChange_(
    1. NSNotification
    )?,
  41. bool $keepIsolateAlive = true,
})
override

Adds the implementation of the NSTextViewDelegate protocol to an existing objc.ObjCProtocolBuilder.

Note: You cannot call this method after you have called builder.build.

Implementation

static void addToBuilder(
  objc.ObjCProtocolBuilder builder, {
  bool Function(NSTextView, objc.ObjCObjectBase, DartNSUInteger)?
  textView_clickedOnLink_atIndex_,
  void Function(NSTextView, NSTextAttachmentCell, NSRect, DartNSUInteger)?
  textView_clickedOnCell_inRect_atIndex_,
  void Function(NSTextView, NSTextAttachmentCell, NSRect, DartNSUInteger)?
  textView_doubleClickedOnCell_inRect_atIndex_,
  void Function(
    NSTextView,
    NSTextAttachmentCell,
    NSRect,
    NSEvent,
    DartNSUInteger,
  )?
  textView_draggedCell_inRect_event_atIndex_,
  objc.NSArray Function(NSTextView, NSTextAttachmentCell, DartNSUInteger)?
  textView_writablePasteboardTypesForCell_atIndex_,
  bool Function(
    NSTextView,
    NSTextAttachmentCell,
    DartNSUInteger,
    NSPasteboard,
    DartNSPasteboardType,
  )?
  textView_writeCell_atIndex_toPasteboard_type_,
  NSRange Function(NSTextView, NSRange, NSRange)?
  textView_willChangeSelectionFromCharacterRange_toCharacterRange_,
  objc.NSArray Function(NSTextView, objc.NSArray, objc.NSArray)?
  textView_willChangeSelectionFromCharacterRanges_toCharacterRanges_,
  bool Function(NSTextView, objc.NSArray, objc.NSArray?)?
  textView_shouldChangeTextInRanges_replacementStrings_,
  objc.NSDictionary Function(
    NSTextView,
    objc.NSDictionary,
    objc.NSDictionary,
  )?
  textView_shouldChangeTypingAttributes_toAttributes_,
  void Function(objc.NSNotification)? textViewDidChangeSelection_,
  void Function(objc.NSNotification)? textViewDidChangeTypingAttributes_,
  objc.NSString? Function(NSTextView, objc.NSString, DartNSUInteger)?
  textView_willDisplayToolTip_forCharacterAtIndex_,
  objc.NSArray Function(
    NSTextView,
    objc.NSArray,
    NSRange,
    ffi.Pointer<NSInteger>,
  )?
  textView_completions_forPartialWordRange_indexOfSelectedItem_,
  bool Function(NSTextView, NSRange, objc.NSString?)?
  textView_shouldChangeTextInRange_replacementString_,
  bool Function(NSTextView, ffi.Pointer<objc.ObjCSelector>)?
  textView_doCommandBySelector_,
  DartNSInteger Function(NSTextView, DartNSInteger, NSRange)?
  textView_shouldSetSpellingState_range_,
  NSMenu? Function(NSTextView, NSMenu, NSEvent, DartNSUInteger)?
  textView_menu_forEvent_atIndex_,
  objc.NSDictionary Function(
    NSTextView,
    NSRange,
    objc.NSDictionary,
    ffi.Pointer<NSTextCheckingTypes>,
  )?
  textView_willCheckTextInRange_options_types_,
  objc.NSArray Function(
    NSTextView,
    NSRange,
    DartNSTextCheckingTypes,
    objc.NSDictionary,
    objc.NSArray,
    NSOrthography,
    DartNSInteger,
  )?
  textView_didCheckTextInRange_types_options_results_orthography_wordCount_,
  objc.NSURL? Function(NSTextView, NSTextAttachment, DartNSUInteger)?
  textView_URLForContentsOfTextAttachment_atIndex_,
  NSSharingServicePicker? Function(
    NSTextView,
    NSSharingServicePicker,
    objc.NSArray,
  )?
  textView_willShowSharingServicePicker_forItems_,
  NSUndoManager? Function(NSTextView)? undoManagerForTextView_,
  objc.NSArray Function(NSTextView, objc.NSArray)?
  textView_shouldUpdateTouchBarItemIdentifiers_,
  objc.NSArray? Function(NSTextView, NSRange)?
  textView_candidatesForSelectedRange_,
  objc.NSArray Function(NSTextView, objc.NSArray, NSRange)?
  textView_candidates_forSelectedRange_,
  bool Function(NSTextView, DartNSUInteger)?
  textView_shouldSelectCandidateAtIndex_,
  void Function(NSTextView)? textViewWritingToolsWillBegin_,
  void Function(NSTextView)? textViewWritingToolsDidEnd_,
  objc.NSArray Function(NSTextView, NSRange)?
  textView_writingToolsIgnoredRangesInEnclosingRange_,
  bool Function(NSTextView, objc.ObjCObjectBase)? textView_clickedOnLink_,
  void Function(NSTextView, NSTextAttachmentCell, NSRect)?
  textView_clickedOnCell_inRect_,
  void Function(NSTextView, NSTextAttachmentCell, NSRect)?
  textView_doubleClickedOnCell_inRect_,
  void Function(NSTextView, NSTextAttachmentCell, NSRect, NSEvent)?
  textView_draggedCell_inRect_event_,
  bool Function(NSText)? textShouldBeginEditing_,
  bool Function(NSText)? textShouldEndEditing_,
  void Function(objc.NSNotification)? textDidBeginEditing_,
  void Function(objc.NSNotification)? textDidEndEditing_,
  void Function(objc.NSNotification)? textDidChange_,
  bool $keepIsolateAlive = true,
}) {
  NSTextViewDelegate.textView_clickedOnLink_atIndex_.implement(
    builder,
    textView_clickedOnLink_atIndex_,
  );
  NSTextViewDelegate.textView_clickedOnCell_inRect_atIndex_.implement(
    builder,
    textView_clickedOnCell_inRect_atIndex_,
  );
  NSTextViewDelegate.textView_doubleClickedOnCell_inRect_atIndex_.implement(
    builder,
    textView_doubleClickedOnCell_inRect_atIndex_,
  );
  NSTextViewDelegate.textView_draggedCell_inRect_event_atIndex_.implement(
    builder,
    textView_draggedCell_inRect_event_atIndex_,
  );
  NSTextViewDelegate.textView_writablePasteboardTypesForCell_atIndex_
      .implement(builder, textView_writablePasteboardTypesForCell_atIndex_);
  NSTextViewDelegate.textView_writeCell_atIndex_toPasteboard_type_.implement(
    builder,
    textView_writeCell_atIndex_toPasteboard_type_,
  );
  NSTextViewDelegate
      .textView_willChangeSelectionFromCharacterRange_toCharacterRange_
      .implement(
        builder,
        textView_willChangeSelectionFromCharacterRange_toCharacterRange_,
      );
  NSTextViewDelegate
      .textView_willChangeSelectionFromCharacterRanges_toCharacterRanges_
      .implement(
        builder,
        textView_willChangeSelectionFromCharacterRanges_toCharacterRanges_,
      );
  NSTextViewDelegate.textView_shouldChangeTextInRanges_replacementStrings_
      .implement(
        builder,
        textView_shouldChangeTextInRanges_replacementStrings_,
      );
  NSTextViewDelegate.textView_shouldChangeTypingAttributes_toAttributes_
      .implement(
        builder,
        textView_shouldChangeTypingAttributes_toAttributes_,
      );
  NSTextViewDelegate.textViewDidChangeSelection_.implement(
    builder,
    textViewDidChangeSelection_,
  );
  NSTextViewDelegate.textViewDidChangeTypingAttributes_.implement(
    builder,
    textViewDidChangeTypingAttributes_,
  );
  NSTextViewDelegate.textView_willDisplayToolTip_forCharacterAtIndex_
      .implement(builder, textView_willDisplayToolTip_forCharacterAtIndex_);
  NSTextViewDelegate
      .textView_completions_forPartialWordRange_indexOfSelectedItem_
      .implement(
        builder,
        textView_completions_forPartialWordRange_indexOfSelectedItem_,
      );
  NSTextViewDelegate.textView_shouldChangeTextInRange_replacementString_
      .implement(
        builder,
        textView_shouldChangeTextInRange_replacementString_,
      );
  NSTextViewDelegate.textView_doCommandBySelector_.implement(
    builder,
    textView_doCommandBySelector_,
  );
  NSTextViewDelegate.textView_shouldSetSpellingState_range_.implement(
    builder,
    textView_shouldSetSpellingState_range_,
  );
  NSTextViewDelegate.textView_menu_forEvent_atIndex_.implement(
    builder,
    textView_menu_forEvent_atIndex_,
  );
  NSTextViewDelegate.textView_willCheckTextInRange_options_types_.implement(
    builder,
    textView_willCheckTextInRange_options_types_,
  );
  NSTextViewDelegate
      .textView_didCheckTextInRange_types_options_results_orthography_wordCount_
      .implement(
        builder,
        textView_didCheckTextInRange_types_options_results_orthography_wordCount_,
      );
  NSTextViewDelegate.textView_URLForContentsOfTextAttachment_atIndex_
      .implement(builder, textView_URLForContentsOfTextAttachment_atIndex_);
  NSTextViewDelegate.textView_willShowSharingServicePicker_forItems_
      .implement(builder, textView_willShowSharingServicePicker_forItems_);
  NSTextViewDelegate.undoManagerForTextView_.implement(
    builder,
    undoManagerForTextView_,
  );
  NSTextViewDelegate.textView_shouldUpdateTouchBarItemIdentifiers_.implement(
    builder,
    textView_shouldUpdateTouchBarItemIdentifiers_,
  );
  NSTextViewDelegate.textView_candidatesForSelectedRange_.implement(
    builder,
    textView_candidatesForSelectedRange_,
  );
  NSTextViewDelegate.textView_candidates_forSelectedRange_.implement(
    builder,
    textView_candidates_forSelectedRange_,
  );
  NSTextViewDelegate.textView_shouldSelectCandidateAtIndex_.implement(
    builder,
    textView_shouldSelectCandidateAtIndex_,
  );
  NSTextViewDelegate.textViewWritingToolsWillBegin_.implement(
    builder,
    textViewWritingToolsWillBegin_,
  );
  NSTextViewDelegate.textViewWritingToolsDidEnd_.implement(
    builder,
    textViewWritingToolsDidEnd_,
  );
  NSTextViewDelegate.textView_writingToolsIgnoredRangesInEnclosingRange_
      .implement(
        builder,
        textView_writingToolsIgnoredRangesInEnclosingRange_,
      );
  NSTextViewDelegate.textView_clickedOnLink_.implement(
    builder,
    textView_clickedOnLink_,
  );
  NSTextViewDelegate.textView_clickedOnCell_inRect_.implement(
    builder,
    textView_clickedOnCell_inRect_,
  );
  NSTextViewDelegate.textView_doubleClickedOnCell_inRect_.implement(
    builder,
    textView_doubleClickedOnCell_inRect_,
  );
  NSTextViewDelegate.textView_draggedCell_inRect_event_.implement(
    builder,
    textView_draggedCell_inRect_event_,
  );
  NSTextViewDelegate.textShouldBeginEditing_.implement(
    builder,
    textShouldBeginEditing_,
  );
  NSTextViewDelegate.textShouldEndEditing_.implement(
    builder,
    textShouldEndEditing_,
  );
  NSTextViewDelegate.textDidBeginEditing_.implement(
    builder,
    textDidBeginEditing_,
  );
  NSTextViewDelegate.textDidEndEditing_.implement(
    builder,
    textDidEndEditing_,
  );
  NSTextViewDelegate.textDidChange_.implement(builder, textDidChange_);
  builder.addProtocol($protocol);
}