diff dw.h @ 2127:663467f6eee4

Code cleanup: Add constants to header for dark mode, buffer sizes and Unicode support. Windows and OS/2 can both be built without Unicode support for legacy platforms and apps. Some new Windows features require Unicode (notifications, edge) and Unicode is buggy on OS/2. Can now check if Unicode is supported with the DW_FEATURE_UTF8_UNICODE feature test. Dark mode constants added DW_DARK_MODE_DISABLED/BASIC/FULL/FORCED. Win: Include dw.h in the WinToast glue for the constants, and improve safety in Edge glue.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 28 Jun 2020 20:34:25 +0000
parents 251d050d306b
children 42f8ad7a89e8
line wrap: on
line diff
--- a/dw.h	Sun Jun 28 05:39:08 2020 +0000
+++ b/dw.h	Sun Jun 28 20:34:25 2020 +0000
@@ -1331,6 +1331,15 @@
 typedef unsigned long DWTID;
 #endif
 
+/* Some dark mode constants for supported platforms */
+#define DW_DARK_MODE_DISABLED 0
+#define DW_DARK_MODE_BASIC    1
+#define DW_DARK_MODE_FULL     2
+#define DW_DARK_MODE_FORCED   3
+
+/* Application ID support lengths */
+#define _DW_APP_ID_SIZE 100
+
 /* Use at least the linux utsname limit to avoid gcc fortify warnings */
 #define _DW_ENV_STRING_SIZE 65
 
@@ -1485,6 +1494,7 @@
     DW_FEATURE_MDI,                     /* Supports Multiple Document Interface window frame */
     DW_FEATURE_NOTEBOOK_STATUS_TEXT,    /* Supports status text area on notebook/tabbed controls */
     DW_FEATURE_NOTIFICATION,            /* Supports sending system notifications */
+    DW_FEATURE_UTF8_UNICODE,            /* Supports UTF8 encoded Unicode text */
     DW_FEATURE_MAX
 } DWFEATURE;