|
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.
Typedefs | |
| typedef struct _NvdFileDialog | NvdFileDialog |
| An opaque file dialog type, representing either a file dialog that can be used to open a file or save a file, and since v0.9.0, opening a directory instead. | |
Functions | |
| NVD_API NvdFileDialog * | nvd_open_file_dialog_new (const char *title, const char *file_extensions) |
| NVD_API NvdFileDialog * | nvd_save_file_dialog_new (const char *title, const char *default_filename) |
| Creates a new, empty NvdFileDialog object that will be used to save a file in the selected (from the user) location. | |
| NVD_API NvdFileDialog * | nvd_open_folder_dialog_new (const char *title, const char *default_folder) |
| Creates a new, empty NvdFileDialog object that will be used to request a directory or folder in the filesystem. | |
| NVD_API NvdDynamicString * | nvd_get_file_location (NvdFileDialog *dialog) |
| Returns the filesystem path chosen through the NvdFileDialog passed. | |
| NVD_API void * | nvd_open_file_dialog_get_raw (NvdFileDialog *dialog) |
| Returns the raw object behind the dialog. | |
| typedef struct _NvdFileDialog NvdFileDialog |
An opaque file dialog type, representing either a file dialog that can be used to open a file or save a file, and since v0.9.0, opening a directory instead.
| NVD_API NvdDynamicString * nvd_get_file_location | ( | NvdFileDialog * | dialog | ) |
Returns the filesystem path chosen through the NvdFileDialog passed.
This function will return the path on the filesystem from the dialog chosen, that you can then use to either open or save the file given. It works with both save and open file dialog types.
| dialog | The file dialog to take the filename from. |
| NVD_API void * nvd_open_file_dialog_get_raw | ( | NvdFileDialog * | dialog | ) |
Returns the raw object behind the dialog.
| dialog | The dialog to retrieve the object from. |
| NVD_API NvdFileDialog * nvd_open_file_dialog_new | ( | const char * | title, |
| const char * | file_extensions ) |
| NVD_API NvdFileDialog * nvd_open_folder_dialog_new | ( | const char * | title, |
| const char * | default_folder ) |
Creates a new, empty NvdFileDialog object that will be used to request a directory or folder in the filesystem.
| title | The title of the dialog, default is "Open directory" |
| default_folder | Path to the default folder to open. May be ignored in some platforms. |
| NVD_API NvdFileDialog * nvd_save_file_dialog_new | ( | const char * | title, |
| const char * | default_filename ) |
Creates a new, empty NvdFileDialog object that will be used to save a file in the selected (from the user) location.
| title | The title of the dialog, default is "Save file" |
| default_filename | The default filename to use for saving. |