Class CTLine

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    public class CTLine
    extends CFType
    • Constructor Detail

      • CTLine

        protected CTLine()
    • Method Detail

      • getWidth

        public double getWidth()
        Since:
        Available in iOS 3.2 and later.
      • getAscent

        public double getAscent()
        Since:
        Available in iOS 3.2 and later.
      • getDescent

        public double getDescent()
        Since:
        Available in iOS 3.2 and later.
      • getLeading

        public double getLeading()
        Since:
        Available in iOS 3.2 and later.
      • getPrimaryOffset

        public double getPrimaryOffset​(long charIndex)
        Since:
        Available in iOS 3.2 and later.
      • getSecondaryOffset

        public double getSecondaryOffset​(long charIndex)
        Since:
        Available in iOS 3.2 and later.
      • getClassTypeID

        public static long getClassTypeID()
        Since:
        Available in iOS 3.2 and later.
      • createTruncatedLine

        public CTLine createTruncatedLine​(double width,
                                          CTLineTruncationType truncationType,
                                          CTLine truncationToken)
        Since:
        Available in iOS 3.2 and later.
      • createJustifiedLine

        public CTLine createJustifiedLine​(double justificationFactor,
                                          double justificationWidth)
        Since:
        Available in iOS 3.2 and later.
      • getGlyphCount

        public long getGlyphCount()
        Since:
        Available in iOS 3.2 and later.
      • getGlyphRuns

        public java.util.List<CTRun> getGlyphRuns()
        Since:
        Available in iOS 3.2 and later.
      • getStringRange

        public CFRange getStringRange()
        Since:
        Available in iOS 3.2 and later.
      • getPenOffset

        public double getPenOffset​(double flushFactor,
                                   double flushWidth)
        Since:
        Available in iOS 3.2 and later.
      • draw

        public void draw​(CGContext context)
        Since:
        Available in iOS 3.2 and later.
      • getTypographicBounds

        protected double getTypographicBounds​(org.robovm.rt.bro.ptr.MachineSizedFloatPtr ascent,
                                              org.robovm.rt.bro.ptr.MachineSizedFloatPtr descent,
                                              org.robovm.rt.bro.ptr.MachineSizedFloatPtr leading)
        Since:
        Available in iOS 3.2 and later.
      • getTrailingWhitespaceWidth

        public double getTrailingWhitespaceWidth()
        Since:
        Available in iOS 3.2 and later.
      • getImageBounds

        public CGRect getImageBounds​(CGContext context)
        Since:
        Available in iOS 3.2 and later.
      • getStringIndex

        public long getStringIndex​(CGPoint position)
        Since:
        Available in iOS 3.2 and later.
      • getOffset

        protected double getOffset​(long charIndex,
                                   org.robovm.rt.bro.ptr.MachineSizedFloatPtr secondaryOffset)
        Since:
        Available in iOS 3.2 and later.
      • enumerateCaretOffsets

        public void enumerateCaretOffsets​(org.robovm.objc.block.VoidBlock4<java.lang.Double,​java.lang.Long,​java.lang.Boolean,​org.robovm.rt.bro.ptr.BooleanPtr> block)
        Since:
        Available in iOS 9.0 and later.