Class NSTextLineFragment

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

public class NSTextLineFragment
extends NSObject
implements NSSecureCoding
Since:
Available in iOS 15.0 and later.
  • Constructor Details

    • NSTextLineFragment

      protected NSTextLineFragment()
    • NSTextLineFragment

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

      protected NSTextLineFragment​(NSObject.SkipInit skipInit)
    • NSTextLineFragment

      public NSTextLineFragment​(NSAttributedString attributedString, NSRange range)
    • NSTextLineFragment

      public NSTextLineFragment​(NSCoder coder)
    • NSTextLineFragment

      public NSTextLineFragment​(String string, NSDictionary<NSString,​?> attributes, NSRange range)
  • Method Details

    • getAttributedString

      public NSAttributedString getAttributedString()
    • getCharacterRange

      public NSRange getCharacterRange()
    • getTypographicBounds

      public CGRect getTypographicBounds()
    • getGlyphOrigin

      public CGPoint getGlyphOrigin()
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • init

      protected long init​(NSAttributedString attributedString, NSRange range)
    • init

      protected long init​(NSCoder coder)
    • init

      protected long init​(String string, NSDictionary<NSString,​?> attributes, NSRange range)
    • drawAtPoint

      public void drawAtPoint​(CGPoint point, CGContext context)
    • locationForCharacterAtIndex

      public CGPoint locationForCharacterAtIndex​(long index)
    • characterIndexForPoint

      public long characterIndexForPoint​(CGPoint point)
    • fractionOfDistanceThroughGlyphForPoint

      public double fractionOfDistanceThroughGlyphForPoint​(CGPoint point)
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding