comparison dw.h @ 2006:6f1adc77de02

GTK: Added DW_SIGNAL_HTML_CHANGED and DW_SIGNAL_HTML_RESULT. Added dw_html_javascript_run(). Full support on GTK3 using WebKit2 and partial support for WebKit1. Will port to GTK2 when WebKit1 support is complete. Mac and Windows versions coming soon.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Wed, 06 Nov 2019 13:09:31 +0000
parents a17cc1958369
children 89d62197124b
comparison
equal deleted inserted replaced
2005:a17cc1958369 2006:6f1adc77de02
54 #define DW_SIGNAL_SET_FOCUS "set-focus" 54 #define DW_SIGNAL_SET_FOCUS "set-focus"
55 #define DW_SIGNAL_VALUE_CHANGED "value_changed" 55 #define DW_SIGNAL_VALUE_CHANGED "value_changed"
56 #define DW_SIGNAL_SWITCH_PAGE "switch-page" 56 #define DW_SIGNAL_SWITCH_PAGE "switch-page"
57 #define DW_SIGNAL_COLUMN_CLICK "click-column" 57 #define DW_SIGNAL_COLUMN_CLICK "click-column"
58 #define DW_SIGNAL_TREE_EXPAND "tree-expand" 58 #define DW_SIGNAL_TREE_EXPAND "tree-expand"
59 #define DW_SIGNAL_HTML_CHANGED "html-changed"
60 #define DW_SIGNAL_HTML_RESULT "html-result"
59 61
60 /* status of menu items */ 62 /* status of menu items */
61 #define DW_MIS_ENABLED 1 63 #define DW_MIS_ENABLED 1
62 #define DW_MIS_DISABLED (1 << 1) 64 #define DW_MIS_DISABLED (1 << 1)
63 #define DW_MIS_CHECKED (1 << 2) 65 #define DW_MIS_CHECKED (1 << 2)
1440 #define DW_HTML_GOHOME 2 1442 #define DW_HTML_GOHOME 2
1441 #define DW_HTML_SEARCH 3 1443 #define DW_HTML_SEARCH 3
1442 #define DW_HTML_RELOAD 4 1444 #define DW_HTML_RELOAD 4
1443 #define DW_HTML_STOP 5 1445 #define DW_HTML_STOP 5
1444 #define DW_HTML_PRINT 6 1446 #define DW_HTML_PRINT 6
1447
1448 /* Embedded HTML notifcations */
1449 #define DW_HTML_CHANGE_STARTED 1
1450 #define DW_HTML_CHANGE_REDIRECT 2
1451 #define DW_HTML_CHANGE_LOADING 3
1452 #define DW_HTML_CHANGE_COMPLETE 4
1445 1453
1446 /* Drawing flags */ 1454 /* Drawing flags */
1447 #define DW_DRAW_DEFAULT 0 1455 #define DW_DRAW_DEFAULT 0
1448 #define DW_DRAW_FILL 1 1456 #define DW_DRAW_FILL 1
1449 #define DW_DRAW_FULL (1 << 1) 1457 #define DW_DRAW_FULL (1 << 1)
1807 HSHM API dw_named_memory_get(void **dest, int size, char *name); 1815 HSHM API dw_named_memory_get(void **dest, int size, char *name);
1808 int API dw_named_memory_free(HSHM handle, void *ptr); 1816 int API dw_named_memory_free(HSHM handle, void *ptr);
1809 void API dw_html_action(HWND hwnd, int action); 1817 void API dw_html_action(HWND hwnd, int action);
1810 int API dw_html_raw(HWND hwnd, char *string); 1818 int API dw_html_raw(HWND hwnd, char *string);
1811 int API dw_html_url(HWND hwnd, char *url); 1819 int API dw_html_url(HWND hwnd, char *url);
1820 int API dw_html_javascript_run(HWND hwnd, char *script, void *scriptdata);
1812 HWND API dw_html_new(unsigned long id); 1821 HWND API dw_html_new(unsigned long id);
1813 char * API dw_clipboard_get_text(void); 1822 char * API dw_clipboard_get_text(void);
1814 void API dw_clipboard_set_text( char *str, int len ); 1823 void API dw_clipboard_set_text( char *str, int len );
1815 HWND API dw_calendar_new(unsigned long id); 1824 HWND API dw_calendar_new(unsigned long id);
1816 void API dw_calendar_set_date( HWND window, unsigned int year, unsigned int month, unsigned int day ); 1825 void API dw_calendar_set_date( HWND window, unsigned int year, unsigned int month, unsigned int day );