25#include "../nvdialog_platform.h"
26#include "../nvdialog_types.h"
133 const char *accept_text);
NVD_API void nvd_dialog_box_set_accept_text(NvdDialogBox *dialog, const char *accept_text)
Sets the accept text for the dialog (The "Ok" button label).
NVD_API NvdQuestionBox * nvd_dialog_question_new(const char *title, const char *question, NvdQuestionButton button)
Creates a question dialog box with the given parameters. This function creates a dialog box containin...
NVD_API void * nvd_dialog_question_get_raw(NvdQuestionBox *dialog)
Returns the raw object behind the dialog.
struct _NvdQuestionBox NvdQuestionBox
A similar struct to NvdDialogBox, but instead used for question dialogs.
Definition: nvdialog_dialog_box.h:57
NVD_API void * nvd_dialog_box_get_raw(NvdDialogBox *dialog)
Returns the raw object behind the dialog.
struct _NvdDialogBox NvdDialogBox
A type to identify a single dialog box.
Definition: nvdialog_dialog_box.h:49
NVD_API NvdReply nvd_get_reply(NvdQuestionBox *box)
Shows the question dialog given to the system and returns the choice given.
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.
NvdReply
An enumerator containing a possible returned value by nvd_get_reply, when used with an NvdQuestionBox...
Definition: nvdialog_types.h:74
NvdDialogType
Defines what use it the dialog about. Each member of this enum defines what the dialog should represe...
Definition: nvdialog_types.h:45
NvdQuestionButton
Enumerator containing the possible arguments for nvd_dialog_question_new().
Definition: nvdialog_types.h:63