comparison gtk/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
comparison
equal deleted inserted replaced
2505:a149dabf6a1f 2506:fa976a5bc7bd
14006 #endif 14006 #endif
14007 case DW_FEATURE_CONTAINER_STRIPE: 14007 case DW_FEATURE_CONTAINER_STRIPE:
14008 case DW_FEATURE_UTF8_UNICODE: 14008 case DW_FEATURE_UTF8_UNICODE:
14009 case DW_FEATURE_MLE_WORD_WRAP: 14009 case DW_FEATURE_MLE_WORD_WRAP:
14010 case DW_FEATURE_TREE: 14010 case DW_FEATURE_TREE:
14011 case DW_FEATURE_WINDOW_PLACEMENT:
14011 return DW_FEATURE_ENABLED; 14012 return DW_FEATURE_ENABLED;
14012 default: 14013 default:
14013 return DW_FEATURE_UNSUPPORTED; 14014 return DW_FEATURE_UNSUPPORTED;
14014 } 14015 }
14015 } 14016 }
14046 #endif 14047 #endif
14047 case DW_FEATURE_CONTAINER_STRIPE: 14048 case DW_FEATURE_CONTAINER_STRIPE:
14048 case DW_FEATURE_UTF8_UNICODE: 14049 case DW_FEATURE_UTF8_UNICODE:
14049 case DW_FEATURE_MLE_WORD_WRAP: 14050 case DW_FEATURE_MLE_WORD_WRAP:
14050 case DW_FEATURE_TREE: 14051 case DW_FEATURE_TREE:
14052 case DW_FEATURE_WINDOW_PLACEMENT:
14051 return DW_ERROR_GENERAL; 14053 return DW_ERROR_GENERAL;
14052 /* These features are supported and configurable */ 14054 /* These features are supported and configurable */
14053 default: 14055 default:
14054 return DW_FEATURE_UNSUPPORTED; 14056 return DW_FEATURE_UNSUPPORTED;
14055 } 14057 }