Mercurial > dwindows
comparison dw.h @ 2795:5c61aba17b69
Android: Change dw_file_browse() to return URIs or paths on Android.
Paths will be returned if either DW_DIRECTORY_OPEN or DW_FILE_PATH flags are
specified. Otherwise a URI may be returned. The double string method of
returning both path and URI has been removed. DW_FILE_PATH and DW_FILE_MASK
have been added, but are really only used on Android.
__DW_MOBILE__ will be defined on Mobile platforms such as iOS and Android.
__DW_DESKTOP__ will be defined on most other desktop operating systems.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 15 Jul 2022 11:50:09 +0000 |
parents | 20d39af27aa4 |
children | 708bcef0ce6b |
comparison
equal
deleted
inserted
replaced
2794:7ce51a7e8009 | 2795:5c61aba17b69 |
---|---|
9 | 9 |
10 /* Dynamic Windows version numbers */ | 10 /* Dynamic Windows version numbers */ |
11 #define DW_MAJOR_VERSION 3 | 11 #define DW_MAJOR_VERSION 3 |
12 #define DW_MINOR_VERSION 3 | 12 #define DW_MINOR_VERSION 3 |
13 #define DW_SUB_VERSION 0 | 13 #define DW_SUB_VERSION 0 |
14 | |
15 /* General application type defines */ | |
16 #if defined(__IOS__) || defined(__ANDROID__) | |
17 #define __DW_MOBILE__ 1 | |
18 #else | |
19 #define __DW_DESKTOP__ 1 | |
20 #endif | |
14 | 21 |
15 #define DW_HOME_URL "http://dwindows.netlabs.org" | 22 #define DW_HOME_URL "http://dwindows.netlabs.org" |
16 | 23 |
17 /* Support for API deprecation in supported compilers */ | 24 /* Support for API deprecation in supported compilers */ |
18 #ifndef __has_attribute | 25 #ifndef __has_attribute |
1699 #define DW_EXEC_GUI 1 | 1706 #define DW_EXEC_GUI 1 |
1700 | 1707 |
1701 #define DW_FILE_OPEN 0 | 1708 #define DW_FILE_OPEN 0 |
1702 #define DW_FILE_SAVE 1 | 1709 #define DW_FILE_SAVE 1 |
1703 #define DW_DIRECTORY_OPEN 2 | 1710 #define DW_DIRECTORY_OPEN 2 |
1711 #ifdef __ANDROID__ | |
1712 #define DW_FILE_PATH (1 << 16) | |
1713 #else | |
1714 #define DW_FILE_PATH 0 | |
1715 #endif | |
1716 #define DW_FILE_MASK (0x0000FFFF) | |
1704 | 1717 |
1705 #define DW_HORZ 0 | 1718 #define DW_HORZ 0 |
1706 #define DW_VERT 1 | 1719 #define DW_VERT 1 |
1707 | 1720 |
1708 #define DW_TIMEOUT_INFINITE ((unsigned long)-1) | 1721 #define DW_TIMEOUT_INFINITE ((unsigned long)-1) |