pub struct Builder { /* private fields */ }Expand description
A message dialog builder.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn title(self, title: impl Into<String>) -> Self
pub fn title(self, title: impl Into<String>) -> Self
Sets the window title of the dialog.
By default, the title is generated from the Icon the dialog uses.
Sourcepub fn message(self, message: impl Into<String>) -> Self
pub fn message(self, message: impl Into<String>) -> Self
Sets the message body.
The body can contain line breaks, and will be line-wrapped to fit into the dialog window.
Sourcepub fn icon(self, icon: Icon) -> Self
pub fn icon(self, icon: Icon) -> Self
Sets the icon to display in the dialog.
By default, Icon::Info is used.
Sourcepub fn theme(self, theme: Theme) -> Self
pub fn theme(self, theme: Theme) -> Self
Sets the dialog’s color theme.
By default, the OS theme is used.
Sets the button preset to use.
By default, ButtonPreset::Close is used.
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more