[][src]Function beryllium::lone_message_box

pub unsafe fn lone_message_box(
    box_type: MessageBox,
    title: &str,
    message: &str
) -> Result<(), String>

Shows a basic, stand alone message box.

This doesn't require SDL2 to be initialized. If initialization was attempted and then failed because of no possible video target then this call is very likely to also fail.

Safety

As with all GUI things, you must only call this from the main thread.