FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    MaterialSnackbarHost

    struct · ferroui-themes-material · v0.5.0

    struct MaterialSnackbarHost
    

    A XAML-friendly host for a FIFO queue of Material snackbars. Place it in the bottom row or overlay of the application's existing layout. At most one request is actionable; outgoing visuals may overlap during their exit fade.

    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<MaterialSnackbarHost>
    

    Returns a strong reference to this object.

    Source

    reduced_motion_property

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

    Source

    motion_scheme_property

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

    Source

    is_open_property

    fn is_open_property() -> &'static DirectProperty<MaterialSnackbarHost, bool>
    

    Source

    construct

    fn construct() -> Self
    

    Source

    new

    fn new() -> Ref<Self>
    

    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

    is_open

    fn is_open(self: &Self) -> bool
    

    Source

    queued_count

    fn queued_count(self: &Self) -> usize
    

    Source

    current_id

    fn current_id(self: &Self) -> Option<u64>
    

    Source

    current_snackbar

    fn current_snackbar(self: &Self) -> Option<Ref<MaterialSnackbar>>
    

    Source

    set_timeout_policy

    fn set_timeout_policy(self: &Self, policy: Option<Rc<dyn MaterialSnackbarTimeoutPolicy>>)
    

    Set the platform accessibility timeout adapter for subsequently shown requests.

    Source

    show

    fn show(self: &Self, message: impl Into<MaterialSnackbarMessage>) -> MaterialSnackbarHandle
    

    Queue a message. A discarded handle leaves the request queued; use .cancel() explicitly or .await the handle for cancellation tied to the asynchronous operation's lifetime.

    Source

    dismiss_current

    fn dismiss_current(self: &Self) -> bool
    

    Source

    cancel

    fn cancel(self: &Self, id: u64) -> bool
    

    Cancel one active or queued request. A stale identity cannot affect another message.

    Source

    clear

    fn clear(self: &Self)
    

    Cancel the current request and every queued request, without displaying intermediate items.

    Source

    Trait implementations

    Availability

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