NSTextInputClient class interface
NSTextInputClient
- Implementers
Constructors
- NSTextInputClient.castFrom(ObjCObjectBase other)
-
Constructs a NSTextInputClient that points to the same underlying object as
other. -
NSTextInputClient.castFromPointer(Pointer<
ObjCObject> other, {bool retain = false, bool release = false}) - Constructs a NSTextInputClient that wraps the given raw object pointer.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- ref → ObjCObjectRef
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- $protocol → Protocol
-
Returns the
objc.Protocolobject for this protocol.no setter -
attributedString
→ ObjCProtocolMethod<
NSAttributedString Function()> -
attributedString
final
-
attributedSubstringForProposedRange_actualRange_
→ ObjCProtocolMethod<
NSAttributedString? Function(NSRange, NSRangePointer)> -
attributedSubstringForProposedRange:actualRange:
final
-
baselineDeltaForCharacterAtIndex_
→ ObjCProtocolMethod<
double Function(int display)> -
baselineDeltaForCharacterAtIndex:
final
-
characterIndexForPoint_
→ ObjCProtocolMethod<
DartNSInteger Function(NSPoint point)> -
characterIndexForPoint:
final
-
doCommandBySelector_
→ ObjCProtocolListenableMethod<
void Function(Pointer< ObjCSelector> aSelector)> -
doCommandBySelector:
final
-
documentVisibleRect
→ ObjCProtocolMethod<
CGRect Function()> -
documentVisibleRect
final
-
drawsVerticallyForCharacterAtIndex_
→ ObjCProtocolMethod<
bool Function(DartNSUInteger)> -
drawsVerticallyForCharacterAtIndex:
final
-
firstRectForCharacterRange_actualRange_
→ ObjCProtocolMethod<
NSRect Function(NSRange, NSRangePointer)> -
firstRectForCharacterRange:actualRange:
final
-
fractionOfDistanceThroughGlyphForPoint_
→ ObjCProtocolMethod<
DartCGFloat Function(NSPoint)> -
fractionOfDistanceThroughGlyphForPoint:
final
-
hasMarkedText
→ ObjCProtocolMethod<
bool Function()> -
hasMarkedText
final
-
insertAdaptiveImageGlyph_replacementRange_
→ ObjCProtocolListenableMethod<
void Function(NSAdaptiveImageGlyph, NSRange)> -
insertAdaptiveImageGlyph:replacementRange:
final
-
insertText_replacementRange_
→ ObjCProtocolListenableMethod<
void Function(ObjCObjectBase, NSRange)> -
insertText:replacementRange:
final
-
markedRange
→ ObjCProtocolMethod<
NSRange Function()> -
markedRange
final
-
preferredTextAccessoryPlacement
→ ObjCProtocolMethod<
NSTextCursorAccessoryPlacement Function()> -
preferredTextAccessoryPlacement
final
-
selectedRange
→ ObjCProtocolMethod<
NSRange Function()> -
selectedRange
final
-
setMarkedText_selectedRange_replacementRange_
→ ObjCProtocolListenableMethod<
void Function(ObjCObjectBase, NSRange, NSRange)> -
setMarkedText:selectedRange:replacementRange:
final
-
supportsAdaptiveImageGlyph
→ ObjCProtocolMethod<
bool Function()> -
supportsAdaptiveImageGlyph
final
-
unionRectInVisibleSelectedRange
→ ObjCProtocolMethod<
CGRect Function()> -
unionRectInVisibleSelectedRange
final
-
unmarkText
→ ObjCProtocolListenableMethod<
void Function()> -
unmarkText
final
-
validAttributesForMarkedText
→ ObjCProtocolMethod<
NSArray Function()> -
validAttributesForMarkedText
final
-
windowLevel
→ ObjCProtocolMethod<
int Function()> -
windowLevel
final
Static Methods
-
addToBuilder(
ObjCProtocolBuilder builder, {required void insertText_replacementRange_(ObjCObjectBase, NSRange), required void doCommandBySelector_(Pointer< ObjCSelector> aSelector), required void setMarkedText_selectedRange_replacementRange_(ObjCObjectBase, NSRange, NSRange), required void unmarkText(), required NSRange selectedRange(), required NSRange markedRange(), required bool hasMarkedText(), required NSAttributedString? attributedSubstringForProposedRange_actualRange_(NSRange, NSRangePointer), required NSArray validAttributesForMarkedText(), required NSRect firstRectForCharacterRange_actualRange_(NSRange, NSRangePointer), required DartNSInteger characterIndexForPoint_(NSPoint point), NSAttributedString attributedString()?, DartCGFloat fractionOfDistanceThroughGlyphForPoint_(NSPoint)?, DartCGFloat baselineDeltaForCharacterAtIndex_(DartNSUInteger)?, DartNSInteger windowLevel()?, bool drawsVerticallyForCharacterAtIndex_(DartNSUInteger)?, NSTextCursorAccessoryPlacement preferredTextAccessoryPlacement()?, NSRect unionRectInVisibleSelectedRange()?, NSRect documentVisibleRect()?, bool supportsAdaptiveImageGlyph()?, void insertAdaptiveImageGlyph_replacementRange_(NSAdaptiveImageGlyph, NSRange)?, bool $keepIsolateAlive = true}) → void -
Adds the implementation of the NSTextInputClient protocol to an existing
objc.ObjCProtocolBuilder. -
addToBuilderAsBlocking(
ObjCProtocolBuilder builder, {required void insertText_replacementRange_(ObjCObjectBase, NSRange), required void doCommandBySelector_(Pointer< ObjCSelector> aSelector), required void setMarkedText_selectedRange_replacementRange_(ObjCObjectBase, NSRange, NSRange), required void unmarkText(), required NSRange selectedRange(), required NSRange markedRange(), required bool hasMarkedText(), required NSAttributedString? attributedSubstringForProposedRange_actualRange_(NSRange, NSRangePointer), required NSArray validAttributesForMarkedText(), required NSRect firstRectForCharacterRange_actualRange_(NSRange, NSRangePointer), required DartNSInteger characterIndexForPoint_(NSPoint point), NSAttributedString attributedString()?, DartCGFloat fractionOfDistanceThroughGlyphForPoint_(NSPoint)?, DartCGFloat baselineDeltaForCharacterAtIndex_(DartNSUInteger)?, DartNSInteger windowLevel()?, bool drawsVerticallyForCharacterAtIndex_(DartNSUInteger)?, NSTextCursorAccessoryPlacement preferredTextAccessoryPlacement()?, NSRect unionRectInVisibleSelectedRange()?, NSRect documentVisibleRect()?, bool supportsAdaptiveImageGlyph()?, void insertAdaptiveImageGlyph_replacementRange_(NSAdaptiveImageGlyph, NSRange)?, bool $keepIsolateAlive = true}) → void -
Adds the implementation of the NSTextInputClient protocol to an existing
objc.ObjCProtocolBuilder. All methods that can be implemented as blocking listeners will be. -
addToBuilderAsListener(
ObjCProtocolBuilder builder, {required void insertText_replacementRange_(ObjCObjectBase, NSRange), required void doCommandBySelector_(Pointer< ObjCSelector> aSelector), required void setMarkedText_selectedRange_replacementRange_(ObjCObjectBase, NSRange, NSRange), required void unmarkText(), required NSRange selectedRange(), required NSRange markedRange(), required bool hasMarkedText(), required NSAttributedString? attributedSubstringForProposedRange_actualRange_(NSRange, NSRangePointer), required NSArray validAttributesForMarkedText(), required NSRect firstRectForCharacterRange_actualRange_(NSRange, NSRangePointer), required DartNSInteger characterIndexForPoint_(NSPoint point), NSAttributedString attributedString()?, DartCGFloat fractionOfDistanceThroughGlyphForPoint_(NSPoint)?, DartCGFloat baselineDeltaForCharacterAtIndex_(DartNSUInteger)?, DartNSInteger windowLevel()?, bool drawsVerticallyForCharacterAtIndex_(DartNSUInteger)?, NSTextCursorAccessoryPlacement preferredTextAccessoryPlacement()?, NSRect unionRectInVisibleSelectedRange()?, NSRect documentVisibleRect()?, bool supportsAdaptiveImageGlyph()?, void insertAdaptiveImageGlyph_replacementRange_(NSAdaptiveImageGlyph, NSRange)?, bool $keepIsolateAlive = true}) → void -
Adds the implementation of the NSTextInputClient protocol to an existing
objc.ObjCProtocolBuilder. All methods that can be implemented as listeners will be. -
conformsTo(
ObjCObjectBase obj) → bool -
Returns whether
objis an instance of NSTextInputClient. -
implement(
{required void insertText_replacementRange_(ObjCObjectBase, NSRange), required void doCommandBySelector_(Pointer< ObjCSelector> aSelector), required void setMarkedText_selectedRange_replacementRange_(ObjCObjectBase, NSRange, NSRange), required void unmarkText(), required NSRange selectedRange(), required NSRange markedRange(), required bool hasMarkedText(), required NSAttributedString? attributedSubstringForProposedRange_actualRange_(NSRange, NSRangePointer), required NSArray validAttributesForMarkedText(), required NSRect firstRectForCharacterRange_actualRange_(NSRange, NSRangePointer), required DartNSInteger characterIndexForPoint_(NSPoint point), NSAttributedString attributedString()?, DartCGFloat fractionOfDistanceThroughGlyphForPoint_(NSPoint)?, DartCGFloat baselineDeltaForCharacterAtIndex_(DartNSUInteger)?, DartNSInteger windowLevel()?, bool drawsVerticallyForCharacterAtIndex_(DartNSUInteger)?, NSTextCursorAccessoryPlacement preferredTextAccessoryPlacement()?, NSRect unionRectInVisibleSelectedRange()?, NSRect documentVisibleRect()?, bool supportsAdaptiveImageGlyph()?, void insertAdaptiveImageGlyph_replacementRange_(NSAdaptiveImageGlyph, NSRange)?, bool $keepIsolateAlive = true}) → NSTextInputClient -
Builds an object that implements the NSTextInputClient protocol. To implement
multiple protocols, use addToBuilder or
objc.ObjCProtocolBuilderdirectly. -
implementAsBlocking(
{required void insertText_replacementRange_(ObjCObjectBase, NSRange), required void doCommandBySelector_(Pointer< ObjCSelector> aSelector), required void setMarkedText_selectedRange_replacementRange_(ObjCObjectBase, NSRange, NSRange), required void unmarkText(), required NSRange selectedRange(), required NSRange markedRange(), required bool hasMarkedText(), required NSAttributedString? attributedSubstringForProposedRange_actualRange_(NSRange, NSRangePointer), required NSArray validAttributesForMarkedText(), required NSRect firstRectForCharacterRange_actualRange_(NSRange, NSRangePointer), required DartNSInteger characterIndexForPoint_(NSPoint point), NSAttributedString attributedString()?, DartCGFloat fractionOfDistanceThroughGlyphForPoint_(NSPoint)?, DartCGFloat baselineDeltaForCharacterAtIndex_(DartNSUInteger)?, DartNSInteger windowLevel()?, bool drawsVerticallyForCharacterAtIndex_(DartNSUInteger)?, NSTextCursorAccessoryPlacement preferredTextAccessoryPlacement()?, NSRect unionRectInVisibleSelectedRange()?, NSRect documentVisibleRect()?, bool supportsAdaptiveImageGlyph()?, void insertAdaptiveImageGlyph_replacementRange_(NSAdaptiveImageGlyph, NSRange)?, bool $keepIsolateAlive = true}) → NSTextInputClient -
Builds an object that implements the NSTextInputClient protocol. To implement
multiple protocols, use addToBuilder or
objc.ObjCProtocolBuilderdirectly. All methods that can be implemented as blocking listeners will be. -
implementAsListener(
{required void insertText_replacementRange_(ObjCObjectBase, NSRange), required void doCommandBySelector_(Pointer< ObjCSelector> aSelector), required void setMarkedText_selectedRange_replacementRange_(ObjCObjectBase, NSRange, NSRange), required void unmarkText(), required NSRange selectedRange(), required NSRange markedRange(), required bool hasMarkedText(), required NSAttributedString? attributedSubstringForProposedRange_actualRange_(NSRange, NSRangePointer), required NSArray validAttributesForMarkedText(), required NSRect firstRectForCharacterRange_actualRange_(NSRange, NSRangePointer), required DartNSInteger characterIndexForPoint_(NSPoint point), NSAttributedString attributedString()?, DartCGFloat fractionOfDistanceThroughGlyphForPoint_(NSPoint)?, DartCGFloat baselineDeltaForCharacterAtIndex_(DartNSUInteger)?, DartNSInteger windowLevel()?, bool drawsVerticallyForCharacterAtIndex_(DartNSUInteger)?, NSTextCursorAccessoryPlacement preferredTextAccessoryPlacement()?, NSRect unionRectInVisibleSelectedRange()?, NSRect documentVisibleRect()?, bool supportsAdaptiveImageGlyph()?, void insertAdaptiveImageGlyph_replacementRange_(NSAdaptiveImageGlyph, NSRange)?, bool $keepIsolateAlive = true}) → NSTextInputClient -
Builds an object that implements the NSTextInputClient protocol. To implement
multiple protocols, use addToBuilder or
objc.ObjCProtocolBuilderdirectly. All methods that can be implemented as listeners will be.