The OpenD Programming Language

cef_browser_host_t.ime_set_composition

Begins a new composition or updates the existing composition. Blink has a special node (a composition node) that allows the input function to change text without affecting other DOM nodes. |text| is the optional text that will be inserted into the composition node. |underlines| is an optional set of ranges that will be underlined in the resulting text. |replacement_range| is an optional range of the existing text that will be replaced. |selection_range| is an optional range of the resulting text that will be selected after insertion or replacement. The |replacement_range| value is only used on OS X.

This function may be called multiple times as the composition changes. When the client is done making changes the composition should either be canceled or completed. To cancel the composition call ImeCancelComposition. To complete the composition call either ImeCommitText or ImeFinishComposingText. Completion is usually signaled when:

1. The client receives a WM_IME_COMPOSITION message with a GCS_RESULTSTR flag (on Windows), or; 2. The client receives a "commit" signal of GtkIMContext (on Linux), or; 3. insertText of NSTextInput is called (on Mac).

This function is only used when window rendering is disabled.

struct cef_browser_host_t
extern (System)
void function(cef_browser_host_t* self, const(cef_string_t)* text, size_t underlinesCount, const(cef_composition_underline_t)* underlines, const(cef_range_t)* replacement_range, const(cef_range_t)* selection_range) nothrow ime_set_composition;

Meta