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.
Members
TYPEto_refquery_propertyplaceholder_text_propertyis_expanded_propertyexpand_on_focus_propertymax_expanded_height_propertyreduced_motion_propertymotion_scheme_propertyconstructnewqueryset_queryplaceholder_textset_placeholder_textis_expandedset_is_expandedexpand_on_focusset_expand_on_focusmax_expanded_heightset_max_expanded_heightreduced_motionset_reduced_motionmotion_schemeset_motion_schemeeditorexpandcollapseclear_querysubmit_queryquery_submitted_eventquery_submitted
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<MaterialSearchView>
Returns a strong reference to this object.
query_property
fn query_property() -> &'static StyledProperty<Option<String>>
placeholder_text_property
fn placeholder_text_property() -> &'static StyledProperty<Option<String>>
is_expanded_property
fn is_expanded_property() -> &'static StyledProperty<bool>
expand_on_focus_property
fn expand_on_focus_property() -> &'static StyledProperty<bool>
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.
reduced_motion_property
fn reduced_motion_property() -> &'static StyledProperty<bool>
motion_scheme_property
fn motion_scheme_property() -> &'static StyledProperty<MaterialMotionScheme>
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
query
fn query(self: &Self) -> Option<String>
set_query
fn set_query(self: &Self, query: Option<String>)
placeholder_text
fn placeholder_text(self: &Self) -> Option<String>
set_placeholder_text
fn set_placeholder_text(self: &Self, value: Option<String>)
is_expanded
fn is_expanded(self: &Self) -> bool
set_is_expanded
fn set_is_expanded(self: &Self, value: bool)
expand_on_focus
fn expand_on_focus(self: &Self) -> bool
set_expand_on_focus
fn set_expand_on_focus(self: &Self, value: bool)
max_expanded_height
fn max_expanded_height(self: &Self) -> f64
set_max_expanded_height
fn set_max_expanded_height(self: &Self, value: f64)
reduced_motion
fn reduced_motion(self: &Self) -> bool
set_reduced_motion
fn set_reduced_motion(self: &Self, value: bool)
motion_scheme
fn motion_scheme(self: &Self) -> MaterialMotionScheme
set_motion_scheme
fn set_motion_scheme(self: &Self, value: MaterialMotionScheme)
editor
fn editor(self: &Self) -> Option<Ref<TextBox>>
expand
fn expand(self: &Self)
collapse
fn collapse(self: &Self)
clear_query
fn clear_query(self: &Self)
submit_query
fn submit_query(self: &Self)
query_submitted_event
fn query_submitted_event() -> &'static RoutedEvent<RoutedEventArgs>
query_submitted
fn query_submitted(self: &Self, handler: impl Fn(&ferroui_base::interactivity::Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherCastableFrom<ST, Uninit, Uninit>CastableFrom<ST, Initialized, Initialized>Read<Exclusive, BecauseExclusive>TemplatedControlImplExtContentControlImplExtControlImplExtDerefUpcast<T>Upcast<MaterialSearchView>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplInteractiveImplControlImplContentControlImplFerroObjectImplVisualImplLayoutableImplTemplatedControlImplInputElementImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.