WebKitInputMethodContextClass

struct WebKitInputMethodContextClass {}

Members

Variables

WebkitReserved0
void function() WebkitReserved0;
WebkitReserved1
void function() WebkitReserved1;
WebkitReserved10
void function() WebkitReserved10;
WebkitReserved11
void function() WebkitReserved11;
WebkitReserved12
void function() WebkitReserved12;
WebkitReserved13
void function() WebkitReserved13;
WebkitReserved14
void function() WebkitReserved14;
WebkitReserved15
void function() WebkitReserved15;
WebkitReserved2
void function() WebkitReserved2;
WebkitReserved3
void function() WebkitReserved3;
WebkitReserved4
void function() WebkitReserved4;
WebkitReserved5
void function() WebkitReserved5;
WebkitReserved6
void function() WebkitReserved6;
WebkitReserved7
void function() WebkitReserved7;
WebkitReserved8
void function() WebkitReserved8;
WebkitReserved9
void function() WebkitReserved9;
committed
void function(WebKitInputMethodContext* context, const(char)* text) committed;
deleteSurrounding
void function(WebKitInputMethodContext* context, int offset, uint nChars) deleteSurrounding;
filterKeyEvent
bool function(WebKitInputMethodContext* context, GdkEvent* keyEvent) filterKeyEvent;

Called via webkit.input_method_context.InputMethodContext.filterKeyEvent on every key press or release event. Every non-trivial input method needs to override this in order to implement the mapping from key events to text. A return value of true indicates to the caller that the event was consumed by the input method. In that case, the #WebKitInputMethodContext::committed signal should be emitted upon completion of a key sequence to pass the resulting text back to the editable element. Alternatively, false may be returned to indicate that the event wasn’t handled by the input method.

getPreedit
void function(WebKitInputMethodContext* context, char** text, GList** underlines, uint* cursorOffset) getPreedit;

Called via webkit.input_method_context.InputMethodContext.getPreedit to retrieve the text currently being preedited for display at the cursor position. Any input method which composes complex characters or any other compositions from multiple sequential key presses should override this method to provide feedback.

notifyCursorArea
void function(WebKitInputMethodContext* context, int x, int y, int width, int height) notifyCursorArea;

Called via webkit.input_method_context.InputMethodContext.notifyCursorArea to inform the input method of the current cursor location relative to the client window.

notifyFocusIn
void function(WebKitInputMethodContext* context) notifyFocusIn;

Called via webkit.input_method_context.InputMethodContext.notifyFocusIn when an editable element of the #WebKitWebView has gained focus.

notifyFocusOut
void function(WebKitInputMethodContext* context) notifyFocusOut;

Called via webkit.input_method_context.InputMethodContext.notifyFocusOut when an editable element of the #WebKitWebView has lost focus.

notifySurrounding
void function(WebKitInputMethodContext* context, const(char)* text, uint length, uint cursorIndex, uint selectionIndex) notifySurrounding;

Called via webkit.input_method_context.InputMethodContext.notifySurrounding to update the context surrounding the cursor. The provided text should not include the preedit string.

parentClass
GObjectClass parentClass;
preeditChanged
void function(WebKitInputMethodContext* context) preeditChanged;
preeditFinished
void function(WebKitInputMethodContext* context) preeditFinished;
preeditStarted
void function(WebKitInputMethodContext* context) preeditStarted;
reset
void function(WebKitInputMethodContext* context) reset;

Called via webkit.input_method_context.InputMethodContext.reset to signal a change that requires a reset. An input method that implements preediting should override this method to clear the preedit state on reset.

setEnablePreedit
void function(WebKitInputMethodContext* context, bool enabled) setEnablePreedit;

Called via webkit.input_method_context.InputMethodContext.setEnablePreedit to control the use of the preedit string.