FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    NotificationCard

    struct · ferroui-controls · v0.5.0

    struct NotificationCard
    

    Control that represents and displays a notification.

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

    Returns a strong reference to this object.

    Source

    is_closing_property

    fn is_closing_property() -> &'static DirectProperty<NotificationCard, bool>
    

    Defines the IsClosing property.

    Source

    is_closed_property

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

    Defines the IsClosed property.

    Source

    notification_type_property

    fn notification_type_property() -> &'static StyledProperty<NotificationType>
    

    Defines the NotificationType property.

    Source

    close_on_click_property

    fn close_on_click_property() -> &'static AttachedProperty<bool>
    

    Defines the CloseOnClick attached property.

    Source

    notification_closed_event

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

    Defines the NotificationClosed event.

    Source

    construct

    fn construct() -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    is_closing

    fn is_closing(self: &Self) -> bool
    

    Determines if the notification is already closing.

    Source

    is_closed

    fn is_closed(self: &Self) -> bool
    

    Determines if the notification is closed.

    Source

    set_is_closed

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

    Source

    notification_type

    fn notification_type(self: &Self) -> NotificationType
    

    The type of the notification.

    Source

    set_notification_type

    fn set_notification_type(self: &Self, value: NotificationType)
    

    Source

    notification_closed

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

    Raised when the notification card has closed.

    Source

    get_close_on_click

    fn get_close_on_click(obj: &Button) -> bool
    

    Gets the value of the CloseOnClick attached property of a button.

    Source

    set_close_on_click

    fn set_close_on_click(obj: &Button, value: bool)
    

    Sets the value of the CloseOnClick attached property of a button: whether clicking the button closes the notification card it is in.

    Source

    close

    fn close(self: &Self)
    

    Closes the notification card.

    Source

    Trait implementations

    Availability

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