NvDialog 0.8.1
A cross-platform modal dialogs library for C/C++ that uses the native OS theme.
Loading...
Searching...
No Matches
NvDialog

Documentation

This manual documents the NvDialog library, a dialog box library written in C that uses the system theme. Instructions on how to build the library can be found in this page.

To get started, you should read about NvdDialogBox, which is a simple dialog box with nothing special in it. NvDialog also provides the following features as part of its API\:

Examples

If you want to check out some code before using this library in your project, this is a simple example: (Taken directly from the GitHub README).

#include <nvdialog/nvdialog.h>
int main(int argc, char** argv) {
nvd_init();
NvdDialogBox *dialog = nvd_dialog_box_new("Dialog Title", "Dialog Message", NVD_DIALOG_SIMPLE);
if (!dialog) return -1;
nvd_show_dialog(dialog);
nvd_free_object(dialog);
return 0;
}
struct _NvdDialogBox NvdDialogBox
A type to identify a single dialog box.
Definition nvdialog_dialog_box.h:49
NVD_API void nvd_show_dialog(NvdDialogBox *dialog)
Shows a dialog to the system shell.
NVD_API NvdDialogBox * nvd_dialog_box_new(const char *title, const char *message, NvdDialogType type)
Creates a new dialog object and returns it.
@ NVD_DIALOG_SIMPLE
Definition nvdialog_types.h:43

Other Resources