macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

lineFragmentUsedRectForGlyphAtIndex:effectiveRange:withoutAdditionalLayout:

**

-(NSRect)lineFragmentUsedRectForGlyphAtIndex:(unsigned)glyphIndex:
           effectiveRange:(NSRangePointer)effectiveGlyphRange:
           withoutAdditionalLayout:(BOOL)flag:

解説

調査中...

返り値

( NSRect )

なし

引数

( unsigned )glyphIndex
( NSRangePointer )effectiveGlyphRange
( BOOL )flag

フレームワーク

ApplicationKit

クラス

NSLayoutManager

Instance Methods

使用可能

10.4

参照

-setLineFragmentRect:forGlyphRange:usedRect:
-lineFragmentRectForGlyphAtIndex:effectiveRange:withoutAdditionalLayout:

例文

NSRect lineFragment = [self lineFragmentRectForGlyphAtIndex:index effectiveRange:NULL];
		pointToDrawAt.x += lineFragment.origin.x;
		pointToDrawAt.y = lineFragment.origin.y + (lineFragment.size.height -
													[attr size].height);