macOS/iOS API解説

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

目次

ATSUGetTextLocation

テキストの描画位置を得ます
OSStatus  ATSUGetTextLocation ( 
           ATSUTextLayout   iTextLayout , 
           void **   oText , 
           Boolean *   oTextIsStoredInHandle , 
           UniCharArrayOffset *   oOffset , 
           UniCharCount *   oTextLength , 
           UniCharCount *   oTextTotalLength );

解説

テキストの描画位置を得ます。

返り値

引数

( ATSUTextLayout )iTextLayout
( void ** )oText
( Boolean * )oTextIsStoredInHandle
( UniCharArrayOffset * )oOffset
( UniCharCount * )oTextLength
( UniCharCount * )oTextTotalLength

フレームワーク

ApplicationServices

クラス

ATSUGetTextLocation

使用可能

10.0

参照

例文

theStatus = ATSUGetTextLocation (iTextLayout, NULL, NULL, &textOffset, &textLength, NULL);