NotificationCard
struct · ferroui-controls · v0.5.0
struct NotificationCard
Control that represents and displays a notification.
Members
TYPEto_refis_closing_propertyis_closed_propertynotification_type_propertyclose_on_click_propertynotification_closed_eventconstructnewis_closingis_closedset_is_closednotification_typeset_notification_typenotification_closedget_close_on_clickset_close_on_clickclose
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<NotificationCard>
Returns a strong reference to this object.
is_closing_property
fn is_closing_property() -> &'static DirectProperty<NotificationCard, bool>
Defines the IsClosing property.
is_closed_property
fn is_closed_property() -> &'static StyledProperty<bool>
Defines the IsClosed property.
notification_type_property
fn notification_type_property() -> &'static StyledProperty<NotificationType>
Defines the NotificationType property.
close_on_click_property
fn close_on_click_property() -> &'static AttachedProperty<bool>
Defines the CloseOnClick attached property.
notification_closed_event
fn notification_closed_event() -> &'static RoutedEvent<RoutedEventArgs>
Defines the NotificationClosed event.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
is_closing
fn is_closing(self: &Self) -> bool
Determines if the notification is already closing.
is_closed
fn is_closed(self: &Self) -> bool
Determines if the notification is closed.
set_is_closed
fn set_is_closed(self: &Self, value: bool)
notification_type
fn notification_type(self: &Self) -> NotificationType
The type of the notification.
set_notification_type
fn set_notification_type(self: &Self, value: NotificationType)
notification_closed
fn notification_closed(self: &Self, handler: impl Fn(&Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
Raised when the notification card has closed.
get_close_on_click
fn get_close_on_click(obj: &Button) -> bool
Gets the value of the CloseOnClick attached property of a button.
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.
close
fn close(self: &Self)
Closes the notification card.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtContentControlImplExtControlImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<NotificationCard>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplLayoutableImplInteractiveImplInputElementImplControlImplTemplatedControlImplContentControlImplFerroObjectImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.