| Home 目次>ApplicationKit>NSATSTypesetter | 10.3 |
boundingBoxForControlGlyphAtIndex:forTextContainer:proposedLineFragment:glyphPosition:characterIndex:
制御文字があった時に呼び出される
-(NSRect) boundingBoxForControlGlyphAtIndex:(unsigned)glyphIndex
forTextContainer:(NSTextContainer *)textContainer
proposedLineFragment:(NSRect )proposedRect
glyphPosition:(NSPoint )glyphPosition
characterIndex:(unsigned)charIndex
【返り値】 | |
| NSRect |
| 【パラメータ】 | |
| glyphIndex | |
| textContainer | テキストコンテナ |
| proposedRect | |
| glyphPosition | グリフ位置 |
| charIndex | 文字番号 |
【解説】
制御文字があった時に呼び出される
Mac OS X v10.4 以降使用不可です。
【例文】
- (NSRect)boundingBoxForControlGlyphAtIndex:( unsigned )glyphIndex
forTextContainer:(NSTextContainer *)textContainer
proposedLineFragment:(NSRect)proposedRect
glyphPosition:(NSPoint)glyphPosition
characterIndex:( unsigned )charIndex;
{
NSLog( @"glyphIndex = %u" ,glyphIndex);
return proposedRect;
}
![]() | |
この記事を評価してください。
| Home 目次>ApplicationKit>NSATSTypesetter | 修正日2007.4.11 |