Class NSLayoutManager

    • Constructor Detail

      • NSLayoutManager

        public NSLayoutManager()
      • NSLayoutManager

        protected NSLayoutManager​(NSObject.Handle h,
                                  long handle)
      • NSLayoutManager

        public NSLayoutManager​(NSCoder coder)
    • Method Detail

      • setTextStorage

        public void setTextStorage​(NSTextStorage v)
      • showsInvisibleCharacters

        public boolean showsInvisibleCharacters()
      • setShowsInvisibleCharacters

        public void setShowsInvisibleCharacters​(boolean v)
      • showsControlCharacters

        public boolean showsControlCharacters()
      • setShowsControlCharacters

        public void setShowsControlCharacters​(boolean v)
      • getHyphenationFactor

        public double getHyphenationFactor()
      • setHyphenationFactor

        public void setHyphenationFactor​(double v)
      • usesFontLeading

        public boolean usesFontLeading()
      • setUsesFontLeading

        public void setUsesFontLeading​(boolean v)
      • allowsNonContiguousLayout

        public boolean allowsNonContiguousLayout()
        Since:
        Available in iOS 7.0 and later.
      • setAllowsNonContiguousLayout

        public void setAllowsNonContiguousLayout​(boolean v)
        Since:
        Available in iOS 7.0 and later.
      • hasNonContiguousLayout

        public boolean hasNonContiguousLayout()
        Since:
        Available in iOS 7.0 and later.
      • isLimitsLayoutForSuspiciousContents

        public boolean isLimitsLayoutForSuspiciousContents()
        Since:
        Available in iOS 12.0 and later.
      • setLimitsLayoutForSuspiciousContents

        public void setLimitsLayoutForSuspiciousContents​(boolean v)
        Since:
        Available in iOS 12.0 and later.
      • getNumberOfGlyphs

        public long getNumberOfGlyphs()
      • getExtraLineFragmentRect

        public CGRect getExtraLineFragmentRect()
      • getExtraLineFragmentUsedRect

        public CGRect getExtraLineFragmentUsedRect()
      • getExtraLineFragmentTextContainer

        public NSTextContainer getExtraLineFragmentTextContainer()
      • fillBackground

        public void fillBackground​(CGRect[] rectArray,
                                   NSRange charRange,
                                   UIColor color)
      • init

        protected long init​(NSCoder coder)
      • addTextContainer

        public void addTextContainer​(NSTextContainer container)
      • insertTextContainer

        public void insertTextContainer​(NSTextContainer container,
                                        long index)
      • removeTextContainer

        public void removeTextContainer​(long index)
      • textContainerChangedGeometry

        public void textContainerChangedGeometry​(NSTextContainer container)
      • invalidateGlyphs

        public void invalidateGlyphs​(NSRange charRange,
                                     long delta,
                                     NSRange actualCharRange)
      • invalidateLayout

        public void invalidateLayout​(NSRange charRange,
                                     NSRange actualCharRange)
        Since:
        Available in iOS 7.0 and later.
      • invalidateDisplayForCharacterRange

        public void invalidateDisplayForCharacterRange​(NSRange charRange)
      • invalidateDisplayForGlyphRange

        public void invalidateDisplayForGlyphRange​(NSRange glyphRange)
      • ensureGlyphsForCharacterRange

        public void ensureGlyphsForCharacterRange​(NSRange charRange)
      • ensureGlyphsForGlyphRange

        public void ensureGlyphsForGlyphRange​(NSRange glyphRange)
      • ensureLayoutForCharacterRange

        public void ensureLayoutForCharacterRange​(NSRange charRange)
      • ensureLayoutForGlyphRange

        public void ensureLayoutForGlyphRange​(NSRange glyphRange)
      • ensureLayoutForTextContainer

        public void ensureLayoutForTextContainer​(NSTextContainer container)
      • ensureLayoutForBoundingRect

        public void ensureLayoutForBoundingRect​(CGRect bounds,
                                                NSTextContainer container)
      • setGlyphs

        public void setGlyphs​(org.robovm.rt.bro.ptr.ShortPtr glyphs,
                              org.robovm.rt.bro.ptr.MachineSizedSIntPtr props,
                              org.robovm.rt.bro.ptr.MachineSizedUIntPtr charIndexes,
                              UIFont aFont,
                              NSRange glyphRange)
        Since:
        Available in iOS 7.0 and later.
      • isValidGlyphIndex

        public boolean isValidGlyphIndex​(long glyphIndex)
        Since:
        Available in iOS 7.0 and later.
      • getPropertyForGlyph

        public NSGlyphProperty getPropertyForGlyph​(long glyphIndex)
        Since:
        Available in iOS 7.0 and later.
      • getCharacterIndexForGlyph

        public long getCharacterIndexForGlyph​(long glyphIndex)
      • getGlyphIndexForCharacter

        public long getGlyphIndexForCharacter​(long charIndex)
      • getGlyphs

        public long getGlyphs​(NSRange glyphRange,
                              org.robovm.rt.bro.ptr.ShortPtr glyphBuffer,
                              org.robovm.rt.bro.ptr.MachineSizedSIntPtr props,
                              org.robovm.rt.bro.ptr.MachineSizedUIntPtr charIndexBuffer,
                              org.robovm.rt.bro.ptr.BytePtr bidiLevelBuffer)
        Since:
        Available in iOS 7.0 and later.
      • setLineFragmentRect

        public void setLineFragmentRect​(CGRect fragmentRect,
                                        NSRange glyphRange,
                                        CGRect usedRect)
      • setExtraLineFragmentRect

        public void setExtraLineFragmentRect​(CGRect fragmentRect,
                                             CGRect usedRect,
                                             NSTextContainer container)
      • setLocation

        public void setLocation​(CGPoint location,
                                NSRange glyphRange)
      • setNotShownAttribute

        public void setNotShownAttribute​(boolean flag,
                                         long glyphIndex)
      • setDrawsOutsideLineFragment

        public void setDrawsOutsideLineFragment​(boolean flag,
                                                long glyphIndex)
      • setAttachmentSize

        public void setAttachmentSize​(CGSize attachmentSize,
                                      NSRange glyphRange)
      • getFirstUnlaidCharacterIndex

        public void getFirstUnlaidCharacterIndex​(org.robovm.rt.bro.ptr.MachineSizedUIntPtr charIndex,
                                                 org.robovm.rt.bro.ptr.MachineSizedUIntPtr glyphIndex)
      • firstUnlaidCharacterIndex

        public long firstUnlaidCharacterIndex()
      • firstUnlaidGlyphIndex

        public long firstUnlaidGlyphIndex()
      • getTextContainer

        public NSTextContainer getTextContainer​(long glyphIndex,
                                                NSRange effectiveGlyphRange)
      • getTextContainer

        public NSTextContainer getTextContainer​(long glyphIndex,
                                                NSRange effectiveGlyphRange,
                                                boolean withoutAdditionalLayout)
        Since:
        Available in iOS 9.0 and later.
      • getLineFragmentRect

        public CGRect getLineFragmentRect​(long glyphIndex,
                                          NSRange effectiveGlyphRange)
      • getLineFragmentRect

        public CGRect getLineFragmentRect​(long glyphIndex,
                                          NSRange effectiveGlyphRange,
                                          boolean withoutAdditionalLayout)
        Since:
        Available in iOS 9.0 and later.
      • getLineFragmentUsedRect

        public CGRect getLineFragmentUsedRect​(long glyphIndex,
                                              NSRange effectiveGlyphRange)
      • getLineFragmentUsedRect

        public CGRect getLineFragmentUsedRect​(long glyphIndex,
                                              NSRange effectiveGlyphRange,
                                              boolean withoutAdditionalLayout)
        Since:
        Available in iOS 9.0 and later.
      • getLocation

        public CGPoint getLocation​(long glyphIndex)
      • getNotShownAttribute

        public boolean getNotShownAttribute​(long glyphIndex)
      • getDrawsOutsideLineFragment

        public boolean getDrawsOutsideLineFragment​(long glyphIndex)
      • getAttachmentSize

        public CGSize getAttachmentSize​(long glyphIndex)
      • getTruncatedGlyphRangeInLineFragment

        public NSRange getTruncatedGlyphRangeInLineFragment​(long glyphIndex)
        Since:
        Available in iOS 7.0 and later.
      • getGlyphRangeForCharacterRange

        public NSRange getGlyphRangeForCharacterRange​(NSRange charRange,
                                                      NSRange actualCharRange)
      • getCharacterRangeForGlyphRange

        public NSRange getCharacterRangeForGlyphRange​(NSRange glyphRange,
                                                      NSRange actualGlyphRange)
      • getRangeOfNominallySpacedGlyphsContainingIndex

        public NSRange getRangeOfNominallySpacedGlyphsContainingIndex​(long glyphIndex)
      • getGlyphRangeForBoundingRectWithoutAdditionalLayout

        public NSRange getGlyphRangeForBoundingRectWithoutAdditionalLayout​(CGRect bounds,
                                                                           NSTextContainer container)
      • getSlyphIndexForPoint

        public long getSlyphIndexForPoint​(CGPoint point,
                                          NSTextContainer container,
                                          org.robovm.rt.bro.ptr.MachineSizedFloatPtr partialFraction)
      • getFractionOfDistanceThroughGlyphForPoint

        public double getFractionOfDistanceThroughGlyphForPoint​(CGPoint point,
                                                                NSTextContainer container)
      • getCharacterIndexForPoint

        public long getCharacterIndexForPoint​(CGPoint point,
                                              NSTextContainer container,
                                              org.robovm.rt.bro.ptr.MachineSizedFloatPtr partialFraction)
      • getLineFragmentInsertionPoints

        public long getLineFragmentInsertionPoints​(long charIndex,
                                                   boolean aFlag,
                                                   boolean dFlag,
                                                   org.robovm.rt.bro.ptr.MachineSizedFloatPtr positions,
                                                   org.robovm.rt.bro.ptr.MachineSizedUIntPtr charIndexes)
      • enumerateLineFragments

        public void enumerateLineFragments​(NSRange glyphRange,
                                           org.robovm.objc.block.VoidBlock5<CGRect,​CGRect,​NSTextContainer,​NSRange,​org.robovm.rt.bro.ptr.BooleanPtr> block)
        Since:
        Available in iOS 7.0 and later.
      • enumerateEnclosingRects

        public void enumerateEnclosingRects​(NSRange glyphRange,
                                            NSRange selectedRange,
                                            NSTextContainer textContainer,
                                            org.robovm.objc.block.VoidBlock2<CGRect,​org.robovm.rt.bro.ptr.BooleanPtr> block)
        Since:
        Available in iOS 7.0 and later.
      • drawBackground

        public void drawBackground​(NSRange glyphsToShow,
                                   CGPoint origin)
      • drawGlyphs

        public void drawGlyphs​(NSRange glyphsToShow,
                               CGPoint origin)
      • fillBackground

        protected void fillBackground​(CGRect rectArray,
                                      long rectCount,
                                      NSRange charRange,
                                      UIColor color)
        Since:
        Available in iOS 7.0 and later.
      • getGlyph

        public short getGlyph​(long glyphIndex,
                              org.robovm.rt.bro.ptr.BooleanPtr isValidIndex)
      • getGlyph

        public short getGlyph​(long glyphIndex)