NSTextSelectionDataSource class interface
NSTextSelectionDataSource
- Implementers
Constructors
- NSTextSelectionDataSource.castFrom(ObjCObjectBase other)
-
Constructs a NSTextSelectionDataSource that points to the same underlying object as
other. -
NSTextSelectionDataSource.castFromPointer(Pointer<
ObjCObject> other, {bool retain = false, bool release = false}) - Constructs a NSTextSelectionDataSource 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 -
baseWritingDirectionAtLocation_
→ ObjCProtocolMethod<
NSTextSelectionNavigationWritingDirection Function(NSTextLocation)> -
baseWritingDirectionAtLocation:
final
-
documentRange
→ ObjCProtocolMethod<
NSTextRange Function()> -
documentRange
final
-
enumerateCaretOffsetsInLineFragmentAtLocation_usingBlock_
→ ObjCProtocolListenableMethod<
void Function(NSTextLocation, ObjCBlock< Void Function(Double, Pointer< )>ObjCObject> , Bool, Pointer<Bool> )> -
enumerateCaretOffsetsInLineFragmentAtLocation:usingBlock:
final
-
enumerateContainerBoundariesFromLocation_reverse_usingBlock_
→ ObjCProtocolListenableMethod<
void Function(NSTextLocation, bool, ObjCBlock< Void Function(Pointer< )>ObjCObject> , Pointer<Bool> )> -
enumerateContainerBoundariesFromLocation:reverse:usingBlock:
final
-
enumerateSubstringsFromLocation_options_usingBlock_
→ ObjCProtocolListenableMethod<
void Function(NSTextLocation, NSStringEnumerationOptions, ObjCBlock< Void Function(NSString?, NSTextRange, NSTextRange?, Pointer< )>Bool> )> -
enumerateSubstringsFromLocation:options:usingBlock:
final
-
lineFragmentRangeForPoint_inContainerAtLocation_
→ ObjCProtocolMethod<
NSTextRange? Function(CGPoint, NSTextLocation)> -
lineFragmentRangeForPoint:inContainerAtLocation:
final
-
locationFromLocation_withOffset_
→ ObjCProtocolMethod<
NSTextLocation? Function(NSTextLocation, DartNSInteger)> -
locationFromLocation:withOffset:
final
-
offsetFromLocation_toLocation_
→ ObjCProtocolMethod<
DartNSInteger Function(NSTextLocation, NSTextLocation)> -
offsetFromLocation:toLocation:
final
-
textLayoutOrientationAtLocation_
→ ObjCProtocolMethod<
NSTextSelectionNavigationLayoutOrientation Function(NSTextLocation)> -
textLayoutOrientationAtLocation:
final
-
textRangeForSelectionGranularity_enclosingLocation_
→ ObjCProtocolMethod<
NSTextRange? Function(NSTextSelectionGranularity, NSTextLocation)> -
textRangeForSelectionGranularity:enclosingLocation:
final
Static Methods
-
addToBuilder(
ObjCProtocolBuilder builder, {required NSTextRange documentRange(), required void enumerateSubstringsFromLocation_options_usingBlock_(NSTextLocation, NSStringEnumerationOptions, ObjCBlock< Void Function(NSString?, NSTextRange, NSTextRange?, Pointer< ), required NSTextRange? textRangeForSelectionGranularity_enclosingLocation_(NSTextSelectionGranularity, NSTextLocation), required NSTextLocation? locationFromLocation_withOffset_(NSTextLocation, DartNSInteger), required DartNSInteger offsetFromLocation_toLocation_(NSTextLocation, NSTextLocation), required NSTextSelectionNavigationWritingDirection baseWritingDirectionAtLocation_(NSTextLocation), required void enumerateCaretOffsetsInLineFragmentAtLocation_usingBlock_(NSTextLocation, ObjCBlock<Bool> )>Void Function(Double, Pointer< ), required NSTextRange? lineFragmentRangeForPoint_inContainerAtLocation_(CGPoint, NSTextLocation), void enumerateContainerBoundariesFromLocation_reverse_usingBlock_(NSTextLocation, bool, ObjCBlock<ObjCObject> , Bool, Pointer<Bool> )>Void Function(Pointer< )?, NSTextSelectionNavigationLayoutOrientation textLayoutOrientationAtLocation_(NSTextLocation)?, bool $keepIsolateAlive = true}) → voidObjCObject> , Pointer<Bool> )> -
Adds the implementation of the NSTextSelectionDataSource protocol to an existing
objc.ObjCProtocolBuilder. -
addToBuilderAsBlocking(
ObjCProtocolBuilder builder, {required NSTextRange documentRange(), required void enumerateSubstringsFromLocation_options_usingBlock_(NSTextLocation, NSStringEnumerationOptions, ObjCBlock< Void Function(NSString?, NSTextRange, NSTextRange?, Pointer< ), required NSTextRange? textRangeForSelectionGranularity_enclosingLocation_(NSTextSelectionGranularity, NSTextLocation), required NSTextLocation? locationFromLocation_withOffset_(NSTextLocation, DartNSInteger), required DartNSInteger offsetFromLocation_toLocation_(NSTextLocation, NSTextLocation), required NSTextSelectionNavigationWritingDirection baseWritingDirectionAtLocation_(NSTextLocation), required void enumerateCaretOffsetsInLineFragmentAtLocation_usingBlock_(NSTextLocation, ObjCBlock<Bool> )>Void Function(Double, Pointer< ), required NSTextRange? lineFragmentRangeForPoint_inContainerAtLocation_(CGPoint, NSTextLocation), void enumerateContainerBoundariesFromLocation_reverse_usingBlock_(NSTextLocation, bool, ObjCBlock<ObjCObject> , Bool, Pointer<Bool> )>Void Function(Pointer< )?, NSTextSelectionNavigationLayoutOrientation textLayoutOrientationAtLocation_(NSTextLocation)?, bool $keepIsolateAlive = true}) → voidObjCObject> , Pointer<Bool> )> -
Adds the implementation of the NSTextSelectionDataSource protocol to an existing
objc.ObjCProtocolBuilder. All methods that can be implemented as blocking listeners will be. -
addToBuilderAsListener(
ObjCProtocolBuilder builder, {required NSTextRange documentRange(), required void enumerateSubstringsFromLocation_options_usingBlock_(NSTextLocation, NSStringEnumerationOptions, ObjCBlock< Void Function(NSString?, NSTextRange, NSTextRange?, Pointer< ), required NSTextRange? textRangeForSelectionGranularity_enclosingLocation_(NSTextSelectionGranularity, NSTextLocation), required NSTextLocation? locationFromLocation_withOffset_(NSTextLocation, DartNSInteger), required DartNSInteger offsetFromLocation_toLocation_(NSTextLocation, NSTextLocation), required NSTextSelectionNavigationWritingDirection baseWritingDirectionAtLocation_(NSTextLocation), required void enumerateCaretOffsetsInLineFragmentAtLocation_usingBlock_(NSTextLocation, ObjCBlock<Bool> )>Void Function(Double, Pointer< ), required NSTextRange? lineFragmentRangeForPoint_inContainerAtLocation_(CGPoint, NSTextLocation), void enumerateContainerBoundariesFromLocation_reverse_usingBlock_(NSTextLocation, bool, ObjCBlock<ObjCObject> , Bool, Pointer<Bool> )>Void Function(Pointer< )?, NSTextSelectionNavigationLayoutOrientation textLayoutOrientationAtLocation_(NSTextLocation)?, bool $keepIsolateAlive = true}) → voidObjCObject> , Pointer<Bool> )> -
Adds the implementation of the NSTextSelectionDataSource 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 NSTextSelectionDataSource. -
implement(
{required NSTextRange documentRange(), required void enumerateSubstringsFromLocation_options_usingBlock_(NSTextLocation, NSStringEnumerationOptions, ObjCBlock< Void Function(NSString?, NSTextRange, NSTextRange?, Pointer< ), required NSTextRange? textRangeForSelectionGranularity_enclosingLocation_(NSTextSelectionGranularity, NSTextLocation), required NSTextLocation? locationFromLocation_withOffset_(NSTextLocation, DartNSInteger), required DartNSInteger offsetFromLocation_toLocation_(NSTextLocation, NSTextLocation), required NSTextSelectionNavigationWritingDirection baseWritingDirectionAtLocation_(NSTextLocation), required void enumerateCaretOffsetsInLineFragmentAtLocation_usingBlock_(NSTextLocation, ObjCBlock<Bool> )>Void Function(Double, Pointer< ), required NSTextRange? lineFragmentRangeForPoint_inContainerAtLocation_(CGPoint, NSTextLocation), void enumerateContainerBoundariesFromLocation_reverse_usingBlock_(NSTextLocation, bool, ObjCBlock<ObjCObject> , Bool, Pointer<Bool> )>Void Function(Pointer< )?, NSTextSelectionNavigationLayoutOrientation textLayoutOrientationAtLocation_(NSTextLocation)?, bool $keepIsolateAlive = true}) → NSTextSelectionDataSourceObjCObject> , Pointer<Bool> )> -
Builds an object that implements the NSTextSelectionDataSource protocol. To implement
multiple protocols, use addToBuilder or
objc.ObjCProtocolBuilderdirectly. -
implementAsBlocking(
{required NSTextRange documentRange(), required void enumerateSubstringsFromLocation_options_usingBlock_(NSTextLocation, NSStringEnumerationOptions, ObjCBlock< Void Function(NSString?, NSTextRange, NSTextRange?, Pointer< ), required NSTextRange? textRangeForSelectionGranularity_enclosingLocation_(NSTextSelectionGranularity, NSTextLocation), required NSTextLocation? locationFromLocation_withOffset_(NSTextLocation, DartNSInteger), required DartNSInteger offsetFromLocation_toLocation_(NSTextLocation, NSTextLocation), required NSTextSelectionNavigationWritingDirection baseWritingDirectionAtLocation_(NSTextLocation), required void enumerateCaretOffsetsInLineFragmentAtLocation_usingBlock_(NSTextLocation, ObjCBlock<Bool> )>Void Function(Double, Pointer< ), required NSTextRange? lineFragmentRangeForPoint_inContainerAtLocation_(CGPoint, NSTextLocation), void enumerateContainerBoundariesFromLocation_reverse_usingBlock_(NSTextLocation, bool, ObjCBlock<ObjCObject> , Bool, Pointer<Bool> )>Void Function(Pointer< )?, NSTextSelectionNavigationLayoutOrientation textLayoutOrientationAtLocation_(NSTextLocation)?, bool $keepIsolateAlive = true}) → NSTextSelectionDataSourceObjCObject> , Pointer<Bool> )> -
Builds an object that implements the NSTextSelectionDataSource protocol. To implement
multiple protocols, use addToBuilder or
objc.ObjCProtocolBuilderdirectly. All methods that can be implemented as blocking listeners will be. -
implementAsListener(
{required NSTextRange documentRange(), required void enumerateSubstringsFromLocation_options_usingBlock_(NSTextLocation, NSStringEnumerationOptions, ObjCBlock< Void Function(NSString?, NSTextRange, NSTextRange?, Pointer< ), required NSTextRange? textRangeForSelectionGranularity_enclosingLocation_(NSTextSelectionGranularity, NSTextLocation), required NSTextLocation? locationFromLocation_withOffset_(NSTextLocation, DartNSInteger), required DartNSInteger offsetFromLocation_toLocation_(NSTextLocation, NSTextLocation), required NSTextSelectionNavigationWritingDirection baseWritingDirectionAtLocation_(NSTextLocation), required void enumerateCaretOffsetsInLineFragmentAtLocation_usingBlock_(NSTextLocation, ObjCBlock<Bool> )>Void Function(Double, Pointer< ), required NSTextRange? lineFragmentRangeForPoint_inContainerAtLocation_(CGPoint, NSTextLocation), void enumerateContainerBoundariesFromLocation_reverse_usingBlock_(NSTextLocation, bool, ObjCBlock<ObjCObject> , Bool, Pointer<Bool> )>Void Function(Pointer< )?, NSTextSelectionNavigationLayoutOrientation textLayoutOrientationAtLocation_(NSTextLocation)?, bool $keepIsolateAlive = true}) → NSTextSelectionDataSourceObjCObject> , Pointer<Bool> )> -
Builds an object that implements the NSTextSelectionDataSource protocol. To implement
multiple protocols, use addToBuilder or
objc.ObjCProtocolBuilderdirectly. All methods that can be implemented as listeners will be.