tinyfd_messageBox

extern (C) nothrow @nogc
int
tinyfd_messageBox

Parameters

title c_str

C-string or null

message c_str

C-string or null, can be multiline

dialogType c_str

"ok" "okcancel" "yesno" "yesnocancel"

iconType c_str

"info" "warning" "error" "question"

defaultButton int

0 - cancel/no, 1 - ok/yes, 2 - no in yesnocancel

Return Value

Type: int

0 - cancel/no, 1 - ok/yes, 2 - no in yesnocancel.

Examples

const int ret = tinyfd_messageBox("Hello World",
    "graphic dialogs [yes] / console mode [no]?",
    "yesno", "question", 1);
tinyfd_forceConsole = (ret == 0);

Meta