addToBuilder static method

void addToBuilder(
  1. ObjCProtocolBuilder builder, {
  2. NSView? tableView_viewForTableColumn_row_(
    1. NSTableView,
    2. NSTableColumn?,
    3. DartNSInteger
    )?,
  3. NSTableRowView? tableView_rowViewForRow_(
    1. NSTableView,
    2. DartNSInteger
    )?,
  4. void tableView_didAddRowView_forRow_(
    1. NSTableView,
    2. NSTableRowView,
    3. DartNSInteger
    )?,
  5. void tableView_didRemoveRowView_forRow_(
    1. NSTableView,
    2. NSTableRowView,
    3. DartNSInteger
    )?,
  6. void tableView_willDisplayCell_forTableColumn_row_(
    1. NSTableView,
    2. ObjCObjectBase,
    3. NSTableColumn?,
    4. DartNSInteger,
    )?,
  7. bool tableView_shouldEditTableColumn_row_(
    1. NSTableView,
    2. NSTableColumn?,
    3. DartNSInteger
    )?,
  8. NSString tableView_toolTipForCell_rect_tableColumn_row_mouseLocation_(
    1. NSTableView,
    2. NSCell,
    3. NSRectPointer,
    4. NSTableColumn?,
    5. DartNSInteger,
    6. NSPoint,
    )?,
  9. bool tableView_shouldShowCellExpansionForTableColumn_row_(
    1. NSTableView,
    2. NSTableColumn?,
    3. DartNSInteger
    )?,
  10. bool tableView_shouldTrackCell_forTableColumn_row_(
    1. NSTableView,
    2. NSCell,
    3. NSTableColumn?,
    4. DartNSInteger,
    )?,
  11. NSCell? tableView_dataCellForTableColumn_row_(
    1. NSTableView,
    2. NSTableColumn?,
    3. DartNSInteger
    )?,
  12. bool selectionShouldChangeInTableView_(
    1. NSTableView
    )?,
  13. bool tableView_shouldSelectRow_(
    1. NSTableView,
    2. DartNSInteger
    )?,
  14. NSIndexSet tableView_selectionIndexesForProposedSelection_(
    1. NSTableView,
    2. NSIndexSet
    )?,
  15. bool tableView_shouldSelectTableColumn_(
    1. NSTableView,
    2. NSTableColumn?
    )?,
  16. void tableView_mouseDownInHeaderOfTableColumn_(
    1. NSTableView,
    2. NSTableColumn
    )?,
  17. void tableView_didClickTableColumn_(
    1. NSTableView,
    2. NSTableColumn
    )?,
  18. void tableView_didDragTableColumn_(
    1. NSTableView,
    2. NSTableColumn
    )?,
  19. DartCGFloat tableView_heightOfRow_(
    1. NSTableView,
    2. DartNSInteger
    )?,
  20. NSString? tableView_typeSelectStringForTableColumn_row_(
    1. NSTableView,
    2. NSTableColumn?,
    3. DartNSInteger
    )?,
  21. DartNSInteger tableView_nextTypeSelectMatchFromRow_toRow_forString_(
    1. NSTableView,
    2. DartNSInteger,
    3. DartNSInteger,
    4. NSString,
    )?,
  22. bool tableView_shouldTypeSelectForEvent_withCurrentSearchString_(
    1. NSTableView,
    2. NSEvent,
    3. NSString?
    )?,
  23. bool tableView_isGroupRow_(
    1. NSTableView,
    2. DartNSInteger
    )?,
  24. DartCGFloat tableView_sizeToFitWidthOfColumn_(
    1. NSTableView,
    2. DartNSInteger
    )?,
  25. bool tableView_shouldReorderColumn_toColumn_(
    1. NSTableView,
    2. DartNSInteger,
    3. DartNSInteger
    )?,
  26. NSArray tableView_rowActionsForRow_edge_(
    1. NSTableView,
    2. DartNSInteger,
    3. NSTableRowActionEdge
    )?,
  27. bool tableView_userCanChangeVisibilityOfTableColumn_(
    1. NSTableView,
    2. NSTableColumn
    )?,
  28. void tableView_userDidChangeVisibilityOfTableColumns_(
    1. NSTableView,
    2. NSArray
    )?,
  29. void tableViewSelectionDidChange_(
    1. NSNotification
    )?,
  30. void tableViewColumnDidMove_(
    1. NSNotification
    )?,
  31. void tableViewColumnDidResize_(
    1. NSNotification
    )?,
  32. void tableViewSelectionIsChanging_(
    1. NSNotification
    )?,
  33. void controlTextDidBeginEditing_(
    1. NSNotification
    )?,
  34. void controlTextDidEndEditing_(
    1. NSNotification
    )?,
  35. void controlTextDidChange_(
    1. NSNotification
    )?,
  36. bool control_textShouldBeginEditing_(
    1. NSControl,
    2. NSText
    )?,
  37. bool control_textShouldEndEditing_(
    1. NSControl,
    2. NSText
    )?,
  38. bool control_didFailToFormatString_errorDescription_(
    1. NSControl,
    2. NSString,
    3. NSString?
    )?,
  39. void control_didFailToValidatePartialString_errorDescription_(
    1. NSControl,
    2. NSString,
    3. NSString?
    )?,
  40. bool control_isValidObject_(
    1. NSControl,
    2. ObjCObjectBase?
    )?,
  41. bool control_textView_doCommandBySelector_(
    1. NSControl,
    2. NSTextView,
    3. Pointer<ObjCSelector>
    )?,
  42. NSArray control_textView_completions_forPartialWordRange_indexOfSelectedItem_(
    1. NSControl,
    2. NSTextView,
    3. NSArray,
    4. NSRange,
    5. Pointer<NSInteger>,
    )?,
  43. bool $keepIsolateAlive = true,
})
override

