FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    INotification

    trait · ferroui-controls · v0.5.0

    trait INotification
    

    Represents a notification that can be shown in a window or by the host operating system.

    Not meant to be implemented outside the framework.

    View source

    Members

    title

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

    Gets the title of the notification.

    Source

    message

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

    Gets the notification message.

    Source

    type_

    fn type_(self: &Self) -> NotificationType
    

    Gets the NotificationType of the notification.

    Source

    expiration

    fn expiration(self: &Self) -> Duration
    

    Gets the expiration time of the notification after which it will automatically close. If the value is Duration::ZERO then the notification will remain open until the user closes it.

    Source

    on_click

    fn on_click(self: &Self) -> Option<Rc<dyn Fn() -> ()>>
    

    Gets an action to be run when the notification is clicked.

    Source

    on_close

    fn on_close(self: &Self) -> Option<Rc<dyn Fn() -> ()>>
    

    Gets an action to be run when the notification is closed.

    Source

    to_boxed

    fn to_boxed(self: Rc<Self>) -> BoxedValue
    

    The notification as an untyped value: the object itself, as content controls display it and bindings read it.

    Source

    Trait implementations

    Availability

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