Mercurial > dwindows
comparison mac/dw.m @ 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 | cfb14192753c |
children | 457c91634881 |
comparison
equal
deleted
inserted
replaced
2505:a149dabf6a1f | 2506:fa976a5bc7bd |
---|---|
13177 case DW_FEATURE_HTML_RESULT: | 13177 case DW_FEATURE_HTML_RESULT: |
13178 case DW_FEATURE_CONTAINER_STRIPE: | 13178 case DW_FEATURE_CONTAINER_STRIPE: |
13179 case DW_FEATURE_MLE_WORD_WRAP: | 13179 case DW_FEATURE_MLE_WORD_WRAP: |
13180 case DW_FEATURE_UTF8_UNICODE: | 13180 case DW_FEATURE_UTF8_UNICODE: |
13181 case DW_FEATURE_TREE: | 13181 case DW_FEATURE_TREE: |
13182 case DW_FEATURE_WINDOW_PLACEMENT: | |
13182 return DW_FEATURE_ENABLED; | 13183 return DW_FEATURE_ENABLED; |
13183 #ifdef BUILDING_FOR_MOJAVE | 13184 #ifdef BUILDING_FOR_MOJAVE |
13184 case DW_FEATURE_DARK_MODE: | 13185 case DW_FEATURE_DARK_MODE: |
13185 { | 13186 { |
13186 if(@available(macOS 10.14, *)) | 13187 if(@available(macOS 10.14, *)) |
13247 case DW_FEATURE_HTML_RESULT: | 13248 case DW_FEATURE_HTML_RESULT: |
13248 case DW_FEATURE_CONTAINER_STRIPE: | 13249 case DW_FEATURE_CONTAINER_STRIPE: |
13249 case DW_FEATURE_MLE_WORD_WRAP: | 13250 case DW_FEATURE_MLE_WORD_WRAP: |
13250 case DW_FEATURE_UTF8_UNICODE: | 13251 case DW_FEATURE_UTF8_UNICODE: |
13251 case DW_FEATURE_TREE: | 13252 case DW_FEATURE_TREE: |
13253 case DW_FEATURE_WINDOW_PLACEMENT: | |
13252 return DW_ERROR_GENERAL; | 13254 return DW_ERROR_GENERAL; |
13253 /* These features are supported and configurable */ | 13255 /* These features are supported and configurable */ |
13254 #ifdef BUILDING_FOR_MOJAVE | 13256 #ifdef BUILDING_FOR_MOJAVE |
13255 case DW_FEATURE_DARK_MODE: | 13257 case DW_FEATURE_DARK_MODE: |
13256 { | 13258 { |