Mercurial > dwindows
comparison dw.h @ 2090:cdb94c6fd611
Added initial implmentation of dw_feature_get/set() on all platforms.
Only tested on Windows.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Thu, 11 Jun 2020 01:11:23 +0000 |
parents | f1acc157b2dd |
children | 10c22853b479 |
comparison
equal
deleted
inserted
replaced
2089:bcc7877dcdac | 2090:cdb94c6fd611 |
---|---|
1464 | 1464 |
1465 /* MLE Completion flags */ | 1465 /* MLE Completion flags */ |
1466 #define DW_MLE_COMPLETE_TEXT 1 | 1466 #define DW_MLE_COMPLETE_TEXT 1 |
1467 #define DW_MLE_COMPLETE_DASH (1 << 1) | 1467 #define DW_MLE_COMPLETE_DASH (1 << 1) |
1468 #define DW_MLE_COMPLETE_QUOTE (1 << 2) | 1468 #define DW_MLE_COMPLETE_QUOTE (1 << 2) |
1469 | |
1470 /* Library feature constants */ | |
1471 #define DW_FEATURE_UNSUPPORTED -1 | |
1472 #define DW_FEATURE_DISABLED 0 | |
1473 #define DW_FEATURE_ENABLED 1 | |
1474 | |
1475 typedef enum | |
1476 { | |
1477 DW_FEATURE_HTML = 0, /* Supports the HTML Widget */ | |
1478 DW_FEATURE_HTML_RESULT, /* Supports the DW_SIGNAL_HTML_RESULT callback */ | |
1479 DW_FEATURE_WINDOW_BORDER, /* Supports custom window border sizes */ | |
1480 DW_FEATURE_WINDOW_TRANSPARENCY, /* Supports window frame transparency */ | |
1481 DW_FEATURE_DARK_MODE, /* Supports Dark Mode user interface */ | |
1482 DW_FEATURE_MLE_AUTO_COMPLETE, /* Supports auto completion in Multi-line Edit boxes */ | |
1483 DW_FEATURE_MLE_WORD_WRAP, /* Supports word wrapping in Multi-line Edit boxes */ | |
1484 DW_FEATURE_CONTAINER_STRIPE, /* Supports striped line display in container widgets */ | |
1485 DW_FEATURE_MDI, /* Supports Multiple Document Interface window frame */ | |
1486 DW_FEATURE_NOTEBOOK_STATUS_TEXT, /* Supports status text area on notebook/tabbed controls */ | |
1487 DW_FEATURE_NOTIFICATION, /* Supports sending system notifications */ | |
1488 DW_FEATURE_MAX | |
1489 } DWFEATURE; | |
1469 | 1490 |
1470 /* Macro for casting resource IDs to HICN */ | 1491 /* Macro for casting resource IDs to HICN */ |
1471 #define DW_RESOURCE(a) (a < 65536 ? (HICN)a : (HICN)0) | 1492 #define DW_RESOURCE(a) (a < 65536 ? (HICN)a : (HICN)0) |
1472 | 1493 |
1473 #include <limits.h> | 1494 #include <limits.h> |
1838 void API dw_print_cancel(HPRINT print); | 1859 void API dw_print_cancel(HPRINT print); |
1839 HWND API dw_notification_new(const char *title, HPIXMAP pixmap, const char *description, ...); | 1860 HWND API dw_notification_new(const char *title, HPIXMAP pixmap, const char *description, ...); |
1840 int API dw_notification_send(HWND notification); | 1861 int API dw_notification_send(HWND notification); |
1841 wchar_t * API dw_utf8_to_wchar(const char *utf8string); | 1862 wchar_t * API dw_utf8_to_wchar(const char *utf8string); |
1842 char * API dw_wchar_to_utf8(const wchar_t *wstring); | 1863 char * API dw_wchar_to_utf8(const wchar_t *wstring); |
1864 int API dw_feature_get(DWFEATURE feature); | |
1865 int API dw_feature_set(DWFEATURE feature, int state); | |
1843 /* Exported for language bindings */ | 1866 /* Exported for language bindings */ |
1844 void API _dw_init_thread(void); | 1867 void API _dw_init_thread(void); |
1845 void API _dw_deinit_thread(void); | 1868 void API _dw_deinit_thread(void); |
1846 | 1869 |
1847 #ifdef __cplusplus | 1870 #ifdef __cplusplus |