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 more