|
NvDialog 0.10.1
A cross-platform modal dialogs library for C/C++ that uses the native OS theme.
|
Go to the source code of this file.
Macros | |
| #define | __nvdialog_core_h__ 1 |
Typedefs | |
| typedef void * | NvdParentWindow |
| An opaque representation of a window object. | |
Functions | |
| NVD_API int | nvd_init () |
| Initializes NvDialog. | |
| NVD_API void | nvd_set_application_name (const char *application_name) |
| Sets the application name to use inside NvDialog. | |
| NVD_API const char * | nvd_get_application_name () |
| Returns the application name set inside NvDialog. | |
| NVD_API const char * | nvd_get_argv (void) |
| Returns the argv[0] given to nvdialog. | |
| NVD_API int | nvd_set_parent (NvdParentWindow parent) |
| Sets a window as the parent of all dialogs created from NvDialog. | |
| NVD_API NvdParentWindow | nvd_get_parent (void) |
| Returns the window attached as the parent of all dialogs of NvDialog. | |
| NVD_API void | nvd_delete_parent (void) |
| Unmarks the window set from nvd_set_parent as the parent window. | |
| NVD_API void | nvd_free_object (void *object) |
| Deletes an object creates by NvDialog. | |
| #define __nvdialog_core_h__ 1 |
| typedef void* NvdParentWindow |
An opaque representation of a window object.
| NVD_API void nvd_delete_parent | ( | void | ) |
Unmarks the window set from nvd_set_parent as the parent window.
This will reset the changes made by nvd_set_parent, by unmarking the window that is given as the parent from NvDialog.
| NVD_API void nvd_free_object | ( | void * | object | ) |
Deletes an object creates by NvDialog.
Call this function when you are no longer interested in using the parameter passed anymore, to free up any resources occupied by the object. Note that calling this in the middle of an operation will cause use after free.
| object | The object to be deleted. |
| NVD_API const char * nvd_get_application_name | ( | ) |
Returns the application name set inside NvDialog.
| NVD_API const char * nvd_get_argv | ( | void | ) |
Returns the argv[0] given to nvdialog.
This function returns the parameter passed to nvdialog during nvd_init. It is mainly intended to be used internally.
| NVD_API NvdParentWindow nvd_get_parent | ( | void | ) |
Returns the window attached as the parent of all dialogs of NvDialog.
| NVD_API int nvd_init | ( | ) |
Initializes NvDialog.
This function initializes NvDialog. It's the first function that should be called when you create your program as without it, you cannot create any dialogs or use the library at all.
Depending on the platform, this function does a series of things (in random order):
| NVD_API void nvd_set_application_name | ( | const char * | application_name | ) |
Sets the application name to use inside NvDialog.
This function sets the application name that NvDialog will use if an application name is needed. By default, the application name is set to "NvDialog Application". The application name is used in notifications, so it is important to set the actual application name if you wish to use them.
| application_name | The application name to use. |
| NVD_API int nvd_set_parent | ( | NvdParentWindow | parent | ) |
Sets a window as the parent of all dialogs created from NvDialog.
Using the parameter given, a window will be set as the parent of all dialogs that are created from within the library. The window has to match the window type used by the backend.
| parent | The window to set as the parent. |