FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    begin_composition

    fn begin_composition(self: &Self) -> Result<(), TextInputMethodError>
    

    Source

    update_composition

    fn update_composition(self: &Self, text: &str, cursor: Option<i32>) -> Result<(), TextInputMethodError>
    

    Source

    cancel_composition

    fn cancel_composition(self: &Self) -> Result<bool, TextInputMethodError>
    

    Source

    supports_exact_edits

    fn supports_exact_edits(self: &Self) -> bool
    

    Exact range edits are optional; legacy preedit clients remain supported.

    Source

    edit_state

    fn edit_state(self: &Self) -> Result<TextInputMethodState, TextInputMethodError>
    

    Source

    apply_edit

    fn apply_edit(self: &Self, _edit: &TextInputMethodEdit, _composing: bool) -> Result<bool, TextInputMethodError>
    

    Source

    complete_composition

    fn complete_composition(self: &Self) -> Result<bool, TextInputMethodError>
    

    Source

    select_exact

    fn select_exact(self: &Self, _selection: super::TextSelection) -> Result<(), TextInputMethodError>
    

    Source

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.