FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    AutoCompleteBoxQuerySubmittedEventArgs

    struct · ferroui-controls · v0.5.0

    struct AutoCompleteBoxQuerySubmittedEventArgs
    

    Provides data for the QuerySubmitted event of the AutoCompleteBox: the text of the box when Enter submitted it, and the suggestion that Enter chose from the open drop-down, if any.

    View source

    Members

    new

    fn new<T: ?Sized>(routed_event: Option<&RoutedEvent<T>>, query_text: String, chosen_suggestion: Option<BoxedValue>) -> Self
    

    Creates args for a routed event, the submitted text and the chosen suggestion.

    Source

    query_text

    fn query_text(self: &Self) -> &str
    

    The text of the box when the query was submitted.

    Source

    chosen_suggestion

    fn chosen_suggestion(self: &Self) -> Option<&BoxedValue>
    

    The item chosen from the open drop-down by the Enter that submitted the query; None when the drop-down was closed or nothing was selected in it.

    Source

    Trait implementations

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

    Availability

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