Package apple.uikit

Class NSTextViewportLayoutController

  • All Implemented Interfaces:
    NSObject

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

      • NSTextViewportLayoutController

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • adjustViewportByVerticalOffset

        public void adjustViewportByVerticalOffset​(double verticalOffset)
        Adjusts the viewport rect by the specified offset if needed. This is used to artificially move the viewport without affecting viewport content, can be both positive/negative offset.
      • 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()
      • description_static

        public static java.lang.String description_static()
      • 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)
      • layoutViewport

        public void layoutViewport()
        Performs layout in the viewport.
      • relocateViewportToTextLocation

        public double relocateViewportToTextLocation​(@NotNull
                                                     @NotNull NSTextLocation textLocation)
        Relocates the viewport to start with the specified *location*. This is used to programmatically scroll to the specified *location*. Returns the suggested viewport anchor point.
      • resolveClassMethod

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

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

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        @Nullable
        public @Nullable NSTextLayoutManager textLayoutManager()
        The provider of viewport text layout fragments.
      • version_static

        public static long version_static()
      • viewportBounds

        public CGRect viewportBounds()
        The viewport of the current layout. Not KVO-compliant.
      • viewportRange

        @Nullable
        public @Nullable NSTextRange viewportRange()
        The text range of the current viewport layout. Not KVO-compliant.
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.