InputMethodContextImpl

class InputMethodContextImpl(pointer: <Error class: unknown class><<Error class: unknown class>>) : InputMethodContext

The InputMethodContextImpl type represents a native instance of the abstract InputMethodContext class.

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Creates a new instance of InputMethodContext for the provided CPointer.

Properties

Link copied to clipboard

The #WebKitInputHints of the input associated with this context.

Link copied to clipboard

The #WebKitInputPurpose of the input associated with this context.

Link copied to clipboard
val webkitInputMethodContextPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard

Emits the "committed" signal. See onCommitted.

Link copied to clipboard
fun emitDeleteSurrounding(offset: <Error class: unknown class>, nChars: <Error class: unknown class>)

Emits the "delete-surrounding" signal. See onDeleteSurrounding.

Link copied to clipboard

Emits the "preedit-changed" signal. See onPreeditChanged.

Link copied to clipboard

Emits the "preedit-finished" signal. See onPreeditFinished.

Link copied to clipboard

Emits the "preedit-started" signal. See onPreeditStarted.

Link copied to clipboard
open fun filterKeyEvent(keyEvent: <Error class: unknown class>): Boolean

Allow @key_event to be handled by the input method.

Link copied to clipboard
open fun notifyCursorArea(x: <Error class: unknown class>, y: <Error class: unknown class>, width: <Error class: unknown class>, height: <Error class: unknown class>)

Notify @context that cursor area changed in input associated.

Link copied to clipboard
open fun notifyFocusIn()

Notify @context that input associated has gained focus.

Link copied to clipboard
open fun notifyFocusOut()

Notify @context that input associated has lost focus.

Link copied to clipboard
open fun notifySurrounding(text: String, length: <Error class: unknown class>, cursorIndex: <Error class: unknown class>, selectionIndex: <Error class: unknown class>)

Notify @context that the context surrounding the cursor has changed.

Link copied to clipboard
fun onCommitted(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (text: String) -> Unit): <Error class: unknown class>

Emitted when a complete input sequence has been entered by the user. This can be a single character immediately after a key press or the final result of preediting.

Link copied to clipboard
fun onDeleteSurrounding(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: (<Error class: unknown class>, <Error class: unknown class>) -> Unit): <Error class: unknown class>

Emitted when the input method wants to delete the context surrounding the cursor. If @offset is a negative value, it means a position before the cursor.

Link copied to clipboard
fun onPreeditChanged(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted whenever the preedit sequence currently being entered has changed. It is also emitted at the end of a preedit sequence, in which case webkit_input_method_context_get_preedit() returns the empty string.

Link copied to clipboard
fun onPreeditFinished(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when a preediting sequence has been completed or canceled.

Link copied to clipboard
fun onPreeditStarted(connectFlags: <Error class: unknown class> = ConnectFlags(0u), handler: () -> Unit): <Error class: unknown class>

Emitted when a new preediting sequence starts.

Link copied to clipboard
open fun reset()

Reset the @context.

Link copied to clipboard
open fun setEnablePreedit(enabled: Boolean)

Set whether @context should enable preedit to display feedback.