NSATSTypesetter:boundingBoxForControlGlyphAtIndex:forTextContainer:proposedLineFragment:glyphPosition:characterIndex:
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;
}


(C) 2000-2007 Satoshi Oomori.
[Apple]

Google
Webwww.oomori.com
Apple_Store_40x120

[ad:Usual day in Japan]

この記事を評価してください。 

良い 

間違いがある 説明がわかりにくい 例文がわかりにくい  

Home 目次>ApplicationKit>NSATSTypesetter
修正日2007.4.11