Struct rich_sdl2_rust::window::message_box::MessageBox
source · pub struct MessageBox { /* private fields */ }
Expand description
A message box builder.
Implementations§
source§impl MessageBox
impl MessageBox
sourcepub fn new(kind: MessageBoxKind) -> Self
pub fn new(kind: MessageBoxKind) -> Self
Constructs a message box builder from the kind.
Adds a button to the message box.
sourcepub fn color_scheme(&mut self, scheme: Option<ColorScheme>) -> &mut Self
pub fn color_scheme(&mut self, scheme: Option<ColorScheme>) -> &mut Self
Sets the color scheme of the message box.
Trait Implementations§
source§impl Clone for MessageBox
impl Clone for MessageBox
source§fn clone(&self) -> MessageBox
fn clone(&self) -> MessageBox
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for MessageBox
impl Send for MessageBox
impl Sync for MessageBox
impl Unpin for MessageBox
impl UnwindSafe for MessageBox
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