addToBuilderAsBlocking static method
void
addToBuilderAsBlocking(
- ObjCProtocolBuilder builder, {
- NSView? tableView_viewForTableColumn_row_()?,
- NSTableRowView? tableView_rowViewForRow_()?,
- void tableView_didAddRowView_forRow_()?,
- void tableView_didRemoveRowView_forRow_()?,
- void tableView_willDisplayCell_forTableColumn_row_(
- NSTableView,
- ObjCObjectBase,
- NSTableColumn?,
- DartNSInteger,
- bool tableView_shouldEditTableColumn_row_()?,
- NSString tableView_toolTipForCell_rect_tableColumn_row_mouseLocation_()?,
- bool tableView_shouldShowCellExpansionForTableColumn_row_()?,
- bool tableView_shouldTrackCell_forTableColumn_row_()?,
- NSCell? tableView_dataCellForTableColumn_row_()?,
- bool selectionShouldChangeInTableView_()?,
- bool tableView_shouldSelectRow_()?,
- NSIndexSet tableView_selectionIndexesForProposedSelection_(
- NSTableView,
- NSIndexSet
- bool tableView_shouldSelectTableColumn_()?,
- void tableView_mouseDownInHeaderOfTableColumn_()?,
- void tableView_didClickTableColumn_()?,
- void tableView_didDragTableColumn_()?,
- DartCGFloat tableView_heightOfRow_()?,
- NSString? tableView_typeSelectStringForTableColumn_row_()?,
- DartNSInteger tableView_nextTypeSelectMatchFromRow_toRow_forString_(
- NSTableView,
- DartNSInteger,
- DartNSInteger,
- NSString,
- bool tableView_shouldTypeSelectForEvent_withCurrentSearchString_(
- NSTableView,
- NSEvent,
- NSString?
- bool tableView_isGroupRow_()?,
- DartCGFloat tableView_sizeToFitWidthOfColumn_()?,
- bool tableView_shouldReorderColumn_toColumn_()?,
- NSArray tableView_rowActionsForRow_edge_()?,
- bool tableView_userCanChangeVisibilityOfTableColumn_()?,
- void tableView_userDidChangeVisibilityOfTableColumns_(
- NSTableView,
- NSArray
- void tableViewSelectionDidChange_(
- NSNotification
- void tableViewColumnDidMove_(
- NSNotification
- void tableViewColumnDidResize_(
- NSNotification
- void tableViewSelectionIsChanging_(
- NSNotification
- void controlTextDidBeginEditing_(
- NSNotification
- void controlTextDidEndEditing_(
- NSNotification
- void controlTextDidChange_(
- NSNotification
- bool control_textShouldBeginEditing_()?,
- bool control_textShouldEndEditing_()?,
- bool control_didFailToFormatString_errorDescription_(
- NSControl,
- NSString,
- NSString?
- void control_didFailToValidatePartialString_errorDescription_(
- NSControl,
- NSString,
- NSString?
- bool control_isValidObject_(
- NSControl,
- ObjCObjectBase?
- bool control_textView_doCommandBySelector_(
- NSControl,
- NSTextView,
- Pointer<
ObjCSelector>
- NSArray control_textView_completions_forPartialWordRange_indexOfSelectedItem_(
- NSControl,
- NSTextView,
- NSArray,
- NSRange,
- Pointer<
NSInteger> ,
- bool $keepIsolateAlive = true,
override
Adds the implementation of the NSTableViewDelegate protocol to an existing
objc.ObjCProtocolBuilder. All methods that can be implemented as blocking
listeners will be.
Note: You cannot call this method after you have called builder.build.
Implementation
static void addToBuilderAsBlocking(
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_.implementAsBlocking(
builder,
tableView_didAddRowView_forRow_,
);
NSTableViewDelegate.tableView_didRemoveRowView_forRow_.implementAsBlocking(
builder,
tableView_didRemoveRowView_forRow_,
);
NSTableViewDelegate.tableView_willDisplayCell_forTableColumn_row_
.implementAsBlocking(
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_
.implementAsBlocking(
builder,
tableView_mouseDownInHeaderOfTableColumn_,
);
NSTableViewDelegate.tableView_didClickTableColumn_.implementAsBlocking(
builder,
tableView_didClickTableColumn_,
);
NSTableViewDelegate.tableView_didDragTableColumn_.implementAsBlocking(
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_
.implementAsBlocking(
builder,
tableView_userDidChangeVisibilityOfTableColumns_,
);
NSTableViewDelegate.tableViewSelectionDidChange_.implementAsBlocking(
builder,
tableViewSelectionDidChange_,
);
NSTableViewDelegate.tableViewColumnDidMove_.implementAsBlocking(
builder,
tableViewColumnDidMove_,
);
NSTableViewDelegate.tableViewColumnDidResize_.implementAsBlocking(
builder,
tableViewColumnDidResize_,
);
NSTableViewDelegate.tableViewSelectionIsChanging_.implementAsBlocking(
builder,
tableViewSelectionIsChanging_,
);
NSTableViewDelegate.controlTextDidBeginEditing_.implementAsBlocking(
builder,
controlTextDidBeginEditing_,
);
NSTableViewDelegate.controlTextDidEndEditing_.implementAsBlocking(
builder,
controlTextDidEndEditing_,
);
NSTableViewDelegate.controlTextDidChange_.implementAsBlocking(
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_
.implementAsBlocking(
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);
}