comparison 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
comparison
equal deleted inserted replaced
2505:a149dabf6a1f 2506:fa976a5bc7bd
3693 case DW_FEATURE_NOTEBOOK_STATUS_TEXT: /* Supports status text area on notebook/tabbed controls */ 3693 case DW_FEATURE_NOTEBOOK_STATUS_TEXT: /* Supports status text area on notebook/tabbed controls */
3694 case DW_FEATURE_NOTIFICATION: /* Supports sending system notifications */ 3694 case DW_FEATURE_NOTIFICATION: /* Supports sending system notifications */
3695 case DW_FEATURE_UTF8_UNICODE: /* Supports UTF8 encoded Unicode text */ 3695 case DW_FEATURE_UTF8_UNICODE: /* Supports UTF8 encoded Unicode text */
3696 case DW_FEATURE_MLE_RICH_EDIT: /* Supports Rich Edit based MLE control (Windows) */ 3696 case DW_FEATURE_MLE_RICH_EDIT: /* Supports Rich Edit based MLE control (Windows) */
3697 case DW_FEATURE_TASK_BAR: /* Supports icons in the taskbar or similar system widget */ 3697 case DW_FEATURE_TASK_BAR: /* Supports icons in the taskbar or similar system widget */
3698 case DW_FEATURE_TREE: .* Supports the Tree Widget */ 3698 case DW_FEATURE_TREE: /* Supports the Tree Widget */
3699 case DW_FEATURE_WINDOW_PLACEMENT: /* Supports arbitrary window placement */
3699 return DW_FEATURE_ENABLED; 3700 return DW_FEATURE_ENABLED;
3700 #endif 3701 #endif
3701 default: 3702 default:
3702 return DW_FEATURE_UNSUPPORTED; 3703 return DW_FEATURE_UNSUPPORTED;
3703 } 3704 }
3734 case DW_FEATURE_NOTEBOOK_STATUS_TEXT: /* Supports status text area on notebook/tabbed controls */ 3735 case DW_FEATURE_NOTEBOOK_STATUS_TEXT: /* Supports status text area on notebook/tabbed controls */
3735 case DW_FEATURE_NOTIFICATION: /* Supports sending system notifications */ 3736 case DW_FEATURE_NOTIFICATION: /* Supports sending system notifications */
3736 case DW_FEATURE_UTF8_UNICODE: /* Supports UTF8 encoded Unicode text */ 3737 case DW_FEATURE_UTF8_UNICODE: /* Supports UTF8 encoded Unicode text */
3737 case DW_FEATURE_MLE_RICH_EDIT: /* Supports Rich Edit based MLE control (Windows) */ 3738 case DW_FEATURE_MLE_RICH_EDIT: /* Supports Rich Edit based MLE control (Windows) */
3738 case DW_FEATURE_TASK_BAR: /* Supports icons in the taskbar or similar system widget */ 3739 case DW_FEATURE_TASK_BAR: /* Supports icons in the taskbar or similar system widget */
3739 case DW_FEATURE_TREE: .* Supports the Tree Widget */ 3740 case DW_FEATURE_TREE: /* Supports the Tree Widget */
3741 case DW_FEATURE_WINDOW_PLACEMENT: /* Supports arbitrary window placement */
3740 return DW_ERROR_GENERAL; 3742 return DW_ERROR_GENERAL;
3741 #endif 3743 #endif
3742 /* These features are supported and configurable */ 3744 /* These features are supported and configurable */
3743 default: 3745 default:
3744 return DW_FEATURE_UNSUPPORTED; 3746 return DW_FEATURE_UNSUPPORTED;