nsIMacTextInputEventSink

IID:26f8f0a1-48b3-11d6-a15d-005004832142
Inherits From:nsISupports
Status:UNDER_REVIEW

The nsIMacTextInputEventSink is implemented internally by Gecko as the conduit through which Macintosh Text Service Manager events travel into Gecko. Gecko stores the nsIMacTextEventSink as the Refcon of the text input event

TO DO: 1. We need to figure out how to pass in optional parameter 2. We currently only defined the required in parameters and needed optional in parameters in the interface, once we decide to do 1, we should add them. see the comment for each method for details 3. We need to figure out how to return optional return value 4. We currently only defined the required return value in the interface, once we decide to do 3, we should add them. see the comment for each method 5. We need to define method to pass in kEventTextInputShowhideBottomWindow and kEventTextInputGetSelectedText


Methods

OSStatus HandleGetSelectedText ( out AString selectedText ) OSStatus HandleOffsetToPos ( PRInt32 offset , out PRInt16 pointX , out PRInt16 pointY ) OSStatus HandlePosToOffset ( PRInt16 currentPointX , PRInt16 currentPointY , out PRInt32 offset , out PRInt16 regionClass ) OSStatus HandleUnicodeForKeyEvent ( AString text , PRInt16 script , PRInt16 language , voidPtr* keyboardEvent ) OSStatus HandleUpdateActiveInputArea ( AString text , PRInt16 script , PRInt16 language , PRInt32 fixLen , voidPtr* hiliteRng ) OSStatus HandleUpdateActiveInputAreaForNonUnicode ( ACString text , PRInt16 script , PRInt16 language , PRInt32 fixLen , voidPtr* hiliteRng )

OSStatus HandleGetSelectedText ( out AString selectedText )

Entry point for kEventTextInputGetSelectedText events into Gecko for Unicode Document

Arguments:
selectedText

OSStatus HandleOffsetToPos ( PRInt32 offset , out PRInt16 pointX , out PRInt16 pointY )

Entry point for kEventTextInputOffsetToPos events into Gecko for Unicode Document (need more work later to return optional out parameter point, font, fmfont, pointSize, lineHeight, lineAscent)

Arguments:
offset
pointX
pointY

OSStatus HandlePosToOffset ( PRInt16 currentPointX , PRInt16 currentPointY , out PRInt32 offset , out PRInt16 regionClass )

Entry point for kEventTextInputPosToOffset events into Gecko for Unicode Document (need more work later to pass in optional parameter dragging, and to return optional out parameter leadingEdge)

Arguments:
currentPointX
currentPointY
offset
regionClass

OSStatus HandleUnicodeForKeyEvent ( AString text , PRInt16 script , PRInt16 language , voidPtr* keyboardEvent )

Entry point for kEventTextInputUnicodeForKeyEvent events into Gecko for Unicode Document

Arguments:
text
script
language
keyboardEvent

OSStatus HandleUpdateActiveInputArea ( AString text , PRInt16 script , PRInt16 language , PRInt32 fixLen , voidPtr* hiliteRng )

Entry point for kEventTextInputUpdateActiveInputArea events into Gecko for Unicode Document (need more work later to pass in optional in parameter updateRng, clauseRng, pinRng)

Arguments:
text
script
language
fixLen
hiliteRng

OSStatus HandleUpdateActiveInputAreaForNonUnicode ( ACString text , PRInt16 script , PRInt16 language , PRInt32 fixLen , voidPtr* hiliteRng )

Entry point for kEventTextInputUpdateActiveInputArea events into Gecko for Unicode Document (need more work later to pass in optional in parameter updateRng, clauseRng, pinRng)

Arguments:
text
script
language
fixLen
hiliteRng

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com