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
Go to the documentation of this file.
1/*
2 * The MIT License (MIT)
3 *
4 * Copyright (c) 2025 Aggelos Tselios
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 * of this software and associated documentation files (the "Software"), to
8 * deal in the Software without restriction, including without limitation the
9 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10 * sell copies of the Software, and to permit persons to whom the Software is
11 * furnished to do so, subject to the following conditions:
12 *
13 * The above copyright notice and this permission notice shall be included in
14 * all copies or substantial portions of the Software.
15 *
16 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
22 * IN THE SOFTWARE.
23 */
24
25
26#pragma once
27#ifndef __nvdialog_capab_h__
28#define __nvdialog_capab_h__ 1
29
30#include <stdbool.h>
31#include "nvdialog_platform.h"
32
33/**
34 * @brief Enumerator defining nvdialog optional capabilities. To be used with @ref nvd_get_capabilities
35 * @since v0.2.0
36 * @note In v0.10.1 the type name was added (using typedef).
37 * @ingroup Capabilities
38*/
39typedef enum {
40 /**
41 * @brief Has nvdialog been configured to use the Adwaita backend by default?
42 * @deprecated The Adwaita backend has been deprecated as of v0.10.0, any value returned by this is invalid.
43 */
45 /** @brief Is nvdialog linked to the program statically or dynamically? */
47 /**
48 * @brief Is nvdialog configured to be in compatibility mode?:
49 * @warning This will always return false with @ref nvd_get_capabilities. Compatibility mode wasn't implemented properly and went unused.
50 */
53
54/**
55 * @brief Returns the NvDialog's build time detected (optional) features.
56 * @details This function returns the NvDialog's build time capabilities, such
57 * as backends enabled, linkage method and others. It is a work in progress
58 * since most of the library isn't modular.
59 * @param query Which capabilities to query.
60 * @return true if the requested query is supported, else false.
61 * @since v0.2.0
62 * @ingroup Capabilities
63 */
65
66#endif /* __nvdialog_capab_h__ */
#define NVD_API
Definition nvdialog.h:113
NvdCapability
Enumerator defining nvdialog optional capabilities. To be used with nvd_get_capabilities.
Definition nvdialog_capab.h:39
@ NVD_ADW_BACKEND
Has nvdialog been configured to use the Adwaita backend by default?
Definition nvdialog_capab.h:44
@ NVD_COMPAT_MODE
Is nvdialog configured to be in compatibility mode?:
Definition nvdialog_capab.h:51
@ NVD_STATIC_LIB
Is nvdialog linked to the program statically or dynamically?
Definition nvdialog_capab.h:46
NVD_API bool nvd_get_capabilities(int query)
Returns the NvDialog's build time detected (optional) features.