FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TextInputMethodComposition

    struct · ferroui-base · v0.5.0

    struct TextInputMethodComposition
    

    A platform composition bound to one connection and one accepted client state. Clones refer to the same session. Late callbacks fail after reset, focus handoff, external edits, or a newer native composition.

    View source

    Members

    is_current

    fn is_current(self: &Self) -> bool
    

    Source

    update

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

    Source

    apply_edit

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

    Applies the platform's delta to the current preview without committing history. The resulting selection is part of this operation.

    Source

    select_exact

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

    Source

    complete

    fn complete(self: &Self, timestamp: u64) -> Result<bool, TextInputMethodError>
    

    Commits exactly the accepted preview, including empty deletions and arbitrary directed selection, as one undo transaction.

    Source

    commit

    fn commit(self: &Self, text: &str, timestamp: u64) -> Result<bool, TextInputMethodError>
    

    Source

    cancel

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

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • CloneToUninit
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ToOwned
    • ErasedDestructor
    • IntoEither
    • Clone

    Availability

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