Class PKStroke

  • All Implemented Interfaces:
    NSCopying, NSObject

    public class PKStroke
    extends NSObject
    implements NSCopying
    The data model value representing a stroke in a `PKDrawing`. API-Since: 14.0
    • Constructor Detail

      • PKStroke

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static PKStroke alloc()
      • allocWithZone

        public static PKStroke allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • 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()
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • 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()
      • ink

        @NotNull
        public @NotNull PKInk ink()
        The ink used to render this stroke.
      • 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)
      • maskedPathRanges

        @NotNull
        public @NotNull NSArray<? extends PKFloatRange> maskedPathRanges()
        These are the parametric parameter ranges of points in `strokePath` that intersect the stroke's mask.
      • new_objc

        public static PKStroke new_objc()
      • path

        @NotNull
        public @NotNull PKStrokePath path()
        The B-spline path that describes this stroke.
      • renderBounds

        public CGRect renderBounds()
        The bounds of the rendered stroke. This includes the width & ink of the stroke after the transform is applied.
      • 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()
      • transform

        public CGAffineTransform transform()
        The affine transform of the stroke when rendered.
      • version_static

        public static long version_static()
      • initWithInkStrokePathTransformMaskRandomSeed

        public PKStroke initWithInkStrokePathTransformMaskRandomSeed​(@NotNull
                                                                     @NotNull PKInk ink,
                                                                     @NotNull
                                                                     @NotNull PKStrokePath strokePath,
                                                                     CGAffineTransform transform,
                                                                     @Nullable
                                                                     @Nullable UIBezierPath mask,
                                                                     int randomSeed)
        API-Since: 16.0
      • randomSeed

        public int randomSeed()
        The random seed for drawing strokes that use randomized effects. API-Since: 16.0
      • requiredContentVersion

        public long requiredContentVersion()
        The PencilKit version required to use this stroke. API-Since: 17.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.