NvDialog 0.10.1
A cross-platform modal dialogs library for C/C++ that uses the native OS theme.
Loading...
Searching...
No Matches
nvdialog_capab.h File Reference
#include <stdbool.h>
#include "nvdialog_platform.h"

Go to the source code of this file.

Macros

#define __nvdialog_capab_h__   1

Enumerations

enum  NvdCapability { NVD_ADW_BACKEND = 0x20 , NVD_STATIC_LIB , NVD_COMPAT_MODE }
 Enumerator defining nvdialog optional capabilities. To be used with nvd_get_capabilities. More...

Functions

NVD_API bool nvd_get_capabilities (int query)
 Returns the NvDialog's build time detected (optional) features.

Macro Definition Documentation

◆ __nvdialog_capab_h__

#define __nvdialog_capab_h__   1

Enumeration Type Documentation

◆ NvdCapability

Enumerator defining nvdialog optional capabilities. To be used with nvd_get_capabilities.

Since
v0.2.0
Note
In v0.10.1 the type name was added (using typedef).
Enumerator
NVD_ADW_BACKEND 

Has nvdialog been configured to use the Adwaita backend by default?

Deprecated
The Adwaita backend has been deprecated as of v0.10.0, any value returned by this is invalid.
NVD_STATIC_LIB 

Is nvdialog linked to the program statically or dynamically?

NVD_COMPAT_MODE 

Is nvdialog configured to be in compatibility mode?:

Warning
This will always return false with nvd_get_capabilities. Compatibility mode wasn't implemented properly and went unused.

Function Documentation

◆ nvd_get_capabilities()

NVD_API bool nvd_get_capabilities ( int query)

Returns the NvDialog's build time detected (optional) features.

This function returns the NvDialog's build time capabilities, such as backends enabled, linkage method and others. It is a work in progress since most of the library isn't modular.

Parameters
queryWhich capabilities to query.
Returns
true if the requested query is supported, else false.
Since
v0.2.0