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