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:
java.lang.AutoCloseable
public class CTLine extends CFType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CTLine.AsListMarshaler
static class
CTLine.CTLinePtr
-
Nested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CTLine()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CTLine
create(NSAttributedString attrString)
CTLine
createJustifiedLine(double justificationFactor, double justificationWidth)
CTLine
createTruncatedLine(double width, CTLineTruncationType truncationType, CTLine truncationToken)
void
draw(CGContext context)
void
enumerateCaretOffsets(org.robovm.objc.block.VoidBlock4<java.lang.Double,java.lang.Long,java.lang.Boolean,org.robovm.rt.bro.ptr.BooleanPtr> block)
double
getAscent()
CGRect
getBounds(CTLineBoundsOptions options)
static long
getClassTypeID()
double
getDescent()
long
getGlyphCount()
java.util.List<CTRun>
getGlyphRuns()
CGRect
getImageBounds(CGContext context)
double
getLeading()
protected double
getOffset(long charIndex, org.robovm.rt.bro.ptr.MachineSizedFloatPtr secondaryOffset)
double
getPenOffset(double flushFactor, double flushWidth)
double
getPrimaryOffset(long charIndex)
double
getSecondaryOffset(long charIndex)
long
getStringIndex(CGPoint position)
CFRange
getStringRange()
double
getTrailingWhitespaceWidth()
protected double
getTypographicBounds(org.robovm.rt.bro.ptr.MachineSizedFloatPtr ascent, org.robovm.rt.bro.ptr.MachineSizedFloatPtr descent, org.robovm.rt.bro.ptr.MachineSizedFloatPtr leading)
double
getWidth()
-
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
-
-
-
-
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.
-
create
public static CTLine create(NSAttributedString attrString)
- 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.
-
getBounds
public CGRect getBounds(CTLineBoundsOptions options)
- Since:
- Available in iOS 6.0 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.
-
-