Class PKDrawing

    • Constructor Detail

      • PKDrawing

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • bounds

        public CGRect bounds()
        The bounds of the drawing's contents, taking into account the rendered width of all content. If these bounds are used to render an image with `imageFromRect:scale:`, no contents will be cropped.
      • cancelPreviousPerformRequestsWithTarget

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

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

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

        public static org.moe.natj.objc.Class classForKeyedUnarchiver()
      • copyWithZone

        public java.lang.Object copyWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • dataRepresentation

        public NSData dataRepresentation()
        Generate a data representation of the drawing.
        Returns:
        A NSData object containing a representation of the drawing.
      • debugDescription_static

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

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

        public PKDrawing drawingByAppendingDrawing​(PKDrawing drawing)
        Returns a new drawing by appending the contents of `drawing` on top of the receiver’s contents.
        Parameters:
        drawing - The drawing to append.
        Returns:
        A new copy of this drawing with `drawing` appended onto it.
      • drawingByApplyingTransform

        public PKDrawing drawingByApplyingTransform​(CGAffineTransform transform)
        Returns a new drawing with `transform` applied.
        Parameters:
        transform - The transform to apply to this drawing.
        Returns:
        A new copy of this drawing with `transform` applied.
      • hash_static

        public static long hash_static()
      • imageFromRectScale

        public UIImage imageFromRectScale​(CGRect rect,
                                          double scale)
      • init

        public PKDrawing init()
        Initializes and returns a blank drawing.
        Overrides:
        init in class NSObject
      • initWithDataError

        public PKDrawing initWithDataError​(NSData data,
                                           org.moe.natj.general.ptr.Ptr<NSError> error)
        Initializes and returns the drawing with the specified data.
        Parameters:
        data - The data containing the drawing data.
        error - If an error occurs, upon return the NSError object describes the error. Set to NULL to ignore errors.
        Returns:
        On success, an initialized PKDrawing object. If nil, the outError parameter contains an NSError instance describing the problem.
      • 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

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • 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()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • version_static

        public static long version_static()
      • drawingByAppendingStrokes

        public PKDrawing drawingByAppendingStrokes​(NSArray<? extends PKStroke> strokes)
        Create a new drawing by appending an array of strokes to this drawing. This is a convenience method, to quickly add strokes to a drawing.
        Parameters:
        strokes - The strokes to append.
        Returns:
        A new copy of this drawing with `strokes` appended onto it.
      • initWithStrokes

        public PKDrawing initWithStrokes​(NSArray<? extends PKStroke> strokes)
        Initializes a drawing with an array of strokes.
      • strokes

        public NSArray<? extends PKStroke> strokes()
        The strokes that this drawing contains.