Package apple.uikit

Class NSTextAttachment

    • Constructor Detail

      • NSTextAttachment

        protected NSTextAttachment​(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)
      • 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()
      • 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

        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()
      • version_static

        public static long version_static()
      • attachmentBoundsForTextContainerProposedLineFragmentGlyphPositionCharacterIndex

        public CGRect attachmentBoundsForTextContainerProposedLineFragmentGlyphPositionCharacterIndex​(NSTextContainer textContainer,
                                                                                                      CGRect lineFrag,
                                                                                                      CGPoint position,
                                                                                                      long charIndex)
        Description copied from interface: NSTextAttachmentContainer
        Returns the layout bounds to the layout manager. The bounds origin is interpreted to match position inside lineFrag. The NSTextAttachment implementation returns -bounds if not CGRectZero; otherwise, it derives the bounds value from -[image size]. Conforming objects can implement more sophisticated logic for negotiating the frame size based on the available container space and proposed line fragment rect.
        Specified by:
        attachmentBoundsForTextContainerProposedLineFragmentGlyphPositionCharacterIndex in interface NSTextAttachmentContainer
      • bounds

        public CGRect bounds()
        Defines the layout bounds of the receiver's graphical representation in the text coordinate system. The origin is at the glyph location on the text baseline. The default value is CGRectZero.
      • contents

        public NSData contents()
        These two properties define the contents for the text attachment. Modifying these properties have a side effect of invalidating -image and -fileWrapper properties. -fileType is an UTI describing the format for -contents.
      • fileType

        public java.lang.String fileType()
      • fileWrapper

        public NSFileWrapper fileWrapper()
        Optionally, NSTextAttachment can be associated with a file wrapper. Modifying this property has a side effect of invalidating -image, -contents, and fileType properties.
      • image

        public UIImage image()
        Image representing the text attachment contents. Modifying this property invalidates -contents, -fileType, and -FileWrapper properties.
      • imageForBoundsTextContainerCharacterIndex

        public UIImage imageForBoundsTextContainerCharacterIndex​(CGRect imageBounds,
                                                                 NSTextContainer textContainer,
                                                                 long charIndex)
        Description copied from interface: NSTextAttachmentContainer
        Returns the image object rendered by NSLayoutManager at imageBounds inside textContainer. It should return an image appropriate for the target rendering context derived by arguments to this method. The NSTextAttachment implementation returns -image when non-nil. If -image==nil, it returns an image based on -contents and -fileType properties.
        Specified by:
        imageForBoundsTextContainerCharacterIndex in interface NSTextAttachmentContainer
      • initWithDataOfType

        public NSTextAttachment initWithDataOfType​(NSData contentData,
                                                   java.lang.String uti)
        Designated initializer. Both arguments can be nil. When contentData==nil || uti==nil, the receiver is consider to be an attachment without document contents. In this case, the NSAttributedString methods writing external file format tries to save the return value of -[NSTextAttachment image] instead.
      • setBounds

        public void setBounds​(CGRect value)
        Defines the layout bounds of the receiver's graphical representation in the text coordinate system. The origin is at the glyph location on the text baseline. The default value is CGRectZero.
      • setContents

        public void setContents​(NSData value)
        These two properties define the contents for the text attachment. Modifying these properties have a side effect of invalidating -image and -fileWrapper properties. -fileType is an UTI describing the format for -contents.
      • setFileType

        public void setFileType​(java.lang.String value)
      • setFileWrapper

        public void setFileWrapper​(NSFileWrapper value)
        Optionally, NSTextAttachment can be associated with a file wrapper. Modifying this property has a side effect of invalidating -image, -contents, and fileType properties.
      • setImage

        public void setImage​(UIImage value)
        Image representing the text attachment contents. Modifying this property invalidates -contents, -fileType, and -FileWrapper properties.
      • 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