Adds the implementation of the NSTableViewDelegate 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, {
  NSView? Function(NSTableView, NSTableColumn?, DartNSInteger)?
  tableView_viewForTableColumn_row_,
  NSTableRowView? Function(NSTableView, DartNSInteger)?
  tableView_rowViewForRow_,
  void Function(NSTableView, NSTableRowView, DartNSInteger)?
  tableView_didAddRowView_forRow_,
  void Function(NSTableView, NSTableRowView, DartNSInteger)?
  tableView_didRemoveRowView_forRow_,
  void Function(
    NSTableView,
    objc.ObjCObjectBase,
    NSTableColumn?,
    DartNSInteger,
  )?
  tableView_willDisplayCell_forTableColumn_row_,
  bool Function(NSTableView, NSTableColumn?, DartNSInteger)?
  tableView_shouldEditTableColumn_row_,
  objc.NSString Function(
    NSTableView,
    NSCell,
    NSRectPointer,
    NSTableColumn?,
    DartNSInteger,
    NSPoint,
  )?
  tableView_toolTipForCell_rect_tableColumn_row_mouseLocation_,
  bool Function(NSTableView, NSTableColumn?, DartNSInteger)?
  tableView_shouldShowCellExpansionForTableColumn_row_,
  bool Function(NSTableView, NSCell, NSTableColumn?, DartNSInteger)?
  tableView_shouldTrackCell_forTableColumn_row_,
  NSCell? Function(NSTableView, NSTableColumn?, DartNSInteger)?
  tableView_dataCellForTableColumn_row_,
  bool Function(NSTableView)? selectionShouldChangeInTableView_,
  bool Function(NSTableView, DartNSInteger)? tableView_shouldSelectRow_,
  objc.NSIndexSet Function(NSTableView, objc.NSIndexSet)?
  tableView_selectionIndexesForProposedSelection_,
  bool Function(NSTableView, NSTableColumn?)?
  tableView_shouldSelectTableColumn_,
  void Function(NSTableView, NSTableColumn)?
  tableView_mouseDownInHeaderOfTableColumn_,
  void Function(NSTableView, NSTableColumn)? tableView_didClickTableColumn_,
  void Function(NSTableView, NSTableColumn)? tableView_didDragTableColumn_,
  DartCGFloat Function(NSTableView, DartNSInteger)? tableView_heightOfRow_,
  objc.NSString? Function(NSTableView, NSTableColumn?, DartNSInteger)?
  tableView_typeSelectStringForTableColumn_row_,
  DartNSInteger Function(
    NSTableView,
    DartNSInteger,
    DartNSInteger,
    objc.NSString,
  )?
  tableView_nextTypeSelectMatchFromRow_toRow_forString_,
  bool Function(NSTableView, NSEvent, objc.NSString?)?
  tableView_shouldTypeSelectForEvent_withCurrentSearchString_,
  bool Function(NSTableView, DartNSInteger)? tableView_isGroupRow_,
  DartCGFloat Function(NSTableView, DartNSInteger)?
  tableView_sizeToFitWidthOfColumn_,
  bool Function(NSTableView, DartNSInteger, DartNSInteger)?
  tableView_shouldReorderColumn_toColumn_,
  objc.NSArray Function(NSTableView, DartNSInteger, NSTableRowActionEdge)?
  tableView_rowActionsForRow_edge_,
  bool Function(NSTableView, NSTableColumn)?
  tableView_userCanChangeVisibilityOfTableColumn_,
  void Function(NSTableView, objc.NSArray)?
  tableView_userDidChangeVisibilityOfTableColumns_,
  void Function(objc.NSNotification)? tableViewSelectionDidChange_,
  void Function(objc.NSNotification)? tableViewColumnDidMove_,
  void Function(objc.NSNotification)? tableViewColumnDidResize_,
  void Function(objc.NSNotification)? tableViewSelectionIsChanging_,
  void Function(objc.NSNotification)? controlTextDidBeginEditing_,
  void Function(objc.NSNotification)? controlTextDidEndEditing_,
  void Function(objc.NSNotification)? controlTextDidChange_,
  bool Function(NSControl, NSText)? control_textShouldBeginEditing_,
  bool Function(NSControl, NSText)? control_textShouldEndEditing_,
  bool Function(NSControl, objc.NSString, objc.NSString?)?
  control_didFailToFormatString_errorDescription_,
  void Function(NSControl, objc.NSString, objc.NSString?)?
  control_didFailToValidatePartialString_errorDescription_,
  bool Function(NSControl, objc.ObjCObjectBase?)? control_isValidObject_,
  bool Function(NSControl, NSTextView, ffi.Pointer<objc.ObjCSelector>)?
  control_textView_doCommandBySelector_,
  objc.NSArray Function(
    NSControl,
    NSTextView,
    objc.NSArray,
    NSRange,
    ffi.Pointer<NSInteger>,
  )?
  control_textView_completions_forPartialWordRange_indexOfSelectedItem_,
  bool $keepIsolateAlive = true,
}) {
  NSTableViewDelegate.tableView_viewForTableColumn_row_.implement(
    builder,
    tableView_viewForTableColumn_row_,
  );
  NSTableViewDelegate.tableView_rowViewForRow_.implement(
    builder,
    tableView_rowViewForRow_,
  );
  NSTableViewDelegate.tableView_didAddRowView_forRow_.implement(
    builder,
    tableView_didAddRowView_forRow_,
  );
  NSTableViewDelegate.tableView_didRemoveRowView_forRow_.implement(
    builder,
    tableView_didRemoveRowView_forRow_,
  );
  NSTableViewDelegate.tableView_willDisplayCell_forTableColumn_row_.implement(
    builder,
    tableView_willDisplayCell_forTableColumn_row_,
  );
  NSTableViewDelegate.tableView_shouldEditTableColumn_row_.implement(
    builder,
    tableView_shouldEditTableColumn_row_,
  );
  NSTableViewDelegate
      .tableView_toolTipForCell_rect_tableColumn_row_mouseLocation_
      .implement(
        builder,
        tableView_toolTipForCell_rect_tableColumn_row_mouseLocation_,
      );
  NSTableViewDelegate.tableView_shouldShowCellExpansionForTableColumn_row_
      .implement(
        builder,
        tableView_shouldShowCellExpansionForTableColumn_row_,
      );
  NSTableViewDelegate.tableView_shouldTrackCell_forTableColumn_row_.implement(
    builder,
    tableView_shouldTrackCell_forTableColumn_row_,
  );
  NSTableViewDelegate.tableView_dataCellForTableColumn_row_.implement(
    builder,
    tableView_dataCellForTableColumn_row_,
  );
  NSTableViewDelegate.selectionShouldChangeInTableView_.implement(
    builder,
    selectionShouldChangeInTableView_,
  );
  NSTableViewDelegate.tableView_shouldSelectRow_.implement(
    builder,
    tableView_shouldSelectRow_,
  );
  NSTableViewDelegate.tableView_selectionIndexesForProposedSelection_
      .implement(builder, tableView_selectionIndexesForProposedSelection_);
  NSTableViewDelegate.tableView_shouldSelectTableColumn_.implement(
    builder,
    tableView_shouldSelectTableColumn_,
  );
  NSTableViewDelegate.tableView_mouseDownInHeaderOfTableColumn_.implement(
    builder,
    tableView_mouseDownInHeaderOfTableColumn_,
  );
  NSTableViewDelegate.tableView_didClickTableColumn_.implement(
    builder,
    tableView_didClickTableColumn_,
  );
  NSTableViewDelegate.tableView_didDragTableColumn_.implement(
    builder,
    tableView_didDragTableColumn_,
  );
  NSTableViewDelegate.tableView_heightOfRow_.implement(
    builder,
    tableView_heightOfRow_,
  );
  NSTableViewDelegate.tableView_typeSelectStringForTableColumn_row_.implement(
    builder,
    tableView_typeSelectStringForTableColumn_row_,
  );
  NSTableViewDelegate.tableView_nextTypeSelectMatchFromRow_toRow_forString_
      .implement(
        builder,
        tableView_nextTypeSelectMatchFromRow_toRow_forString_,
      );
  NSTableViewDelegate
      .tableView_shouldTypeSelectForEvent_withCurrentSearchString_
      .implement(
        builder,
        tableView_shouldTypeSelectForEvent_withCurrentSearchString_,
      );
  NSTableViewDelegate.tableView_isGroupRow_.implement(
    builder,
    tableView_isGroupRow_,
  );
  NSTableViewDelegate.tableView_sizeToFitWidthOfColumn_.implement(
    builder,
    tableView_sizeToFitWidthOfColumn_,
  );
  NSTableViewDelegate.tableView_shouldReorderColumn_toColumn_.implement(
    builder,
    tableView_shouldReorderColumn_toColumn_,
  );
  NSTableViewDelegate.tableView_rowActionsForRow_edge_.implement(
    builder,
    tableView_rowActionsForRow_edge_,
  );
  NSTableViewDelegate.tableView_userCanChangeVisibilityOfTableColumn_
      .implement(builder, tableView_userCanChangeVisibilityOfTableColumn_);
  NSTableViewDelegate.tableView_userDidChangeVisibilityOfTableColumns_
      .implement(builder, tableView_userDidChangeVisibilityOfTableColumns_);
  NSTableViewDelegate.tableViewSelectionDidChange_.implement(
    builder,
    tableViewSelectionDidChange_,
  );
  NSTableViewDelegate.tableViewColumnDidMove_.implement(
    builder,
    tableViewColumnDidMove_,
  );
  NSTableViewDelegate.tableViewColumnDidResize_.implement(
    builder,
    tableViewColumnDidResize_,
  );
  NSTableViewDelegate.tableViewSelectionIsChanging_.implement(
    builder,
    tableViewSelectionIsChanging_,
  );
  NSTableViewDelegate.controlTextDidBeginEditing_.implement(
    builder,
    controlTextDidBeginEditing_,
  );
  NSTableViewDelegate.controlTextDidEndEditing_.implement(
    builder,
    controlTextDidEndEditing_,
  );
  NSTableViewDelegate.controlTextDidChange_.implement(
    builder,
    controlTextDidChange_,
  );
  NSTableViewDelegate.control_textShouldBeginEditing_.implement(
    builder,
    control_textShouldBeginEditing_,
  );
  NSTableViewDelegate.control_textShouldEndEditing_.implement(
    builder,
    control_textShouldEndEditing_,
  );
  NSTableViewDelegate.control_didFailToFormatString_errorDescription_
      .implement(builder, control_didFailToFormatString_errorDescription_);
  NSTableViewDelegate.control_didFailToValidatePartialString_errorDescription_
      .implement(
        builder,
        control_didFailToValidatePartialString_errorDescription_,
      );
  NSTableViewDelegate.control_isValidObject_.implement(
    builder,
    control_isValidObject_,
  );
  NSTableViewDelegate.control_textView_doCommandBySelector_.implement(
    builder,
    control_textView_doCommandBySelector_,
  );
  NSTableViewDelegate
      .control_textView_completions_forPartialWordRange_indexOfSelectedItem_
      .implement(
        builder,
        control_textView_completions_forPartialWordRange_indexOfSelectedItem_,
      );
  builder.addProtocol($protocol);
}