addToBuilder static method
void
addToBuilder(
- ObjCProtocolBuilder builder, {
- NSArray? tokenField_completionsForSubstring_indexOfToken_indexOfSelectedItem_(
- NSTokenField,
- NSString,
- DartNSInteger,
- Pointer<
NSInteger> ,
- NSArray tokenField_shouldAddObjects_atIndex_(
- NSTokenField,
- NSArray,
- DartNSUInteger
- NSString? tokenField_displayStringForRepresentedObject_(
- NSTokenField,
- ObjCObjectBase
- NSString? tokenField_editingStringForRepresentedObject_(
- NSTokenField,
- ObjCObjectBase
- ObjCObjectBase? tokenField_representedObjectForEditingString_(
- NSTokenField,
- NSString
- bool tokenField_writeRepresentedObjects_toPasteboard_(
- NSTokenField,
- NSArray,
- NSPasteboard
- NSArray? tokenField_readFromPasteboard_()?,
- bool tokenField_hasMenuForRepresentedObject_(
- NSTokenField,
- ObjCObjectBase
- NSTokenStyle tokenField_styleForRepresentedObject_(
- NSTokenField,
- ObjCObjectBase
- NSArray? textField_textView_candidatesForSelectedRange_()?,
- NSArray textField_textView_candidates_forSelectedRange_(
- NSTextField,
- NSTextView,
- NSArray,
- NSRange,
- bool textField_textView_shouldSelectCandidateAtIndex_()?,
- 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 NSTokenFieldDelegate 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, {
objc.NSArray? Function(
NSTokenField,
objc.NSString,
DartNSInteger,
ffi.Pointer<NSInteger>,
)?
tokenField_completionsForSubstring_indexOfToken_indexOfSelectedItem_,
objc.NSArray Function(NSTokenField, objc.NSArray, DartNSUInteger)?
tokenField_shouldAddObjects_atIndex_,
objc.NSString? Function(NSTokenField, objc.ObjCObjectBase)?
tokenField_displayStringForRepresentedObject_,
objc.NSString? Function(NSTokenField, objc.ObjCObjectBase)?
tokenField_editingStringForRepresentedObject_,
objc.ObjCObjectBase? Function(NSTokenField, objc.NSString)?
tokenField_representedObjectForEditingString_,
bool Function(NSTokenField, objc.NSArray, NSPasteboard)?
tokenField_writeRepresentedObjects_toPasteboard_,
objc.NSArray? Function(NSTokenField, NSPasteboard)?
tokenField_readFromPasteboard_,
NSMenu? Function(NSTokenField, objc.ObjCObjectBase)?
tokenField_menuForRepresentedObject_,
bool Function(NSTokenField, objc.ObjCObjectBase)?
tokenField_hasMenuForRepresentedObject_,
NSTokenStyle Function(NSTokenField, objc.ObjCObjectBase)?
tokenField_styleForRepresentedObject_,
objc.NSArray? Function(NSTextField, NSTextView, NSRange)?
textField_textView_candidatesForSelectedRange_,
objc.NSArray Function(NSTextField, NSTextView, objc.NSArray, NSRange)?
textField_textView_candidates_forSelectedRange_,
bool Function(NSTextField, NSTextView, DartNSUInteger)?
textField_textView_shouldSelectCandidateAtIndex_,
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,
}) {
NSTokenFieldDelegate
.tokenField_completionsForSubstring_indexOfToken_indexOfSelectedItem_
.implement(
builder,
tokenField_completionsForSubstring_indexOfToken_indexOfSelectedItem_,
);
NSTokenFieldDelegate.tokenField_shouldAddObjects_atIndex_.implement(
builder,
tokenField_shouldAddObjects_atIndex_,
);
NSTokenFieldDelegate.tokenField_displayStringForRepresentedObject_
.implement(builder, tokenField_displayStringForRepresentedObject_);
NSTokenFieldDelegate.tokenField_editingStringForRepresentedObject_
.implement(builder, tokenField_editingStringForRepresentedObject_);
NSTokenFieldDelegate.tokenField_representedObjectForEditingString_
.implement(builder, tokenField_representedObjectForEditingString_);
NSTokenFieldDelegate.tokenField_writeRepresentedObjects_toPasteboard_
.implement(builder, tokenField_writeRepresentedObjects_toPasteboard_);
NSTokenFieldDelegate.tokenField_readFromPasteboard_.implement(
builder,
tokenField_readFromPasteboard_,
);
NSTokenFieldDelegate.tokenField_menuForRepresentedObject_.implement(
builder,
tokenField_menuForRepresentedObject_,
);
NSTokenFieldDelegate.tokenField_hasMenuForRepresentedObject_.implement(
builder,
tokenField_hasMenuForRepresentedObject_,
);
NSTokenFieldDelegate.tokenField_styleForRepresentedObject_.implement(
builder,
tokenField_styleForRepresentedObject_,
);
NSTokenFieldDelegate.textField_textView_candidatesForSelectedRange_
.implement(builder, textField_textView_candidatesForSelectedRange_);
NSTokenFieldDelegate.textField_textView_candidates_forSelectedRange_
.implement(builder, textField_textView_candidates_forSelectedRange_);
NSTokenFieldDelegate.textField_textView_shouldSelectCandidateAtIndex_
.implement(builder, textField_textView_shouldSelectCandidateAtIndex_);
NSTokenFieldDelegate.controlTextDidBeginEditing_.implement(
builder,
controlTextDidBeginEditing_,
);
NSTokenFieldDelegate.controlTextDidEndEditing_.implement(
builder,
controlTextDidEndEditing_,
);
NSTokenFieldDelegate.controlTextDidChange_.implement(
builder,
controlTextDidChange_,
);
NSTokenFieldDelegate.control_textShouldBeginEditing_.implement(
builder,
control_textShouldBeginEditing_,
);
NSTokenFieldDelegate.control_textShouldEndEditing_.implement(
builder,
control_textShouldEndEditing_,
);
NSTokenFieldDelegate.control_didFailToFormatString_errorDescription_
.implement(builder, control_didFailToFormatString_errorDescription_);
NSTokenFieldDelegate
.control_didFailToValidatePartialString_errorDescription_
.implement(
builder,
control_didFailToValidatePartialString_errorDescription_,
);
NSTokenFieldDelegate.control_isValidObject_.implement(
builder,
control_isValidObject_,
);
NSTokenFieldDelegate.control_textView_doCommandBySelector_.implement(
builder,
control_textView_doCommandBySelector_,
);
NSTokenFieldDelegate
.control_textView_completions_forPartialWordRange_indexOfSelectedItem_
.implement(
builder,
control_textView_completions_forPartialWordRange_indexOfSelectedItem_,
);
builder.addProtocol($protocol);
}