Skip to main content

siglus_pump_ime_preedit

Function siglus_pump_ime_preedit 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn siglus_pump_ime_preedit( handle: *mut SiglusPumpHandle, text_utf8: *const c_char, cursor_start: i32, cursor_end: i32, )
Expand description

Update IME composition, or disable IME if the text pointer is null.

ยงSafety

If non-null, handle must be a live pointer returned by siglus_pump_create. Call on the thread that created it, with exclusive access to the handle for the entire call, including during callbacks. If non-null, text_utf8 must point to a NUL-terminated string in a single readable allocation of at most isize::MAX bytes, including the terminator. The bytes must remain valid and unchanged for this call.