FabGL
ESP32 Display Controller and Graphics Library

◆ messageBox()

uiMessageBoxResult messageBox ( char const *  title,
char const *  text,
char const *  button1Text,
char const *  button2Text = nullptr,
char const *  button3Text = nullptr,
uiMessageBoxIcon  icon = uiMessageBoxIcon::Question 
)

Displays a modal dialog box with an icon, text and some buttons.

Parameters
titleThe dialog box title. If nullptr the messaebox has no title bar
textThe message to be displayed
button1TextLeft button text
button2TextMiddle button text (may be nullptr, if not present)
button3TextRight button text (may be nullptr, if not present)
iconIcon to be displayed
Returns
Message box result

Definition at line 993 of file fabui.cpp.