diff template/dw.c @ 2506:fa976a5bc7bd

Add DW_FEATURE_WINDOW_PLACEMENT for platforms supporting arbitrary window placement. Several of the new platforms supported do not allow arbitrary window placement. GTK3/4 with Wayland does not allow you to specify the location, just the size. iOS and Android by default the window is the full screen, or fraction of it. GTK2/3/4 with X11, Windows, OS/2 and MacOS support arbitrary window placement.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 06 May 2021 23:19:46 +0000
parents 0286ac44d347
children 457c91634881
line wrap: on
line diff
--- a/template/dw.c	Thu May 06 22:02:49 2021 +0000
+++ b/template/dw.c	Thu May 06 23:19:46 2021 +0000
@@ -3695,7 +3695,8 @@
         case DW_FEATURE_UTF8_UNICODE:            /* Supports UTF8 encoded Unicode text */
         case DW_FEATURE_MLE_RICH_EDIT:           /* Supports Rich Edit based MLE control (Windows) */
         case DW_FEATURE_TASK_BAR:                /* Supports icons in the taskbar or similar system widget */
-        case DW_FEATURE_TREE:                    .* Supports the Tree Widget */
+        case DW_FEATURE_TREE:                    /* Supports the Tree Widget */
+        case DW_FEATURE_WINDOW_PLACEMENT:        /* Supports arbitrary window placement */
             return DW_FEATURE_ENABLED;
 #endif
         default:
@@ -3736,7 +3737,8 @@
         case DW_FEATURE_UTF8_UNICODE:            /* Supports UTF8 encoded Unicode text */
         case DW_FEATURE_MLE_RICH_EDIT:           /* Supports Rich Edit based MLE control (Windows) */
         case DW_FEATURE_TASK_BAR:                /* Supports icons in the taskbar or similar system widget */
-        case DW_FEATURE_TREE:                    .* Supports the Tree Widget */
+        case DW_FEATURE_TREE:                    /* Supports the Tree Widget */
+        case DW_FEATURE_WINDOW_PLACEMENT:        /* Supports arbitrary window placement */
             return DW_ERROR_GENERAL;
 #endif
         /* These features are supported and configurable */