MaterialSnackbar
struct · ferroui-themes-material · v0.5.0
struct MaterialSnackbar
The lookless visual for a snackbar. The host owns request lifetime; its template owns message wrapping, optional action/dismiss buttons, and single/two-row composition.
Members
TYPEto_refmessage_propertyaction_label_propertywith_dismiss_action_propertyaction_on_new_line_propertyconstructnewmessageset_messageaction_labelset_action_labelwith_dismiss_actionset_with_dismiss_actionaction_on_new_lineset_action_on_new_line
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<MaterialSnackbar>
Returns a strong reference to this object.
message_property
fn message_property() -> &'static StyledProperty<String>
action_label_property
fn action_label_property() -> &'static StyledProperty<Option<String>>
with_dismiss_action_property
fn with_dismiss_action_property() -> &'static StyledProperty<bool>
action_on_new_line_property
fn action_on_new_line_property() -> &'static StyledProperty<bool>
construct
fn construct() -> Self
new
fn new() -> Ref<Self>
message
fn message(self: &Self) -> String
set_message
fn set_message(self: &Self, value: String)
action_label
fn action_label(self: &Self) -> Option<String>
set_action_label
fn set_action_label(self: &Self, value: Option<String>)
with_dismiss_action
fn with_dismiss_action(self: &Self) -> bool
set_with_dismiss_action
fn set_with_dismiss_action(self: &Self, value: bool)
action_on_new_line
fn action_on_new_line(self: &Self) -> bool
set_action_on_new_line
fn set_action_on_new_line(self: &Self, value: bool)
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>TemplatedControlImplExtControlImplExtDerefUpcast<T>Upcast<MaterialSnackbar>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplInteractiveImplInputElementImplLayoutableImplVisualImplFerroObjectImplControlImplTemplatedControlImplDrop
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.