|
| enum | { kTextService
, kInputMethodService
, kTSMVersion = 0x0150
} |
| |
| enum | { kUnicodeDocument
, kUnicodeTextService
} |
| |
| enum | { kUnknownLanguage = 0xFFFF
, kUnknownScript = 0xFFFF
, kNeutralScript = 0xFFFF
} |
| |
| enum | {
bTakeActiveEvent = 15
, bHandleAERecording = 16
, bScriptMask = 0x00007F00
, bLanguageMask = 0x000000FF
,
bScriptLanguageMask = bScriptMask + bLanguageMask
} |
| |
| enum | { kIMJaTypingMethodProperty
, kIMJaTypingMethodRoman = FOUR_CHAR_CODE('roma')
, kIMJaTypingMethodKana = FOUR_CHAR_CODE('kana')
} |
| |
| enum | {
kCMGetScriptLangSupport = 0x0001
, kCMInitiateTextService = 0x0002
, kCMTerminateTextService = 0x0003
, kCMActivateTextService = 0x0004
,
kCMDeactivateTextService = 0x0005
, kCMTextServiceEvent = 0x0006
, kCMGetTextServiceMenu = 0x0007
, kCMTextServiceMenuSelect = 0x0008
,
kCMFixTextService = 0x0009
, kCMSetTextServiceCursor = 0x000A
, kCMHidePaletteWindows = 0x000B
, kCMGetTextServiceProperty = 0x000C
,
kCMSetTextServiceProperty = 0x000D
} |
| |
| enum | { kCMUCTextServiceEvent = 0x000E
} |
| |
|
| OSErr | NewTSMDocument (short numOfInterface, InterfaceTypeList supportedInterfaceTypes, TSMDocumentID *idocID, long refcon) |
| |
| OSErr | DeleteTSMDocument (TSMDocumentID idocID) |
| |
| OSErr | ActivateTSMDocument (TSMDocumentID idocID) |
| |
| OSErr | DeactivateTSMDocument (TSMDocumentID idocID) |
| |
| OSErr | FixTSMDocument (TSMDocumentID idocID) |
| |
| OSErr | GetServiceList (short numOfInterface, OSType *supportedInterfaceTypes, TextServiceListHandle *serviceInfo, long *seedValue) |
| |
| OSErr | OpenTextService (TSMDocumentID idocID, Component aComponent, ComponentInstance *aComponentInstance) |
| |
| OSErr | CloseTextService (TSMDocumentID idocID, ComponentInstance aComponentInstance) |
| |
| OSErr | SendAEFromTSMComponent (const AppleEvent *theAppleEvent, AppleEvent *reply, AESendMode sendMode, AESendPriority sendPriority, long timeOutInTicks, AEIdleUPP idleProc, AEFilterUPP filterProc) |
| |
| OSStatus | SendTextInputEvent (EventRef inEvent) |
| |
| OSErr | SetDefaultInputMethod (Component ts, ScriptLanguageRecord *slRecordPtr) |
| |
| OSErr | GetDefaultInputMethod (Component *ts, ScriptLanguageRecord *slRecordPtr) |
| |
| OSErr | SetTextServiceLanguage (ScriptLanguageRecord *slRecordPtr) |
| |
| OSErr | GetTextServiceLanguage (ScriptLanguageRecord *slRecordPtr) |
| |
| OSErr | UseInputWindow (TSMDocumentID idocID, Boolean useWindow) |
| |
| OSStatus | TSMSetInlineInputRegion (TSMDocumentID inTSMDocument, WindowRef inWindow, RgnHandle inRegion) |
| |
| Boolean | TSMEvent (EventRecord *event) |
| |
| Boolean | TSMMenuSelect (long menuResult) |
| |
| Boolean | SetTSMCursor (Point mousePos) |
| |
| OSErr | NewServiceWindow (void *wStorage, const Rect *boundsRect, ConstStr255Param title, Boolean visible, short theProc, WindowRef behind, Boolean goAwayFlag, ComponentInstance ts, WindowRef *window) |
| |
| OSErr | CloseServiceWindow (WindowRef window) |
| |
| OSErr | GetFrontServiceWindow (WindowRef *window) |
| |
| short | FindServiceWindow (Point thePoint, WindowRef *theWindow) |
| |
| OSErr | NewCServiceWindow (void *wStorage, const Rect *boundsRect, ConstStr255Param title, Boolean visible, short theProc, WindowRef behind, Boolean goAwayFlag, ComponentInstance ts, WindowRef *window) |
| |
| OSErr | InitTSMAwareApplication (void) |
| |
| OSErr | CloseTSMAwareApplication (void) |
| |
| ComponentResult | GetScriptLanguageSupport (ComponentInstance ts, ScriptLanguageSupportHandle *scriptHdl) |
| |
| ComponentResult | InitiateTextService (ComponentInstance ts) |
| |
| ComponentResult | TerminateTextService (ComponentInstance ts) |
| |
| ComponentResult | ActivateTextService (ComponentInstance ts) |
| |
| ComponentResult | DeactivateTextService (ComponentInstance ts) |
| |
| ComponentResult | GetTextServiceMenu (ComponentInstance ts, MenuRef *serviceMenu) |
| |
| ComponentResult | TextServiceEventRef (ComponentInstance ts, EventRef event) |
| |
| ComponentResult | TextServiceEvent (ComponentInstance ts, short numOfEvents, EventRecord *event) |
| |
| ComponentResult | UCTextServiceEvent (ComponentInstance ts, short numOfEvents, EventRecord *event, UniChar unicodeString[], UniCharCount unicodeStrLength) |
| |
| ComponentResult | TextServiceMenuSelect (ComponentInstance ts, MenuRef serviceMenu, short item) |
| |
| ComponentResult | SetTextServiceCursor (ComponentInstance ts, Point mousePos) |
| |
| ComponentResult | FixTextService (ComponentInstance ts) |
| |
| ComponentResult | HidePaletteWindows (ComponentInstance ts) |
| |
| ComponentResult | GetTextServiceProperty (ComponentInstance ts, OSType propertySelector, SInt32 *result) |
| |
| ComponentResult | SetTextServiceProperty (ComponentInstance ts, OSType propertySelector, SInt32 value) |
| |
| TSMDocumentID | TSMGetActiveDocument (void) |
| |
Text Services Manager Interfaces.
- Introduced In: Mac OS 9
- Avaliable From: Universal Interfaces 3.4.1
- Copyright: © 1991-2001 by Apple Computer, Inc., all rights reserved.
For bug reports, consult the following page on the World Wide Web:
http://developer.apple.com/bugreporter/
TSMSetInlineInputRegion()
Discussion: Tell TSM about the region occupied by an inline input session. If the location of certain mouse events (clicks, mouse moved) occur within the specified inline input region, TSM will forward these events to the current Input Method so that it can interact with the user. Note: If you do not specify this information, TSM will need to intercept mouse events in the entire content region as the default, when an input method is active, in order to ensure that input methods can manage user interaction properly.
Parameters:
inTSMDocument: The document.
inWindow: The window that contains the inline input session. You can pass NULL for this parameter to indicate the user focus window.
inRegion: The region occupied by the current inline input region. This should be in the coordinates of the port associated with the window you passed to inPort. It will need to be recomputed when the text content of the inline input session content changes (i.e. due to Update Active Input Area events) and when the region moves for other reasons, such as window resized, scrolling, etc. If you pass a NULL region for this parameter, TSM will default to intercept mouse events in the focus window's content region.
- Non-Carbon CFM: not available
- Carbon Lib: in CarbonLib 1.1 and later
- Mac OS X: in version 10.0 and later