Package apple.uikit

Class NSTextSelectionNavigation

  • All Implemented Interfaces:
    NSObject

    public class NSTextSelectionNavigation
    extends NSObject
    API-Since: 15.0
    • Constructor Detail

      • NSTextSelectionNavigation

        protected NSTextSelectionNavigation​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allowsNonContiguousRanges

        public boolean allowsNonContiguousRanges()
        If YES, the object could produce selections with multiple disjoint ranges.
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • deletionRangesForTextSelectionDirectionDestinationAllowsDecomposition

        @NotNull
        public @NotNull NSArray<? extends NSTextRange> deletionRangesForTextSelectionDirectionDestinationAllowsDecomposition​(@NotNull
                                                                                                                             @NotNull NSTextSelection textSelection,
                                                                                                                             long direction,
                                                                                                                             long destination,
                                                                                                                             boolean allowsDecomposition)
        Returns the ranges that should be deleted based on textSelection and movement arguments. The selection after deletion should contain a 0-length range starting at the location of the first range returned. destination is ignored when textSelection has a non-empty selection. allowsDecomposition only applies to NSTextSelectionNavigationDirectionBackward and NSTextSelectionNavigationDestinationCharacter with 0-length selection.
      • description_static

        public static java.lang.String description_static()
      • destinationSelectionForTextSelectionDirectionDestinationExtendingConfined

        @Nullable
        public @Nullable NSTextSelection destinationSelectionForTextSelectionDirectionDestinationExtendingConfined​(@NotNull
                                                                                                                   @NotNull NSTextSelection textSelection,
                                                                                                                   long direction,
                                                                                                                   long destination,
                                                                                                                   boolean extending,
                                                                                                                   boolean confined)
        Returns a text selection moved from textSelection by the navigating operation presented by direction, destination, and extending. Returns nil when the requested operation does not produce any logically valid result. If 'confined' is YES, confine any movement to the text element that the selection already lies within.
      • flushLayoutCache

        public void flushLayoutCache()
        Flushes cached layout information. Should be called whenever the document contents get changed.
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • resolvedInsertionLocationForTextSelectionWritingDirection

        @Nullable
        public @Nullable NSTextLocation resolvedInsertionLocationForTextSelectionWritingDirection​(@NotNull
                                                                                                  @NotNull NSTextSelection textSelection,
                                                                                                  long writingDirection)
        Returns the resolved location for inserting the next input if textSelection is isLogical=NO && secondarySelectionLocation!=nil. If not, returns nil.
      • rotatesCoordinateSystemForLayoutOrientation

        public boolean rotatesCoordinateSystemForLayoutOrientation()
        If YES, rotates the coordinate system for arguments passed to the navigation methods such as -textSelectionsInteractingAtPoint:inContainerAtLocation:anchors:modifiers:selecting:bounds: based on the text container layout orientation. NO by default.
      • setAllowsNonContiguousRanges

        public void setAllowsNonContiguousRanges​(boolean value)
        If YES, the object could produce selections with multiple disjoint ranges.
      • setRotatesCoordinateSystemForLayoutOrientation

        public void setRotatesCoordinateSystemForLayoutOrientation​(boolean value)
        If YES, rotates the coordinate system for arguments passed to the navigation methods such as -textSelectionsInteractingAtPoint:inContainerAtLocation:anchors:modifiers:selecting:bounds: based on the text container layout orientation. NO by default.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • textSelectionDataSource

        @Nullable
        public @Nullable NSTextSelectionDataSource textSelectionDataSource()
        The data source object providing the layout and document content information.
      • textSelectionForSelectionGranularityEnclosingPointInContainerAtLocation

        @Nullable
        public @Nullable NSTextSelection textSelectionForSelectionGranularityEnclosingPointInContainerAtLocation​(long selectionGranularity,
                                                                                                                 CGPoint point,
                                                                                                                 @NotNull
                                                                                                                 @NotNull NSTextLocation location)
        Returns a text selection expanded to the nearest boundaries for selectionGranularity that contains point in the coordinate system of the text container at containerLocation. The returned selection will have granularity=selectionGranularity.
      • textSelectionForSelectionGranularityEnclosingTextSelection

        @NotNull
        public @NotNull NSTextSelection textSelectionForSelectionGranularityEnclosingTextSelection​(long selectionGranularity,
                                                                                                   @NotNull
                                                                                                   @NotNull NSTextSelection textSelection)
        Returns a text selection expanded to the nearest boundaries for selectionGranularity enclosing textSelection.textRanges. The returned selection will have granularity=selectionGranularity.
      • textSelectionsInteractingAtPointInContainerAtLocationAnchorsModifiersSelectingBounds

        @NotNull
        public @NotNull NSArray<? extends NSTextSelection> textSelectionsInteractingAtPointInContainerAtLocationAnchorsModifiersSelectingBounds​(CGPoint point,
                                                                                                                                                @NotNull
                                                                                                                                                @NotNull NSTextLocation containerLocation,
                                                                                                                                                @NotNull
                                                                                                                                                @NotNull NSArray<? extends NSTextSelection> anchors,
                                                                                                                                                long modifiers,
                                                                                                                                                boolean selecting,
                                                                                                                                                CGRect bounds)
        Returns an array of text selections produced with tap/mouse down at point. anchors defines the last text selection state if selecting=YES or NSTextSelectionNavigationModifierExtend. selecting=YES indicates it's in a text selection dragging session. bounds defines the view area in the container coordinate system that can interact with events. It is typically the view's visible area.
      • version_static

        public static long version_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.