Class NSLayoutManager


  • public class NSLayoutManager
    extends NSObject
    • Constructor Detail

      • NSLayoutManager

        public NSLayoutManager()
      • NSLayoutManager

        public NSLayoutManager​(long id)
      • NSLayoutManager

        public NSLayoutManager​(id id)
    • Method Detail

      • addTemporaryAttribute

        public void addTemporaryAttribute​(NSString attrName,
                                          id value,
                                          NSRange charRange)
      • addTextContainer

        public void addTextContainer​(NSTextContainer container)
      • characterIndexForGlyphAtIndex

        public long characterIndexForGlyphAtIndex​(long glyphIndex)
      • defaultBaselineOffsetForFont

        public double defaultBaselineOffsetForFont​(NSFont theFont)
      • defaultLineHeightForFont

        public double defaultLineHeightForFont​(NSFont theFont)
      • drawBackgroundForGlyphRange

        public void drawBackgroundForGlyphRange​(NSRange glyphsToShow,
                                                NSPoint origin)
      • drawGlyphsForGlyphRange

        public void drawGlyphsForGlyphRange​(NSRange glyphsToShow,
                                            NSPoint origin)
      • getGlyphs

        public long getGlyphs​(long glyphArray,
                              NSRange glyphRange)
      • getGlyphsInRange

        public long getGlyphsInRange​(NSRange glyphRange,
                                     long glyphBuffer,
                                     long charIndexBuffer,
                                     long inscribeBuffer,
                                     long elasticBuffer,
                                     byte[] bidiLevelBuffer)
      • glyphIndexForCharacterAtIndex

        public long glyphIndexForCharacterAtIndex​(long charIndex)
      • glyphIndexForPoint

        public long glyphIndexForPoint​(NSPoint point,
                                       NSTextContainer container,
                                       double[] partialFraction)
      • glyphRangeForCharacterRange

        public NSRange glyphRangeForCharacterRange​(NSRange charRange,
                                                   long actualCharRange)
      • lineFragmentUsedRectForGlyphAtIndex

        public NSRect lineFragmentUsedRectForGlyphAtIndex​(long glyphIndex,
                                                          long effectiveGlyphRange)
      • lineFragmentUsedRectForGlyphAtIndex

        public NSRect lineFragmentUsedRectForGlyphAtIndex​(long glyphIndex,
                                                          long effectiveGlyphRange,
                                                          boolean flag)
      • locationForGlyphAtIndex

        public NSPoint locationForGlyphAtIndex​(long glyphIndex)
      • numberOfGlyphs

        public long numberOfGlyphs()
      • rectArrayForCharacterRange

        public long rectArrayForCharacterRange​(NSRange charRange,
                                               NSRange selCharRange,
                                               NSTextContainer container,
                                               long[] rectCount)
      • rectArrayForGlyphRange

        public long rectArrayForGlyphRange​(NSRange glyphRange,
                                           NSRange selGlyphRange,
                                           NSTextContainer container,
                                           long[] rectCount)
      • removeTemporaryAttribute

        public void removeTemporaryAttribute​(NSString attrName,
                                             NSRange charRange)
      • setBackgroundLayoutEnabled

        public void setBackgroundLayoutEnabled​(boolean backgroundLayoutEnabled)
      • setTextStorage

        public void setTextStorage​(NSTextStorage textStorage)
      • setUsesScreenFonts

        public void setUsesScreenFonts​(boolean usesScreenFonts)