public interface NSTextSelectionDataSource
| Modifier and Type | Interface and Description |
|---|---|
static interface |
NSTextSelectionDataSource.Block_enumerateCaretOffsetsInLineFragmentAtLocationUsingBlock |
static interface |
NSTextSelectionDataSource.Block_enumerateContainerBoundariesFromLocationReverseUsingBlock |
static interface |
NSTextSelectionDataSource.Block_enumerateSubstringsFromLocationOptionsUsingBlock |
| Modifier and Type | Method and Description |
|---|---|
long |
baseWritingDirectionAtLocation(NSTextLocation location)
Returns the base writing direction at location.
|
NSTextRange |
documentRange()
Declares the starting and ending locations for the document.
|
void |
enumerateCaretOffsetsInLineFragmentAtLocationUsingBlock(NSTextLocation location,
NSTextSelectionDataSource.Block_enumerateCaretOffsetsInLineFragmentAtLocationUsingBlock block)
Layout
Enumerates all the caret offset from left to right in visual order.
|
default void |
enumerateContainerBoundariesFromLocationReverseUsingBlock(NSTextLocation location,
boolean reverse,
NSTextSelectionDataSource.Block_enumerateContainerBoundariesFromLocationReverseUsingBlock block)
This optional method should be implemented enumerating the text container/page boundary when the text selection data provider supports such a layout functionality.
|
void |
enumerateSubstringsFromLocationOptionsUsingBlock(NSTextLocation location,
long options,
NSTextSelectionDataSource.Block_enumerateSubstringsFromLocationOptionsUsingBlock block)
Enumerating the textual segment boundaries starting at location.
|
NSTextRange |
lineFragmentRangeForPointInContainerAtLocation(CGPoint point,
NSTextLocation location)
Returns the range of the line fragment containing point inside the coordinate system containing location.
|
NSTextLocation |
locationFromLocationWithOffset(NSTextLocation location,
long offset)
Returns a new location from location with offset.
|
long |
offsetFromLocationToLocation(NSTextLocation from,
NSTextLocation to)
Returns the offset between from and to.
|
default long |
textLayoutOrientationAtLocation(NSTextLocation location)
Returns the text layout orientation at location.
|
NSTextRange |
textRangeForSelectionGranularityEnclosingLocation(long selectionGranularity,
NSTextLocation location)
Returns a text range corresponding to selectionGranularity enclosing location.
|
long baseWritingDirectionAtLocation(NSTextLocation location)
NSTextRange documentRange()
void enumerateCaretOffsetsInLineFragmentAtLocationUsingBlock(NSTextLocation location, NSTextSelectionDataSource.Block_enumerateCaretOffsetsInLineFragmentAtLocationUsingBlock block)
default void enumerateContainerBoundariesFromLocationReverseUsingBlock(NSTextLocation location, boolean reverse, NSTextSelectionDataSource.Block_enumerateContainerBoundariesFromLocationReverseUsingBlock block)
void enumerateSubstringsFromLocationOptionsUsingBlock(NSTextLocation location, long options, NSTextSelectionDataSource.Block_enumerateSubstringsFromLocationOptionsUsingBlock block)
NSTextRange lineFragmentRangeForPointInContainerAtLocation(CGPoint point, NSTextLocation location)
NSTextLocation locationFromLocationWithOffset(NSTextLocation location, long offset)
long offsetFromLocationToLocation(NSTextLocation from, NSTextLocation to)
default long textLayoutOrientationAtLocation(NSTextLocation location)
NSTextRange textRangeForSelectionGranularityEnclosingLocation(long selectionGranularity, NSTextLocation location)