Carbonで日本語などの入力を司るAPI
Carbon
イベント
- kEventTextInputUpdateActiveInputArea
- 確定前の文字が変更された時などに発生
- in
- kEventParamTextInputSendRefCon : typeRefCon
- kEventParamTextInputSendFixLen : typeSignedByteCount
- 確定される文字数(-1だと全体、0だと未確定のまま)
- kEventParamTextInputSendAttributedString : typeCFAttributedStringRef
- kEventParamTextInputSendText : typeUnicodeText
- インライン入力セッション(inline input session)に追加されるテキスト
- NewTSMDocumnetにkTextServiceを渡した場合はtypeChar
- kEventParamTextInputSendUpdateRng : typeTextRangeArray
- kEventParamTextInputSendHiliteRng : typeTextRangeArray
- 確定前の文字の種類(下線の種類とか)とかキャレット位置とかが入っている
- kEventParamTextInputSendClauseRng : typeOffsetArray
- kEventParamTextInputSendPinRng : typeTextRange
- kEventParamTextInputSendTextServiceEncoding : typeUInt32
- kEventParamTextInputSendTextServiceMacEncoding : typeUInt32
- kEventParamTextInputSendGlyphInfoArray : typeGlyphInfoArray
- kEventParamTextInputSendReplaceRange : typeCFRange
- kEventTextInputUnicodeForKeyEvent
- kEventTextInputOffsetToPos
- 変換候補のウィンドウを出す為に、キャレットがある位置の座標を返す
- in
- kEventParamTextInputSendRefCon : typeRefCon
- kEventParamTextInputSendTextOffset : typeSignedByteOffset
- kEventParamTextInputSendLeadingEdge : typeBoolean
- out
- kEventParamTextInputReplyPoint : typeHIPoint
- こいつにキャレット位置の座標を突っ込む
- スクリーン座標で
- kEventParamTextInputReplyCTFontRef : typeCTFontRef (OS X 10.5 or later)
- kEventParamTextInputReplyATSFont : typeATSFontRef (OS X 10.5 or later)
- kEventParamTextInputReplyFMFont : typeUInt32 (DEPRECATED on OS X 10.5 and later)
- kEventParamTextInputReplyFont : typeSInt32 (DEPRECATED on OS X 10.5 and later)
- ↓kEventParamTextInputReplyCTFontRefを使う場合には参照されず
- kEventParamTextInputReplyPointSize : typeCGFloat
- kEventParamTextInputReplyLineHeight : typeCGFloat
- kEventParamTextInputReplyLineAscent : typeCGFloat
- ↑
- kEventParamTextInputReplyTextAngle : typeFixed
- kEventTextInputPosToOffset
- kEventTextInputGetSelectedText
- kEventTextInputFilterText
- kEventTextInputIsMouseEventInInlineInputArea
- アプリケーションには関係ないもの
- kEventTextInputShowHideBottomWindow
- kEventTextInputUnicodeText
関数
- NewTSMDocument
- ActivateTSMDocument
- DeactivateTSMDocument
- DeleteTSMDocument
最終更新:2010年04月25日 21:03