Package org.robovm.apple.coretext
Class CTRun
- java.lang.Object
-
- org.robovm.rt.bro.NativeObject
-
- org.robovm.apple.corefoundation.CFType
-
- org.robovm.apple.coretext.CTRun
-
- All Implemented Interfaces:
java.lang.AutoCloseable
public class CTRun extends CFType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CTRun.AsListMarshaler
static class
CTRun.CTRunPtr
-
Nested classes/interfaces inherited from class org.robovm.apple.corefoundation.CFType
CFType.CFTypePtr, CFType.Marshaler, CFType.NoRetainMarshaler
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CTRun()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
draw(CGContext context, CFRange range)
CGSize[]
getAdvances(CFRange range)
protected void
getAdvances(CFRange range, CGSize buffer)
double
getAscent(CFRange range)
NSAttributedStringAttributes
getAttributes()
NSDictionary
getAttributesDictionary()
static long
getClassTypeID()
CTAttributedStringAttributes
getCoreTextAttributes()
double
getDescent(CFRange range)
long
getGlyphCount()
short[]
getGlyphs(CFRange range)
protected void
getGlyphs(CFRange range, org.robovm.rt.bro.ptr.ShortPtr buffer)
CGRect
getImageBounds(CGContext context, CFRange range)
double
getLeading(CFRange range)
CGPoint[]
getPositions(CFRange range)
protected void
getPositions(CFRange range, CGPoint buffer)
CTRunStatus
getStatus()
long[]
getStringIndices(CFRange range)
protected void
getStringIndices(CFRange range, org.robovm.rt.bro.ptr.LongPtr buffer)
CFRange
getStringRange()
CMTextMarkupAttributes
getTextMarkupAttributes()
CGAffineTransform
getTextMatrix()
protected double
getTypographicBounds(CFRange range, org.robovm.rt.bro.ptr.MachineSizedFloatPtr ascent, org.robovm.rt.bro.ptr.MachineSizedFloatPtr descent, org.robovm.rt.bro.ptr.MachineSizedFloatPtr leading)
double
getWidth(CFRange range)
-
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
-
getAttributes
public NSAttributedStringAttributes getAttributes()
-
getTextMarkupAttributes
public CMTextMarkupAttributes getTextMarkupAttributes()
-
getCoreTextAttributes
public CTAttributedStringAttributes getCoreTextAttributes()
-
getGlyphs
public short[] getGlyphs(CFRange range)
- Since:
- Available in iOS 3.2 and later.
-
getStringIndices
public long[] getStringIndices(CFRange range)
- Since:
- Available in iOS 3.2 and later.
-
getWidth
public double getWidth(CFRange range)
- Since:
- Available in iOS 3.2 and later.
-
getAscent
public double getAscent(CFRange range)
- Since:
- Available in iOS 3.2 and later.
-
getDescent
public double getDescent(CFRange range)
- Since:
- Available in iOS 3.2 and later.
-
getLeading
public double getLeading(CFRange range)
- Since:
- Available in iOS 3.2 and later.
-
getClassTypeID
public static long getClassTypeID()
- Since:
- Available in iOS 3.2 and later.
-
getGlyphCount
public long getGlyphCount()
- Since:
- Available in iOS 3.2 and later.
-
getAttributesDictionary
public NSDictionary getAttributesDictionary()
- Since:
- Available in iOS 3.2 and later.
-
getStatus
public CTRunStatus getStatus()
- Since:
- Available in iOS 3.2 and later.
-
getGlyphs
protected void getGlyphs(CFRange range, org.robovm.rt.bro.ptr.ShortPtr buffer)
- Since:
- Available in iOS 3.2 and later.
-
getPositions
protected void getPositions(CFRange range, CGPoint buffer)
- Since:
- Available in iOS 3.2 and later.
-
getAdvances
protected void getAdvances(CFRange range, CGSize buffer)
- Since:
- Available in iOS 3.2 and later.
-
getStringIndices
protected void getStringIndices(CFRange range, org.robovm.rt.bro.ptr.LongPtr buffer)
- Since:
- Available in iOS 3.2 and later.
-
getStringRange
public CFRange getStringRange()
- Since:
- Available in iOS 3.2 and later.
-
getTypographicBounds
protected double getTypographicBounds(CFRange range, 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.
-
getImageBounds
public CGRect getImageBounds(CGContext context, CFRange range)
- Since:
- Available in iOS 3.2 and later.
-
getTextMatrix
public CGAffineTransform getTextMatrix()
- Since:
- Available in iOS 3.2 and later.
-
-