pub struct MessageBox {
    pub title: String,
    pub message: String,
    pub style: MessageType,
    pub button_style: ButtonsType,
}

Fields

title: String

Message to be displayed

message: String

Message to be displayed

style: MessageType

Dialog style

button_style: ButtonsType

Dialog button style

Implementations

Create a new MessageBox.

Display the dialog In Windows environment, returns windows-sys::Win32::UI::WindowsAndMessaging::MESSAGEBOX_RESULT

Examples
use nxui::messagebox::MessageBox;
use nxui::natives_and_messaging::{DIALOGSTYLE_INFORMATION,BUTTONSTYLE_OK};

fn main() {
    MessageBox::new("Hello NXUI!".to_string(),"This is a test".to_string(),DIALOGSTYLE_INFORMATION,BUTTONSTYLE_OK).show();
}

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.