NvDialog 0.10.1
A cross-platform modal dialogs library for C/C++ that uses the native OS theme.
Loading...
Searching...
No Matches
nvdialog_types.h File Reference

Go to the source code of this file.

Data Structures

struct  NvdVersion
 A struct that identifies the version of NvDialog. More...

Macros

#define __nvdialog_types_h__   1

Enumerations

enum  NvdDialogType { NVD_DIALOG_SIMPLE = 0xff , NVD_DIALOG_WARNING , NVD_DIALOG_ERROR }
 Defines what use it the dialog about. Each member of this enum defines what the dialog should represent: More...
enum  NvdQuestionButton { NVD_YES_NO = 0x04 , NVD_YES_NO_CANCEL , NVD_YES_CANCEL }
 Enumerator containing the possible arguments for nvd_dialog_question_new(). More...
enum  NvdReply { NVD_REPLY_OK = 0x04 , NVD_REPLY_CANCEL , NVD_REPLY_NO }
 An enumerator containing a possible returned value by nvd_get_reply, when used with an NvdQuestionBox. More...

Macro Definition Documentation

◆ __nvdialog_types_h__

#define __nvdialog_types_h__   1

Enumeration Type Documentation

◆ NvdDialogType

Defines what use it the dialog about. Each member of this enum defines what the dialog should represent:

  • NVD_DIALOG_SIMPLE -> A simple message box, to say something.
  • NVD_DIALOG_WARNING -> A warning message to be used for warnings.
  • NVD_DIALOG_ERROR -> An error message box.
    Since
    v0.1.0
    See also
    nvd_dialog_box_new
Enumerator
NVD_DIALOG_SIMPLE 

A simple dialog box, no decorations.

NVD_DIALOG_WARNING 

A warning message to be used for warnings, with warning color styling.

NVD_DIALOG_ERROR 

An error message box, with error styling.

◆ NvdQuestionButton

Enumerator containing the possible arguments for nvd_dialog_question_new().

Each field describes the possible answers that will be included in a new NvdQuestionDialog. More specifically:

  • NVD_YES_NO will have the dialog include only two buttons, yes and no (May differ per locale and system, but always affirmative and negative).
  • NVD_YES_NO_CANCEL is the same but also includes a cancel button. Sometimes this is ignored depending on the system.
  • NVD_YES_CANCEL is useful when you want to change the affirmative button's text but want to use cancel for the negative.
    Since
    v0.1.0
    See also
    nvd_dialog_question_new
Enumerator
NVD_YES_NO 
NVD_YES_NO_CANCEL 
NVD_YES_CANCEL 

◆ NvdReply

enum NvdReply

An enumerator containing a possible returned value by nvd_get_reply, when used with an NvdQuestionBox.

See also
nvd_get_reply
Since
v0.1.1
Enumerator
NVD_REPLY_OK 

User accepted the question.

NVD_REPLY_CANCEL 

User cancelled the question. Also used as a fallback.

NVD_REPLY_NO 

User rejected the question.