tinyfiledialogs 0.10.1
Cross-platform single-file library for native dialogs.
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
tinyfiledialogs
Native dialog library for Windows, macOS, GTK+, Qt, console & more. SSH supported via automatic switch to console mode or X11 forwarding.
Originally pure C89. To build in betterC mode, enable BC
subconfiguration.
For examples and info take a look at the documentation.
Short example of how to open a save dialog and show the name of chosen file in a message box:
import tinyfiledialogs;
// pairs of pattern list and optional description
const TFD_Filter[] filters = [
{ ["*.png" ], "PNG image" },
{ ["*.jpg", "*.jpeg" ], "JPEG image" },
{ ["*.tif", "*.tiff" ], "TIFF image" },
{ ["*.tga" ], "TarGA image" },
];
// it blocks until the dialog is closed
const char* filename = tinyfd_saveFileDialog("Save as...", "Untitled.png", filters);
if (filename)
{
// now we can save our file physically
tinyfd_messageBox("The filename is", filename, "ok", "info", 1);
}
NOTE: the main purpose of this package is to implement native file and color dialogs in [beamui](https://github.com/dayllenger/beamui), so don't expect much support and development.
- Registered by dayllenger
- 0.10.1 released 5 years ago
- dayllenger/tinyfiledialogs-d
- Zlib
- Authors:
- Dependencies:
- none
- Versions:
-
0.10.1 2019-Oct-01 0.10.0 2019-Oct-01 0.9.0 2019-Sep-29 ~master 2020-Apr-18 - Download Stats:
-
-
24 downloads today
-
171 downloads this week
-
728 downloads this month
-
18360 downloads total
-
- Score:
- 3.5
- Short URL:
- tinyfiledialogs.dub.pm