33 |
33 |
34 #ifdef __cplusplus |
34 #ifdef __cplusplus |
35 extern "C" { |
35 extern "C" { |
36 #endif |
36 #endif |
37 |
37 |
|
38 #define UI_FILEDIALOG_SELECT_SINGLE 0 |
|
39 #define UI_FILEDIALOG_SELECT_MULTI 1 |
|
40 #define UI_FILEDIALOG_SELECT_FOLDER 2 |
|
41 |
|
42 typedef struct UiFileList { |
|
43 char **files; |
|
44 size_t nfiles; |
|
45 } UiFileList; |
|
46 |
38 UIEXPORT UiObject* ui_window(const char *title, void *window_data); |
47 UIEXPORT UiObject* ui_window(const char *title, void *window_data); |
39 UIEXPORT UiObject* ui_simplewindow(char *title, void *window_data); |
48 UIEXPORT UiObject* ui_simplewindow(char *title, void *window_data); |
40 |
49 |
41 UIEXPORT void ui_window_size(UiObject *obj, int width, int height); |
50 UIEXPORT void ui_window_size(UiObject *obj, int width, int height); |
42 |
51 |
43 char* ui_openfiledialog(UiObject *obj); |
52 UIEXPORT void ui_openfiledialog(UiObject *obj, unsigned int mode, ui_callback file_selected_callback, void *cbdata); |
44 char* ui_savefiledialog(UiObject *obj); |
53 UIEXPORT void ui_savefiledialog(UiObject *obj, unsigned int mode, ui_callback file_selected_callback, void *cbdata); |
45 |
54 |
46 #ifdef __cplusplus |
55 #ifdef __cplusplus |
47 } |
56 } |
48 #endif |
57 #endif |
49 |
58 |