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) 2022, 2023 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#ifdef __cplusplus
34extern "C" {
35#endif /* __cplusplus */
36
37/**
38 * @brief Enumerator defining nvdialog optional capabilities. To be used with @ref nvd_get_capabilities
39 * @since v0.2.0
40 * @note In v0.10.1 the type name was added (using typedef).
41 * @ingroup Capabilities
42*/
43typedef enum {
44 /**
45 * @brief Has nvdialog been configured to use the Adwaita backend by default?
46 * @deprecated The Adwaita backend has been deprecated as of v0.10.0, any value returned by this is invalid.
47 */
49 /** @brief Is nvdialog linked to the program statically or dynamically? */
51 /**
52 * @brief Is nvdialog configured to be in compatibility mode?:
53 * @warning This will always return false with @ref nvd_get_capabilities. Compatibility mode wasn't implemented properly and went unused.
54 */
57
58/**
59 * @brief Returns the NvDialog's build time detected (optional) features.
60 * @details This function returns the NvDialog's build time capabilities, such
61 * as backends enabled, linkage method and others. It is a work in progress
62 * since most of the library isn't modular.
63 * @param query Which capabilities to query.
64 * @return true if the requested query is supported, else false.
65 * @since v0.2.0
66 * @ingroup Capabilities
67 */
69
70#ifdef __cplusplus
71}
72#endif /* __cplusplus */
73
74#endif /* __nvdialog_capab_h__ */
NvdCapability
Enumerator defining nvdialog optional capabilities. To be used with nvd_get_capabilities.
Definition: nvdialog_capab.h:43
@ NVD_ADW_BACKEND
Has nvdialog been configured to use the Adwaita backend by default?
Definition: nvdialog_capab.h:48
@ NVD_COMPAT_MODE
Is nvdialog configured to be in compatibility mode?:
Definition: nvdialog_capab.h:55
@ NVD_STATIC_LIB
Is nvdialog linked to the program statically or dynamically?
Definition: nvdialog_capab.h:50
NVD_API bool nvd_get_capabilities(int query)
Returns the NvDialog's build time detected (optional) features.
#define NVD_API
Definition: nvdialog_platform.h:57