GFXprim
2D bitmap graphics library with emphasis on speed and correctness
Loading...
Searching...
No Matches
gp_dialog_file.h
Go to the documentation of this file.
1//SPDX-License-Identifier: LGPL-2.0-or-later
2
3/*
4
5 Copyright (c) 2014-2021 Cyril Hrubis <metan@ucw.cz>
6
7 */
8
14#ifndef GP_DIALOG_FILE_H
15#define GP_DIALOG_FILE_H
16
17#include <widgets/gp_widget_types.h>
18
19enum gp_dialog_file_open_exit {
20 GP_WIDGET_DIALOG_PATH = 1,
21 GP_WIDGET_DIALOG_CANCEL = 2,
22};
23
28 GP_DIALOG_OPEN_FILE = 0x01,
29 GP_DIALOG_OPEN_DIR = 0x02,
30};
31
41
50 const gp_dialog_file_opts *opts);
51
58const char *gp_dialog_file_path(gp_dialog *self);
59
68 const gp_dialog_file_opts *opts);
69
70#endif /* GP_WIDGET_DIALOG_FILE_H */
gp_dialog * gp_dialog_file_open_new(const char *path, const gp_dialog_file_opts *opts)
Creates a file open dialog.
gp_dialog * gp_dialog_file_save_new(const char *path, const gp_dialog_file_opts *opts)
Creates a file save dialog.
const char * gp_dialog_file_path(gp_dialog *self)
Returns a file path for the file dalogs.
gp_dialog_file_open_flags
Open file or directory.
A file dialog options.
const char *const * ext_hints
enum gp_dialog_file_open_flags flags
A dialog.
Definition gp_dialog.h:26