addToBuilderAsBlocking static method
void
addToBuilderAsBlocking(
- ObjCProtocolBuilder builder, {
- required NSAttributedString? annotatedSubstringForProposedRange_actualRange_(),
- required void setAnnotations_range_(
- NSDictionary,
- NSRange
- required void addAnnotations_range_(
- NSDictionary,
- NSRange
- required void removeAnnotation_range_(),
- required void replaceCharactersInRange_withAnnotatedString_(),
- required void selectAndShowRange_(
- NSRange range
- required NSView? viewForRange_firstRect_actualRange_(),
- required NSCandidateListTouchBarItem? candidateListTouchBarItem(),
- required void insertText_replacementRange_(
- ObjCObjectBase,
- NSRange
- required void doCommandBySelector_(
- Pointer<
ObjCSelector> aSelector
- Pointer<
- required void setMarkedText_selectedRange_replacementRange_(),
- required void unmarkText(),
- required NSRange selectedRange(),
- required NSRange markedRange(),
- required bool hasMarkedText(),
- required NSAttributedString? attributedSubstringForProposedRange_actualRange_(),
- required NSArray validAttributesForMarkedText(),
- required NSRect firstRectForCharacterRange_actualRange_(),
- required DartNSInteger characterIndexForPoint_(
- NSPoint point
- NSAttributedString attributedString()?,
- DartCGFloat fractionOfDistanceThroughGlyphForPoint_()?,
- DartCGFloat baselineDeltaForCharacterAtIndex_()?,
- DartNSInteger windowLevel()?,
- bool drawsVerticallyForCharacterAtIndex_()?,
- NSTextCursorAccessoryPlacement preferredTextAccessoryPlacement()?,
- NSRect unionRectInVisibleSelectedRange()?,
- NSRect documentVisibleRect()?,
- bool supportsAdaptiveImageGlyph()?,
- void insertAdaptiveImageGlyph_replacementRange_()?,
- NSTextInputTraitType autocorrectionType()?,
- void setAutocorrectionType_()?,
- NSTextInputTraitType spellCheckingType()?,
- void setSpellCheckingType_()?,
- NSTextInputTraitType grammarCheckingType()?,
- void setGrammarCheckingType_()?,
- NSTextInputTraitType smartQuotesType()?,
- void setSmartQuotesType_()?,
- NSTextInputTraitType smartDashesType()?,
- void setSmartDashesType_()?,
- NSTextInputTraitType smartInsertDeleteType()?,
- void setSmartInsertDeleteType_()?,
- NSTextInputTraitType textReplacementType()?,
- void setTextReplacementType_()?,
- NSTextInputTraitType dataDetectionType()?,
- void setDataDetectionType_()?,
- NSTextInputTraitType linkDetectionType()?,
- void setLinkDetectionType_()?,
- NSTextInputTraitType textCompletionType()?,
- void setTextCompletionType_()?,
- NSTextInputTraitType inlinePredictionType()?,
- void setInlinePredictionType_()?,
- NSTextInputTraitType mathExpressionCompletionType()?,
- void setMathExpressionCompletionType_()?,
- NSWritingToolsBehavior writingToolsBehavior()?,
- void setWritingToolsBehavior_()?,
- NSWritingToolsResultOptions allowedWritingToolsResultOptions()?,
- void setAllowedWritingToolsResultOptions_()?,
- bool $keepIsolateAlive = true,
override
Adds the implementation of the NSTextCheckingClient 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, {
required NSAttributedString? Function(NSRange, NSRangePointer)
annotatedSubstringForProposedRange_actualRange_,
required void Function(objc.NSDictionary, NSRange) setAnnotations_range_,
required void Function(objc.NSDictionary, NSRange) addAnnotations_range_,
required void Function(DartNSAttributedStringKey, NSRange)
removeAnnotation_range_,
required void Function(NSRange, NSAttributedString)
replaceCharactersInRange_withAnnotatedString_,
required void Function(NSRange) selectAndShowRange_,
required NSView? Function(NSRange, NSRectPointer, NSRangePointer)
viewForRange_firstRect_actualRange_,
required NSCandidateListTouchBarItem? Function() candidateListTouchBarItem,
required void Function(objc.ObjCObjectBase, NSRange)
insertText_replacementRange_,
required void Function(ffi.Pointer<objc.ObjCSelector>) doCommandBySelector_,
required void Function(objc.ObjCObjectBase, NSRange, NSRange)
setMarkedText_selectedRange_replacementRange_,
required void Function() unmarkText,
required NSRange Function() selectedRange,
required NSRange Function() markedRange,
required bool Function() hasMarkedText,
required NSAttributedString? Function(NSRange, NSRangePointer)
attributedSubstringForProposedRange_actualRange_,
required objc.NSArray Function() validAttributesForMarkedText,
required NSRect Function(NSRange, NSRangePointer)
firstRectForCharacterRange_actualRange_,
required DartNSUInteger Function(NSPoint) characterIndexForPoint_,
NSAttributedString Function()? attributedString,
DartCGFloat Function(NSPoint)? fractionOfDistanceThroughGlyphForPoint_,
DartCGFloat Function(DartNSUInteger)? baselineDeltaForCharacterAtIndex_,
DartNSInteger Function()? windowLevel,
bool Function(DartNSUInteger)? drawsVerticallyForCharacterAtIndex_,
NSTextCursorAccessoryPlacement Function()? preferredTextAccessoryPlacement,
NSRect Function()? unionRectInVisibleSelectedRange,
NSRect Function()? documentVisibleRect,
bool Function()? supportsAdaptiveImageGlyph,
void Function(NSAdaptiveImageGlyph, NSRange)?
insertAdaptiveImageGlyph_replacementRange_,
NSTextInputTraitType Function()? autocorrectionType,
void Function(NSTextInputTraitType)? setAutocorrectionType_,
NSTextInputTraitType Function()? spellCheckingType,
void Function(NSTextInputTraitType)? setSpellCheckingType_,
NSTextInputTraitType Function()? grammarCheckingType,
void Function(NSTextInputTraitType)? setGrammarCheckingType_,
NSTextInputTraitType Function()? smartQuotesType,
void Function(NSTextInputTraitType)? setSmartQuotesType_,
NSTextInputTraitType Function()? smartDashesType,
void Function(NSTextInputTraitType)? setSmartDashesType_,
NSTextInputTraitType Function()? smartInsertDeleteType,
void Function(NSTextInputTraitType)? setSmartInsertDeleteType_,
NSTextInputTraitType Function()? textReplacementType,
void Function(NSTextInputTraitType)? setTextReplacementType_,
NSTextInputTraitType Function()? dataDetectionType,
void Function(NSTextInputTraitType)? setDataDetectionType_,
NSTextInputTraitType Function()? linkDetectionType,
void Function(NSTextInputTraitType)? setLinkDetectionType_,
NSTextInputTraitType Function()? textCompletionType,
void Function(NSTextInputTraitType)? setTextCompletionType_,
NSTextInputTraitType Function()? inlinePredictionType,
void Function(NSTextInputTraitType)? setInlinePredictionType_,
NSTextInputTraitType Function()? mathExpressionCompletionType,
void Function(NSTextInputTraitType)? setMathExpressionCompletionType_,
NSWritingToolsBehavior Function()? writingToolsBehavior,
void Function(NSWritingToolsBehavior)? setWritingToolsBehavior_,
NSWritingToolsResultOptions Function()? allowedWritingToolsResultOptions,
void Function(NSWritingToolsResultOptions)?
setAllowedWritingToolsResultOptions_,
bool $keepIsolateAlive = true,
}) {
NSTextCheckingClient.annotatedSubstringForProposedRange_actualRange_
.implement(builder, annotatedSubstringForProposedRange_actualRange_);
NSTextCheckingClient.setAnnotations_range_.implementAsBlocking(
builder,
setAnnotations_range_,
);
NSTextCheckingClient.addAnnotations_range_.implementAsBlocking(
builder,
addAnnotations_range_,
);
NSTextCheckingClient.removeAnnotation_range_.implementAsBlocking(
builder,
removeAnnotation_range_,
);
NSTextCheckingClient.replaceCharactersInRange_withAnnotatedString_
.implementAsBlocking(
builder,
replaceCharactersInRange_withAnnotatedString_,
);
NSTextCheckingClient.selectAndShowRange_.implementAsBlocking(
builder,
selectAndShowRange_,
);
NSTextCheckingClient.viewForRange_firstRect_actualRange_.implement(
builder,
viewForRange_firstRect_actualRange_,
);
NSTextCheckingClient.candidateListTouchBarItem.implement(
builder,
candidateListTouchBarItem,
);
NSTextCheckingClient.insertText_replacementRange_.implementAsBlocking(
builder,
insertText_replacementRange_,
);
NSTextCheckingClient.doCommandBySelector_.implementAsBlocking(
builder,
doCommandBySelector_,
);
NSTextCheckingClient.setMarkedText_selectedRange_replacementRange_
.implementAsBlocking(
builder,
setMarkedText_selectedRange_replacementRange_,
);
NSTextCheckingClient.unmarkText.implementAsBlocking(builder, unmarkText);
NSTextCheckingClient.selectedRange.implement(builder, selectedRange);
NSTextCheckingClient.markedRange.implement(builder, markedRange);
NSTextCheckingClient.hasMarkedText.implement(builder, hasMarkedText);
NSTextCheckingClient.attributedSubstringForProposedRange_actualRange_
.implement(builder, attributedSubstringForProposedRange_actualRange_);
NSTextCheckingClient.validAttributesForMarkedText.implement(
builder,
validAttributesForMarkedText,
);
NSTextCheckingClient.firstRectForCharacterRange_actualRange_.implement(
builder,
firstRectForCharacterRange_actualRange_,
);
NSTextCheckingClient.characterIndexForPoint_.implement(
builder,
characterIndexForPoint_,
);
NSTextCheckingClient.attributedString.implement(builder, attributedString);
NSTextCheckingClient.fractionOfDistanceThroughGlyphForPoint_.implement(
builder,
fractionOfDistanceThroughGlyphForPoint_,
);
NSTextCheckingClient.baselineDeltaForCharacterAtIndex_.implement(
builder,
baselineDeltaForCharacterAtIndex_,
);
NSTextCheckingClient.windowLevel.implement(builder, windowLevel);
NSTextCheckingClient.drawsVerticallyForCharacterAtIndex_.implement(
builder,
drawsVerticallyForCharacterAtIndex_,
);
NSTextCheckingClient.preferredTextAccessoryPlacement.implement(
builder,
preferredTextAccessoryPlacement,
);
NSTextCheckingClient.unionRectInVisibleSelectedRange.implement(
builder,
unionRectInVisibleSelectedRange,
);
NSTextCheckingClient.documentVisibleRect.implement(
builder,
documentVisibleRect,
);
NSTextCheckingClient.supportsAdaptiveImageGlyph.implement(
builder,
supportsAdaptiveImageGlyph,
);
NSTextCheckingClient.insertAdaptiveImageGlyph_replacementRange_
.implementAsBlocking(
builder,
insertAdaptiveImageGlyph_replacementRange_,
);
NSTextCheckingClient.autocorrectionType.implement(
builder,
autocorrectionType,
);
NSTextCheckingClient.setAutocorrectionType_.implementAsBlocking(
builder,
setAutocorrectionType_,
);
NSTextCheckingClient.spellCheckingType.implement(
builder,
spellCheckingType,
);
NSTextCheckingClient.setSpellCheckingType_.implementAsBlocking(
builder,
setSpellCheckingType_,
);
NSTextCheckingClient.grammarCheckingType.implement(
builder,
grammarCheckingType,
);
NSTextCheckingClient.setGrammarCheckingType_.implementAsBlocking(
builder,
setGrammarCheckingType_,
);
NSTextCheckingClient.smartQuotesType.implement(builder, smartQuotesType);
NSTextCheckingClient.setSmartQuotesType_.implementAsBlocking(
builder,
setSmartQuotesType_,
);
NSTextCheckingClient.smartDashesType.implement(builder, smartDashesType);
NSTextCheckingClient.setSmartDashesType_.implementAsBlocking(
builder,
setSmartDashesType_,
);
NSTextCheckingClient.smartInsertDeleteType.implement(
builder,
smartInsertDeleteType,
);
NSTextCheckingClient.setSmartInsertDeleteType_.implementAsBlocking(
builder,
setSmartInsertDeleteType_,
);
NSTextCheckingClient.textReplacementType.implement(
builder,
textReplacementType,
);
NSTextCheckingClient.setTextReplacementType_.implementAsBlocking(
builder,
setTextReplacementType_,
);
NSTextCheckingClient.dataDetectionType.implement(
builder,
dataDetectionType,
);
NSTextCheckingClient.setDataDetectionType_.implementAsBlocking(
builder,
setDataDetectionType_,
);
NSTextCheckingClient.linkDetectionType.implement(
builder,
linkDetectionType,
);
NSTextCheckingClient.setLinkDetectionType_.implementAsBlocking(
builder,
setLinkDetectionType_,
);
NSTextCheckingClient.textCompletionType.implement(
builder,
textCompletionType,
);
NSTextCheckingClient.setTextCompletionType_.implementAsBlocking(
builder,
setTextCompletionType_,
);
NSTextCheckingClient.inlinePredictionType.implement(
builder,
inlinePredictionType,
);
NSTextCheckingClient.setInlinePredictionType_.implementAsBlocking(
builder,
setInlinePredictionType_,
);
NSTextCheckingClient.mathExpressionCompletionType.implement(
builder,
mathExpressionCompletionType,
);
NSTextCheckingClient.setMathExpressionCompletionType_.implementAsBlocking(
builder,
setMathExpressionCompletionType_,
);
NSTextCheckingClient.writingToolsBehavior.implement(
builder,
writingToolsBehavior,
);
NSTextCheckingClient.setWritingToolsBehavior_.implementAsBlocking(
builder,
setWritingToolsBehavior_,
);
NSTextCheckingClient.allowedWritingToolsResultOptions.implement(
builder,
allowedWritingToolsResultOptions,
);
NSTextCheckingClient.setAllowedWritingToolsResultOptions_
.implementAsBlocking(builder, setAllowedWritingToolsResultOptions_);
builder.addProtocol($protocol);
}