CTRun

typedef const struct CF_BRIDGED_TYPE(id) __CTRun * CTRunRef;

typedef CF_OPTIONS(uint32_t, CTRunStatus)
{
    kCTRunStatusNoStatus = 0,
    kCTRunStatusRightToLeft = (1 << 0),
    kCTRunStatusNonMonotonic = (1 << 1),
    kCTRunStatusHasNonIdentityMatrix = (1 << 2)
};

CFTypeID CTRunGetTypeID( void ) CT_AVAILABLE(10_5, 3_2);

CFIndex CTRunGetGlyphCount(
    CTRunRef run ) CT_AVAILABLE(10_5, 3_2);

CFDictionaryRef CTRunGetAttributes(
    CTRunRef run ) CT_AVAILABLE(10_5, 3_2);

CTRunStatus CTRunGetStatus(
    CTRunRef run ) CT_AVAILABLE(10_5, 3_2);

const CGGlyph * __nullable CTRunGetGlyphsPtr(
    CTRunRef run ) CT_AVAILABLE(10_5, 3_2);

void CTRunGetGlyphs(
    CTRunRef run,
    CFRange range,
    CGGlyph buffer[] ) CT_AVAILABLE(10_5, 3_2);

const CGPoint * __nullable CTRunGetPositionsPtr(
    CTRunRef run ) CT_AVAILABLE(10_5, 3_2);

void CTRunGetPositions(
    CTRunRef run,
    CFRange range,
    CGPoint buffer[] ) CT_AVAILABLE(10_5, 3_2);

const CGSize * __nullable CTRunGetAdvancesPtr(
    CTRunRef run ) CT_AVAILABLE(10_5, 3_2);

void CTRunGetAdvances(
    CTRunRef run,
    CFRange range,
    CGSize buffer[] ) CT_AVAILABLE(10_5, 3_2);

const CFIndex * __nullable CTRunGetStringIndicesPtr(
    CTRunRef run ) CT_AVAILABLE(10_5, 3_2);

void CTRunGetStringIndices(
    CTRunRef run,
    CFRange range,
    CFIndex buffer[] ) CT_AVAILABLE(10_5, 3_2);

CFRange CTRunGetStringRange(
    CTRunRef run ) CT_AVAILABLE(10_5, 3_2);

double CTRunGetTypographicBounds(
    CTRunRef run,
    CFRange range,
    CGFloat * __nullable ascent,
    CGFloat * __nullable descent,
    CGFloat * __nullable leading ) CT_AVAILABLE(10_5, 3_2);


CGRect CTRunGetImageBounds(
    CTRunRef run,
    CGContextRef __nullable context,
    CFRange range ) CT_AVAILABLE(10_5, 3_2);

CGAffineTransform CTRunGetTextMatrix(
    CTRunRef run ) CT_AVAILABLE(10_5, 3_2);

void CTRunDraw(
    CTRunRef run,
    CGContextRef context,
    CFRange range ) CT_AVAILABLE(10_5, 3_2);





最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 连国民老公宋仲基都说了,保护老人、美女、小孩是他的首要任务,你特么还在肆无忌惮的打孩子???! 1 又是我一个熟悉...
    花婆婆的简书阅读 4,850评论 8 7
  • 不纠结于那些无法改变的事情。 就是不要钻牛角尖,对于那些我们不是很懂的事情,不要太执着地去做。可能就是因为不懂才无...
    坚持Benoy阅读 1,612评论 0 1
  • 为什么 连你离开关门时候的声音我都听不到 为什么我听不到 为什么我看不到呀 为什么转瞬即逝 为什么说一场儿戏罢了
    介焉阅读 1,150评论 1 1