UpdateStateScope

abstract class UpdateStateScope<S : K3InputMethodState<S, E>, E : K3Editor>(var state: S)(source)

Inheritors

Constructors

Link copied to clipboard
constructor(state: S)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var state: S

Functions

Link copied to clipboard
open fun emit(value: K3StringOrDescriptor)

Processes a given K3String or K3Descriptor. Delegates the handling to emitText or emitDescriptor respectively.

Link copied to clipboard
open fun emitBackspace()

Performs a backspace action by first doing a backspace transform pass, followed by a simple transform pass.

Link copied to clipboard
open fun emitDescriptor(descriptor: K3Descriptor)
Link copied to clipboard
open fun emitEnter()

Emits \n by calling emitText.

Link copied to clipboard
open fun emitKey(key: K3Key)
Link copied to clipboard
open fun emitKeyById(keyId: K3KeyId)
Link copied to clipboard
open fun emitText(value: K3String)

Emits text to the end of the current input context, which is then potentially modified by transform rule matches.

Link copied to clipboard
open fun evaluateCompositionOf(model: K3Model, selection: K3TextRange, surroundingText: K3SurroundingText): K3TextRange?
Link copied to clipboard
open fun resetContent()
open fun resetContent(newSelection: K3TextRange, newSurrounding: K3SurroundingText)
Link copied to clipboard
open fun switchModel(newModel: K3Model)

Switches to newModel. This will discard any markers that are present in the private input context.

Link copied to clipboard
open fun switchTouchLayer(newTouchLayerId: K3LayerId)