tinyfd_saveFileDialog

extern (C) nothrow @nogc
tinyfd_saveFileDialog

Parameters

title c_str

C-string or null

defaultPathAndFile c_str

C-string or null

filters TFD_Filter[]

list of file type patterns

Return Value

Type: c_str

Selected file full name, null on cancel.

Examples

const TFD_Filter[] filters = [
    { ["*.css" ], "CSS" },
    { ["*.sass", "*.scss" ], "SASS" },
];
c_str filename = tinyfd_saveFileDialog("Save as...", "style.css", filters);
if (filename)
    tinyfd_messageBox("Chosen file is", filename, "ok", "info", 1);

Meta