Package org.robovm.apple.coretext
Class CTLine
java.lang.Object
org.robovm.rt.bro.NativeObject
org.robovm.apple.corefoundation.CFType
org.robovm.apple.coretext.CTLine
- All Implemented Interfaces:
AutoCloseable
public class CTLine extends CFType
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCTLine.AsListMarshalerstatic classCTLine.CTLinePtrNested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler -
Constructor Summary
Constructors Modifier Constructor Description protectedCTLine() -
Method Summary
Methods inherited from class org.robovm.apple.corefoundation.CFType
autorelease, close, dispose, dispose, doDispose, equalsTo, finalize, getAllocator, getDescription, getRetainCount, getTypeID, getTypeIDDescription, hash, makeCollectable, release, release, retain, retain, show, toString
-
Constructor Details
-
CTLine
protected CTLine()
-
-
Method Details
-
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() -
create
-
createTruncatedLine
public CTLine createTruncatedLine(double width, CTLineTruncationType truncationType, CTLine truncationToken) -
createJustifiedLine
-
getGlyphCount
public long getGlyphCount() -
getGlyphRuns
-
getStringRange
-
getPenOffset
public double getPenOffset(double flushFactor, double flushWidth) -
draw
-
getTypographicBounds
protected double getTypographicBounds(MachineSizedFloatPtr ascent, MachineSizedFloatPtr descent, MachineSizedFloatPtr leading) -
getBounds
-
getTrailingWhitespaceWidth
public double getTrailingWhitespaceWidth() -
getImageBounds
-
getStringIndex
-
getOffset
-
enumerateCaretOffsets
- Since:
- Available in iOS 9.0 and later.
-