FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MaterialSearchView

    struct · ferroui-themes-material · v0.5.0

    struct MaterialSearchView
    

    A 56dp search field with an animated docked results surface. Content supplies the application's results; Query is two-way bindable. Query submission is a routed event, so filtering can remain in the view model. The same TextBox survives expansion, preserving composition, undo and selection.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<MaterialSearchView>
    

    Returns a strong reference to this object.

    Source

    query_property

    fn query_property() -> &'static StyledProperty<Option<String>>
    

    Source

    placeholder_text_property

    fn placeholder_text_property() -> &'static StyledProperty<Option<String>>
    

    Source

    is_expanded_property

    fn is_expanded_property() -> &'static StyledProperty<bool>
    

    Source

    expand_on_focus_property

    fn expand_on_focus_property() -> &'static StyledProperty<bool>
    

    Source

    max_expanded_height_property

    fn max_expanded_height_property() -> &'static StyledProperty<f64>
    

    Optional tighter limit; the native maximum is two thirds of the window height.

    Source

    reduced_motion_property

    fn reduced_motion_property() -> &'static StyledProperty<bool>
    

    Source

    motion_scheme_property

    fn motion_scheme_property() -> &'static StyledProperty<MaterialMotionScheme>
    

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    query

    fn query(self: &Self) -> Option<String>
    

    Source

    set_query

    fn set_query(self: &Self, query: Option<String>)
    

    Source

    placeholder_text

    fn placeholder_text(self: &Self) -> Option<String>
    

    Source

    set_placeholder_text

    fn set_placeholder_text(self: &Self, value: Option<String>)
    

    Source

    is_expanded

    fn is_expanded(self: &Self) -> bool
    

    Source

    set_is_expanded

    fn set_is_expanded(self: &Self, value: bool)
    

    Source

    expand_on_focus

    fn expand_on_focus(self: &Self) -> bool
    

    Source

    set_expand_on_focus

    fn set_expand_on_focus(self: &Self, value: bool)
    

    Source

    max_expanded_height

    fn max_expanded_height(self: &Self) -> f64
    

    Source

    set_max_expanded_height

    fn set_max_expanded_height(self: &Self, value: f64)
    

    Source

    reduced_motion

    fn reduced_motion(self: &Self) -> bool
    

    Source

    set_reduced_motion

    fn set_reduced_motion(self: &Self, value: bool)
    

    Source

    motion_scheme

    fn motion_scheme(self: &Self) -> MaterialMotionScheme
    

    Source

    set_motion_scheme

    fn set_motion_scheme(self: &Self, value: MaterialMotionScheme)
    

    Source

    editor

    fn editor(self: &Self) -> Option<Ref<TextBox>>
    

    Source

    expand

    fn expand(self: &Self)
    

    Source

    collapse

    fn collapse(self: &Self)
    

    Source

    clear_query

    fn clear_query(self: &Self)
    

    Source

    submit_query

    fn submit_query(self: &Self)
    

    Source

    query_submitted_event

    fn query_submitted_event() -> &'static RoutedEvent<RoutedEventArgs>
    

    Source

    query_submitted

    fn query_submitted(self: &Self, handler: impl Fn(&ferroui_base::interactivity::Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Source

    Trait implementations

    Availability

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