TextInputMethodEditing
trait · ferroui-base · v0.5.0
trait TextInputMethodEditing
Optional atomic composition capability of a text input client. Starting a composition preserves selected text; only an accepted update creates a preview. Commits use the normal raw and routed text-input pipeline.
Members
begin_compositionupdate_compositioncancel_compositionsupports_exact_editsedit_stateapply_editcomplete_compositionselect_exact
begin_composition
fn begin_composition(self: &Self) -> Result<(), TextInputMethodError>
update_composition
fn update_composition(self: &Self, text: &str, cursor: Option<i32>) -> Result<(), TextInputMethodError>
cancel_composition
fn cancel_composition(self: &Self) -> Result<bool, TextInputMethodError>
supports_exact_edits
fn supports_exact_edits(self: &Self) -> bool
Exact range edits are optional; legacy preedit clients remain supported.
edit_state
fn edit_state(self: &Self) -> Result<TextInputMethodState, TextInputMethodError>
apply_edit
fn apply_edit(self: &Self, _edit: &TextInputMethodEdit, _composing: bool) -> Result<bool, TextInputMethodError>
complete_composition
fn complete_composition(self: &Self) -> Result<bool, TextInputMethodError>
select_exact
fn select_exact(self: &Self, _selection: super::TextSelection) -> Result<(), TextInputMethodError>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.