macOS/iOS API解説

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

目次

boundingBoxForControlGlyphAtIndex:forTextContainer:proposedLineFragment:glyphPosition:characterIndex:

制御文字があった時に呼び出される
-(NSRect)boundingBoxForControlGlyphAtIndex:(unsigned)glyphIndex:
           forTextContainer:(NSTextContainer *)textContainer:
           proposedLineFragment:(NSRect )proposedRect:
           glyphPosition:(NSPoint )glyphPosition:
           characterIndex:(unsigned)charIndex:

解説

制御文字があった時に呼び出される
Mac OS X v10.4以降使用不可です。

返り値

( NSRect )

引数

( unsigned )glyphIndex
( NSTextContainer * )textContainer

テキストコンテナ

( NSRect  )proposedRect
( NSPoint  )glyphPosition

グリフ位置

( unsigned )charIndex

文字番号

フレームワーク

ApplicationKit

クラス

NSATSTypesetter

Instance Methods

使用可能

10.3

参照

例文

- (NSRect)boundingBoxForControlGlyphAtIndex:(unsigned)glyphIndex 
                        forTextContainer:(NSTextContainer *)textContainer 
                        proposedLineFragment:(NSRect)proposedRect 
                        glyphPosition:(NSPoint)glyphPosition 
                        characterIndex:(unsigned)charIndex;
{
NSLog(@"glyphIndex = %u",glyphIndex);
return proposedRect;
}