comparison dw.h @ 2034:89d62197124b

Visual C in C++ mode complains about missing const declarations in paramaters. So adding const to any string parameters which are not written to. Probably going to require changes to the other platforms due to header changes.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 17 Nov 2019 03:13:37 +0000
parents 6f1adc77de02
children ea303d356419
comparison
equal deleted inserted replaced
2033:d81d2ea806c6 2034:89d62197124b
1578 int API dw_window_minimize(HWND handle); 1578 int API dw_window_minimize(HWND handle);
1579 int API dw_window_raise(HWND handle); 1579 int API dw_window_raise(HWND handle);
1580 int API dw_window_lower(HWND handle); 1580 int API dw_window_lower(HWND handle);
1581 int API dw_window_destroy(HWND handle); 1581 int API dw_window_destroy(HWND handle);
1582 void API dw_window_redraw(HWND handle); 1582 void API dw_window_redraw(HWND handle);
1583 int API dw_window_set_font(HWND handle, char *fontname); 1583 int API dw_window_set_font(HWND handle, const char *fontname);
1584 char * API dw_window_get_font(HWND handle); 1584 char * API dw_window_get_font(HWND handle);
1585 int API dw_window_set_color(HWND handle, unsigned long fore, unsigned long back); 1585 int API dw_window_set_color(HWND handle, unsigned long fore, unsigned long back);
1586 HWND API dw_window_new(HWND hwndOwner, char *title, unsigned long flStyle); 1586 HWND API dw_window_new(HWND hwndOwner, const char *title, unsigned long flStyle);
1587 HWND API dw_box_new(int type, int pad); 1587 HWND API dw_box_new(int type, int pad);
1588 HWND API dw_scrollbox_new(int type, int pad); 1588 HWND API dw_scrollbox_new(int type, int pad);
1589 int API dw_scrollbox_get_pos( HWND handle, int orient ); 1589 int API dw_scrollbox_get_pos( HWND handle, int orient );
1590 int API dw_scrollbox_get_range( HWND handle, int orient ); 1590 int API dw_scrollbox_get_range( HWND handle, int orient );
1591 HWND API dw_groupbox_new(int type, int pad, char *title); 1591 HWND API dw_groupbox_new(int type, int pad, const char *title);
1592 DW_DEPRECATED(HWND API dw_mdi_new(unsigned long id), "Due to lack of full Mac support consider avoiding this function."); 1592 DW_DEPRECATED(HWND API dw_mdi_new(unsigned long id), "Due to lack of full Mac support consider avoiding this function.");
1593 HWND API dw_bitmap_new(unsigned long id); 1593 HWND API dw_bitmap_new(unsigned long id);
1594 HWND API dw_bitmapbutton_new(char *text, unsigned long id); 1594 HWND API dw_bitmapbutton_new(const char *text, unsigned long id);
1595 HWND API dw_bitmapbutton_new_from_file(char *text, unsigned long id, char *filename); 1595 HWND API dw_bitmapbutton_new_from_file(const char *text, unsigned long id, const char *filename);
1596 HWND API dw_bitmapbutton_new_from_data(char *text, unsigned long id, char *str, int len); 1596 HWND API dw_bitmapbutton_new_from_data(const char *text, unsigned long id, const char *str, int len);
1597 HWND API dw_container_new(unsigned long id, int multi); 1597 HWND API dw_container_new(unsigned long id, int multi);
1598 HWND API dw_tree_new(unsigned long id); 1598 HWND API dw_tree_new(unsigned long id);
1599 HWND API dw_text_new(char *text, unsigned long id); 1599 HWND API dw_text_new(const char *text, unsigned long id);
1600 HWND API dw_status_text_new(char *text, unsigned long id); 1600 HWND API dw_status_text_new(const char *text, unsigned long id);
1601 HWND API dw_mle_new(unsigned long id); 1601 HWND API dw_mle_new(unsigned long id);
1602 HWND API dw_entryfield_new(char *text, unsigned long id); 1602 HWND API dw_entryfield_new(char *text, unsigned long id);
1603 HWND API dw_entryfield_password_new(char *text, ULONG id); 1603 HWND API dw_entryfield_password_new(const char *text, ULONG id);
1604 HWND API dw_combobox_new(char *text, unsigned long id); 1604 HWND API dw_combobox_new(char *text, unsigned long id);
1605 HWND API dw_button_new(char *text, unsigned long id); 1605 HWND API dw_button_new(char *text, unsigned long id);
1606 HWND API dw_spinbutton_new(char *text, unsigned long id); 1606 HWND API dw_spinbutton_new(char const *text, unsigned long id);
1607 HWND API dw_radiobutton_new(char *text, ULONG id); 1607 HWND API dw_radiobutton_new(char *text, ULONG id);
1608 HWND API dw_percent_new(unsigned long id); 1608 HWND API dw_percent_new(unsigned long id);
1609 HWND API dw_slider_new(int vertical, int increments, ULONG id); 1609 HWND API dw_slider_new(int vertical, int increments, ULONG id);
1610 HWND API dw_scrollbar_new(int vertical, ULONG id); 1610 HWND API dw_scrollbar_new(int vertical, ULONG id);
1611 HWND API dw_checkbox_new(char *text, unsigned long id); 1611 HWND API dw_checkbox_new(char *text, unsigned long id);
1612 HWND API dw_listbox_new(unsigned long id, int multi); 1612 HWND API dw_listbox_new(unsigned long id, int multi);
1613 void API dw_listbox_append(HWND handle, char *text); 1613 void API dw_listbox_append(HWND handle, const char *text);
1614 void API dw_listbox_insert(HWND handle, char *text, int pos); 1614 void API dw_listbox_insert(HWND handle, char *text, int pos);
1615 void API dw_listbox_list_append(HWND handle, char **text, int count); 1615 void API dw_listbox_list_append(HWND handle, char **text, int count);
1616 void API dw_listbox_clear(HWND handle); 1616 void API dw_listbox_clear(HWND handle);
1617 int API dw_listbox_count(HWND handle); 1617 int API dw_listbox_count(HWND handle);
1618 void API dw_listbox_set_top(HWND handle, int top); 1618 void API dw_listbox_set_top(HWND handle, int top);
1619 void API dw_listbox_select(HWND handle, int index, int state); 1619 void API dw_listbox_select(HWND handle, int index, int state);
1620 void API dw_listbox_delete(HWND handle, int index); 1620 void API dw_listbox_delete(HWND handle, int index);
1621 void API dw_listbox_get_text(HWND handle, unsigned int index, char *buffer, unsigned int length); 1621 void API dw_listbox_get_text(HWND handle, unsigned int index, char *buffer, unsigned int length);
1622 void API dw_listbox_set_text(HWND handle, unsigned int index, char *buffer); 1622 void API dw_listbox_set_text(HWND handle, unsigned int index, const char *buffer);
1623 int API dw_listbox_selected(HWND handle); 1623 int API dw_listbox_selected(HWND handle);
1624 int API dw_listbox_selected_multi(HWND handle, int where); 1624 int API dw_listbox_selected_multi(HWND handle, int where);
1625 void API dw_percent_set_pos(HWND handle, unsigned int position); 1625 void API dw_percent_set_pos(HWND handle, unsigned int position);
1626 unsigned int API dw_slider_get_pos(HWND handle); 1626 unsigned int API dw_slider_get_pos(HWND handle);
1627 void API dw_slider_set_pos(HWND handle, unsigned int position); 1627 void API dw_slider_set_pos(HWND handle, unsigned int position);
1634 void API dw_window_get_pos_size(HWND handle, long *x, long *y, unsigned long *width, unsigned long *height); 1634 void API dw_window_get_pos_size(HWND handle, long *x, long *y, unsigned long *width, unsigned long *height);
1635 void API dw_window_get_preferred_size(HWND handle, int *width, int *height); 1635 void API dw_window_get_preferred_size(HWND handle, int *width, int *height);
1636 void API dw_window_set_gravity(HWND handle, int horz, int vert); 1636 void API dw_window_set_gravity(HWND handle, int horz, int vert);
1637 void API dw_window_set_style(HWND handle, unsigned long style, unsigned long mask); 1637 void API dw_window_set_style(HWND handle, unsigned long style, unsigned long mask);
1638 void API dw_window_set_icon(HWND handle, HICN icon); 1638 void API dw_window_set_icon(HWND handle, HICN icon);
1639 void API dw_window_set_bitmap(HWND handle, unsigned long id, char *filename); 1639 void API dw_window_set_bitmap(HWND handle, unsigned long id, const char *filename);
1640 void API dw_window_set_bitmap_from_data(HWND handle, unsigned long id, char *data, int len); 1640 void API dw_window_set_bitmap_from_data(HWND handle, unsigned long id, const char *data, int len);
1641 char * API dw_window_get_text(HWND handle); 1641 char * API dw_window_get_text(HWND handle);
1642 void API dw_window_set_text(HWND handle, char *text); 1642 void API dw_window_set_text(HWND handle, const char *text);
1643 void API dw_window_set_tooltip(HWND handle, char *bubbletext); 1643 void API dw_window_set_tooltip(HWND handle, const char *bubbletext);
1644 int API dw_window_set_border(HWND handle, int border); 1644 int API dw_window_set_border(HWND handle, int border);
1645 void API dw_window_disable(HWND handle); 1645 void API dw_window_disable(HWND handle);
1646 void API dw_window_enable(HWND handle); 1646 void API dw_window_enable(HWND handle);
1647 void API dw_window_capture(HWND handle); 1647 void API dw_window_capture(HWND handle);
1648 void API dw_window_release(void); 1648 void API dw_window_release(void);
1668 void API dw_spinbutton_set_limits(HWND handle, long upper, long lower); 1668 void API dw_spinbutton_set_limits(HWND handle, long upper, long lower);
1669 void API dw_entryfield_set_limit(HWND handle, ULONG limit); 1669 void API dw_entryfield_set_limit(HWND handle, ULONG limit);
1670 long API dw_spinbutton_get_pos(HWND handle); 1670 long API dw_spinbutton_get_pos(HWND handle);
1671 int API dw_checkbox_get(HWND handle); 1671 int API dw_checkbox_get(HWND handle);
1672 void API dw_checkbox_set(HWND handle, int value); 1672 void API dw_checkbox_set(HWND handle, int value);
1673 HTREEITEM API dw_tree_insert(HWND handle, char *title, HICN icon, HTREEITEM parent, void *itemdata); 1673 HTREEITEM API dw_tree_insert(HWND handle, const char *title, HICN icon, HTREEITEM parent, void *itemdata);
1674 HTREEITEM API dw_tree_insert_after(HWND handle, HTREEITEM item, char *title, HICN icon, HTREEITEM parent, void *itemdata); 1674 HTREEITEM API dw_tree_insert_after(HWND handle, HTREEITEM item, const char *title, HICN icon, HTREEITEM parent, void *itemdata);
1675 void API dw_tree_clear(HWND handle); 1675 void API dw_tree_clear(HWND handle);
1676 void API dw_tree_item_delete(HWND handle, HTREEITEM item); 1676 void API dw_tree_item_delete(HWND handle, HTREEITEM item);
1677 void API dw_tree_item_change(HWND handle, HTREEITEM item, char *title, HICN icon); 1677 void API dw_tree_item_change(HWND handle, HTREEITEM item, const char *title, HICN icon);
1678 void API dw_tree_item_expand(HWND handle, HTREEITEM item); 1678 void API dw_tree_item_expand(HWND handle, HTREEITEM item);
1679 void API dw_tree_item_collapse(HWND handle, HTREEITEM item); 1679 void API dw_tree_item_collapse(HWND handle, HTREEITEM item);
1680 void API dw_tree_item_select(HWND handle, HTREEITEM item); 1680 void API dw_tree_item_select(HWND handle, HTREEITEM item);
1681 void API dw_tree_item_set_data(HWND handle, HTREEITEM item, void *itemdata); 1681 void API dw_tree_item_set_data(HWND handle, HTREEITEM item, void *itemdata);
1682 void * API dw_tree_item_get_data(HWND handle, HTREEITEM item); 1682 void * API dw_tree_item_get_data(HWND handle, HTREEITEM item);
1683 char * API dw_tree_get_title(HWND handle, HTREEITEM item); 1683 char * API dw_tree_get_title(HWND handle, HTREEITEM item);
1684 HTREEITEM API dw_tree_get_parent(HWND handle, HTREEITEM item); 1684 HTREEITEM API dw_tree_get_parent(HWND handle, HTREEITEM item);
1685 int API dw_container_setup(HWND handle, unsigned long *flags, char **titles, int count, int separator); 1685 int API dw_container_setup(HWND handle, unsigned long *flags, char **titles, int count, int separator);
1686 HICN API dw_icon_load(unsigned long module, unsigned long id); 1686 HICN API dw_icon_load(unsigned long module, unsigned long id);
1687 HICN API dw_icon_load_from_file(char *filename); 1687 HICN API dw_icon_load_from_file(const char *filename);
1688 HICN API dw_icon_load_from_data(char *data, int len); 1688 HICN API dw_icon_load_from_data(const char *data, int len);
1689 void API dw_icon_free(HICN handle); 1689 void API dw_icon_free(HICN handle);
1690 void * API dw_container_alloc(HWND handle, int rowcount); 1690 void * API dw_container_alloc(HWND handle, int rowcount);
1691 void API dw_container_set_item(HWND handle, void *pointer, int column, int row, void *data); 1691 void API dw_container_set_item(HWND handle, void *pointer, int column, int row, void *data);
1692 void API dw_container_change_item(HWND handle, int column, int row, void *data); 1692 void API dw_container_change_item(HWND handle, int column, int row, void *data);
1693 void API dw_container_set_column_width(HWND handle, int column, int width); 1693 void API dw_container_set_column_width(HWND handle, int column, int width);
1694 void API dw_container_set_row_title(void *pointer, int row, char *title); 1694 void API dw_container_set_row_title(void *pointer, int row, const char *title);
1695 void API dw_container_change_row_title(HWND handle, int row, char *title); 1695 void API dw_container_change_row_title(HWND handle, int row, const char *title);
1696 void API dw_container_set_row_data(void *pointer, int row, void *data); 1696 void API dw_container_set_row_data(void *pointer, int row, void *data);
1697 void API dw_container_change_row_data(HWND handle, int row, void *data); 1697 void API dw_container_change_row_data(HWND handle, int row, void *data);
1698 void API dw_container_insert(HWND handle, void *pointer, int rowcount); 1698 void API dw_container_insert(HWND handle, void *pointer, int rowcount);
1699 void API dw_container_clear(HWND handle, int redraw); 1699 void API dw_container_clear(HWND handle, int redraw);
1700 void API dw_container_delete(HWND handle, int rowcount); 1700 void API dw_container_delete(HWND handle, int rowcount);
1701 char * API dw_container_query_start(HWND handle, unsigned long flags); 1701 char * API dw_container_query_start(HWND handle, unsigned long flags);
1702 char * API dw_container_query_next(HWND handle, unsigned long flags); 1702 char * API dw_container_query_next(HWND handle, unsigned long flags);
1703 void API dw_container_scroll(HWND handle, int direction, long rows); 1703 void API dw_container_scroll(HWND handle, int direction, long rows);
1704 void API dw_container_cursor(HWND handle, char *text); 1704 void API dw_container_cursor(HWND handle, const char *text);
1705 void API dw_container_cursor_by_data(HWND handle, void *data); 1705 void API dw_container_cursor_by_data(HWND handle, void *data);
1706 void API dw_container_delete_row(HWND handle, char *text); 1706 void API dw_container_delete_row(HWND handle, const char *text);
1707 void API dw_container_delete_row_by_data(HWND handle, void *data); 1707 void API dw_container_delete_row_by_data(HWND handle, void *data);
1708 void API dw_container_optimize(HWND handle); 1708 void API dw_container_optimize(HWND handle);
1709 void API dw_container_set_stripe(HWND handle, unsigned long oddcolor, unsigned long evencolor); 1709 void API dw_container_set_stripe(HWND handle, unsigned long oddcolor, unsigned long evencolor);
1710 void API dw_filesystem_set_column_title(HWND handle, char *title); 1710 void API dw_filesystem_set_column_title(HWND handle, const char *title);
1711 int API dw_filesystem_setup(HWND handle, unsigned long *flags, char **titles, int count); 1711 int API dw_filesystem_setup(HWND handle, unsigned long *flags, char **titles, int count);
1712 void API dw_filesystem_set_item(HWND handle, void *pointer, int column, int row, void *data); 1712 void API dw_filesystem_set_item(HWND handle, void *pointer, int column, int row, void *data);
1713 void API dw_filesystem_set_file(HWND handle, void *pointer, int row, char *filename, HICN icon); 1713 void API dw_filesystem_set_file(HWND handle, void *pointer, int row, const char *filename, HICN icon);
1714 void API dw_filesystem_change_item(HWND handle, int column, int row, void *data); 1714 void API dw_filesystem_change_item(HWND handle, int column, int row, void *data);
1715 void API dw_filesystem_change_file(HWND handle, int row, char *filename, HICN icon); 1715 void API dw_filesystem_change_file(HWND handle, int row, const char *filename, HICN icon);
1716 int API dw_container_get_column_type(HWND handle, int column); 1716 int API dw_container_get_column_type(HWND handle, int column);
1717 int API dw_filesystem_get_column_type(HWND handle, int column); 1717 int API dw_filesystem_get_column_type(HWND handle, int column);
1718 void API dw_taskbar_insert(HWND handle, HICN icon, char *bubbletext); 1718 void API dw_taskbar_insert(HWND handle, HICN icon, const char *bubbletext);
1719 void API dw_taskbar_delete(HWND handle, HICN icon); 1719 void API dw_taskbar_delete(HWND handle, HICN icon);
1720 int API dw_screen_width(void); 1720 int API dw_screen_width(void);
1721 int API dw_screen_height(void); 1721 int API dw_screen_height(void);
1722 unsigned long API dw_color_depth_get(void); 1722 unsigned long API dw_color_depth_get(void);
1723 HWND API dw_notebook_new(unsigned long id, int top); 1723 HWND API dw_notebook_new(unsigned long id, int top);
1724 unsigned long API dw_notebook_page_new(HWND handle, unsigned long flags, int front); 1724 unsigned long API dw_notebook_page_new(HWND handle, unsigned long flags, int front);
1725 void API dw_notebook_page_destroy(HWND handle, unsigned int pageid); 1725 void API dw_notebook_page_destroy(HWND handle, unsigned int pageid);
1726 void API dw_notebook_page_set_text(HWND handle, unsigned long pageid, char *text); 1726 void API dw_notebook_page_set_text(HWND handle, unsigned long pageid, const char *text);
1727 void API dw_notebook_page_set_status_text(HWND handle, unsigned long pageid, char *text); 1727 void API dw_notebook_page_set_status_text(HWND handle, unsigned long pageid, const char *text);
1728 void API dw_notebook_page_set(HWND handle, unsigned int pageid); 1728 void API dw_notebook_page_set(HWND handle, unsigned int pageid);
1729 unsigned long API dw_notebook_page_get(HWND handle); 1729 unsigned long API dw_notebook_page_get(HWND handle);
1730 void API dw_notebook_pack(HWND handle, unsigned long pageid, HWND page); 1730 void API dw_notebook_pack(HWND handle, unsigned long pageid, HWND page);
1731 HWND API dw_splitbar_new(int type, HWND topleft, HWND bottomright, unsigned long id); 1731 HWND API dw_splitbar_new(int type, HWND topleft, HWND bottomright, unsigned long id);
1732 void API dw_splitbar_set(HWND handle, float percent); 1732 void API dw_splitbar_set(HWND handle, float percent);
1760 void API dw_shutdown(void); 1760 void API dw_shutdown(void);
1761 HWND API dw_render_new(unsigned long id); 1761 HWND API dw_render_new(unsigned long id);
1762 void API dw_color_foreground_set(unsigned long value); 1762 void API dw_color_foreground_set(unsigned long value);
1763 void API dw_color_background_set(unsigned long value); 1763 void API dw_color_background_set(unsigned long value);
1764 unsigned long API dw_color_choose(unsigned long value); 1764 unsigned long API dw_color_choose(unsigned long value);
1765 char * API dw_font_choose(char *currfont); 1765 char * API dw_font_choose(const char *currfont);
1766 void API dw_draw_point(HWND handle, HPIXMAP pixmap, int x, int y); 1766 void API dw_draw_point(HWND handle, HPIXMAP pixmap, int x, int y);
1767 void API dw_draw_line(HWND handle, HPIXMAP pixmap, int x1, int y1, int x2, int y2); 1767 void API dw_draw_line(HWND handle, HPIXMAP pixmap, int x1, int y1, int x2, int y2);
1768 void API dw_draw_rect(HWND handle, HPIXMAP pixmap, int fill, int x, int y, int width, int height); 1768 void API dw_draw_rect(HWND handle, HPIXMAP pixmap, int fill, int x, int y, int width, int height);
1769 void API dw_draw_polygon(HWND handle, HPIXMAP pixmap, int fill, int npoints, int *x, int *y); 1769 void API dw_draw_polygon(HWND handle, HPIXMAP pixmap, int fill, int npoints, int *x, int *y);
1770 void API dw_draw_arc(HWND handle, HPIXMAP pixmap, int flags, int xorigin, int yorigin, int x1, int y1, int x2, int y2); 1770 void API dw_draw_arc(HWND handle, HPIXMAP pixmap, int flags, int xorigin, int yorigin, int x1, int y1, int x2, int y2);
1771 void API dw_draw_text(HWND handle, HPIXMAP pixmap, int x, int y, char *text); 1771 void API dw_draw_text(HWND handle, HPIXMAP pixmap, int x, int y, const char *text);
1772 void API dw_font_text_extents_get(HWND handle, HPIXMAP pixmap, char *text, int *width, int *height); 1772 void API dw_font_text_extents_get(HWND handle, HPIXMAP pixmap, const char *text, int *width, int *height);
1773 void API dw_font_set_default(char *fontname); 1773 void API dw_font_set_default(const char *fontname);
1774 void API dw_flush(void); 1774 void API dw_flush(void);
1775 void API dw_pixmap_bitblt(HWND dest, HPIXMAP destp, int xdest, int ydest, int width, int height, HWND src, HPIXMAP srcp, int xsrc, int ysrc); 1775 void API dw_pixmap_bitblt(HWND dest, HPIXMAP destp, int xdest, int ydest, int width, int height, HWND src, HPIXMAP srcp, int xsrc, int ysrc);
1776 int API dw_pixmap_stretch_bitblt(HWND dest, HPIXMAP destp, int xdest, int ydest, int width, int height, HWND src, HPIXMAP srcp, int xsrc, int ysrc, int srcwidth, int srcheight); 1776 int API dw_pixmap_stretch_bitblt(HWND dest, HPIXMAP destp, int xdest, int ydest, int width, int height, HWND src, HPIXMAP srcp, int xsrc, int ysrc, int srcwidth, int srcheight);
1777 HPIXMAP API dw_pixmap_new(HWND handle, unsigned long width, unsigned long height, int depth); 1777 HPIXMAP API dw_pixmap_new(HWND handle, unsigned long width, unsigned long height, int depth);
1778 HPIXMAP API dw_pixmap_new_from_file(HWND handle, char *filename); 1778 HPIXMAP API dw_pixmap_new_from_file(HWND handle, const char *filename);
1779 HPIXMAP API dw_pixmap_new_from_data(HWND handle, char *data, int len); 1779 HPIXMAP API dw_pixmap_new_from_data(HWND handle, const char *data, int len);
1780 HPIXMAP API dw_pixmap_grab(HWND handle, ULONG id); 1780 HPIXMAP API dw_pixmap_grab(HWND handle, ULONG id);
1781 void API dw_pixmap_set_transparent_color( HPIXMAP pixmap, ULONG color ); 1781 void API dw_pixmap_set_transparent_color( HPIXMAP pixmap, ULONG color );
1782 int API dw_pixmap_set_font(HPIXMAP pixmap, char *fontname); 1782 int API dw_pixmap_set_font(HPIXMAP pixmap, const char *fontname);
1783 void API dw_pixmap_destroy(HPIXMAP pixmap); 1783 void API dw_pixmap_destroy(HPIXMAP pixmap);
1784 void API dw_beep(int freq, int dur); 1784 void API dw_beep(int freq, int dur);
1785 void API dw_debug(char *format, ...); 1785 void API dw_debug(const char *format, ...);
1786 int API dw_messagebox(char *title, int flags, char *format, ...); 1786 int API dw_messagebox(const char *title, int flags, const char *format, ...);
1787 void API dw_environment_query(DWEnv *env); 1787 void API dw_environment_query(DWEnv *env);
1788 int API dw_exec(char *program, int type, char **params); 1788 int API dw_exec(const char *program, int type, char **params);
1789 int API dw_browse(char *url); 1789 int API dw_browse(char *url);
1790 char * API dw_file_browse(char *title, char *defpath, char *ext, int flags); 1790 char * API dw_file_browse(const char *title, const char *defpath, char *ext, int flags);
1791 char * API dw_user_dir(void); 1791 char * API dw_user_dir(void);
1792 char * API dw_app_dir(void); 1792 char * API dw_app_dir(void);
1793 DWDialog * API dw_dialog_new(void *data); 1793 DWDialog * API dw_dialog_new(void *data);
1794 int API dw_dialog_dismiss(DWDialog *dialog, void *result); 1794 int API dw_dialog_dismiss(DWDialog *dialog, void *result);
1795 void * API dw_dialog_wait(DWDialog *dialog); 1795 void * API dw_dialog_wait(DWDialog *dialog);
1796 void API dw_window_set_data(HWND window, char *dataname, void *data); 1796 void API dw_window_set_data(HWND window, const char *dataname, void *data);
1797 void * API dw_window_get_data(HWND window, char *dataname); 1797 void * API dw_window_get_data(HWND window, const char *dataname);
1798 int API dw_module_load(char *name, HMOD *handle); 1798 int API dw_module_load(char *name, HMOD *handle);
1799 int API dw_module_symbol(HMOD handle, char *name, void**func); 1799 int API dw_module_symbol(HMOD handle, const char *name, void**func);
1800 int API dw_module_close(HMOD handle); 1800 int API dw_module_close(HMOD handle);
1801 int API dw_timer_connect(int interval, void *sigfunc, void *data); 1801 int API dw_timer_connect(int interval, void *sigfunc, void *data);
1802 void API dw_timer_disconnect(int id); 1802 void API dw_timer_disconnect(int id);
1803 void API dw_signal_connect(HWND window, char *signame, void *sigfunc, void *data); 1803 void API dw_signal_connect(HWND window, const char *signame, void *sigfunc, void *data);
1804 void API dw_signal_connect_data(HWND window, char *signame, void *sigfunc, void *discfunc, void *data); 1804 void API dw_signal_connect_data(HWND window, const char *signame, void *sigfunc, void *discfunc, void *data);
1805 void API dw_signal_disconnect_by_window(HWND window); 1805 void API dw_signal_disconnect_by_window(HWND window);
1806 void API dw_signal_disconnect_by_data(HWND window, void *data); 1806 void API dw_signal_disconnect_by_data(HWND window, void *data);
1807 void API dw_signal_disconnect_by_name(HWND window, char *signame); 1807 void API dw_signal_disconnect_by_name(HWND window, const char *signame);
1808 HEV API dw_named_event_new(char *name); 1808 HEV API dw_named_event_new(const char *name);
1809 HEV API dw_named_event_get(char *name); 1809 HEV API dw_named_event_get(const char *name);
1810 int API dw_named_event_reset(HEV eve); 1810 int API dw_named_event_reset(HEV eve);
1811 int API dw_named_event_post(HEV eve); 1811 int API dw_named_event_post(HEV eve);
1812 int API dw_named_event_wait(HEV eve, unsigned long timeout); 1812 int API dw_named_event_wait(HEV eve, unsigned long timeout);
1813 int API dw_named_event_close(HEV eve); 1813 int API dw_named_event_close(HEV eve);
1814 HSHM API dw_named_memory_new(void **dest, int size, char *name); 1814 HSHM API dw_named_memory_new(void **dest, int size, const char *name);
1815 HSHM API dw_named_memory_get(void **dest, int size, char *name); 1815 HSHM API dw_named_memory_get(void **dest, int size, const char *name);
1816 int API dw_named_memory_free(HSHM handle, void *ptr); 1816 int API dw_named_memory_free(HSHM handle, void *ptr);
1817 void API dw_html_action(HWND hwnd, int action); 1817 void API dw_html_action(HWND hwnd, int action);
1818 int API dw_html_raw(HWND hwnd, char *string); 1818 int API dw_html_raw(HWND hwnd, const char *string);
1819 int API dw_html_url(HWND hwnd, char *url); 1819 int API dw_html_url(HWND hwnd, const char *url);
1820 int API dw_html_javascript_run(HWND hwnd, char *script, void *scriptdata); 1820 int API dw_html_javascript_run(HWND hwnd, const char *script, void *scriptdata);
1821 HWND API dw_html_new(unsigned long id); 1821 HWND API dw_html_new(unsigned long id);
1822 char * API dw_clipboard_get_text(void); 1822 char * API dw_clipboard_get_text(void);
1823 void API dw_clipboard_set_text( char *str, int len ); 1823 void API dw_clipboard_set_text(const char *str, int len);
1824 HWND API dw_calendar_new(unsigned long id); 1824 HWND API dw_calendar_new(unsigned long id);
1825 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);
1826 void API dw_calendar_get_date( HWND window, unsigned int *year, unsigned int *month, unsigned int *day ); 1826 void API dw_calendar_get_date(HWND window, unsigned int *year, unsigned int *month, unsigned int *day);
1827 HPRINT API dw_print_new(char *jobname, unsigned long flags, unsigned int pages, void *drawfunc, void *drawdata); 1827 HPRINT API dw_print_new(char *jobname, unsigned long flags, unsigned int pages, void *drawfunc, void *drawdata);
1828 int API dw_print_run(HPRINT print, unsigned long flags); 1828 int API dw_print_run(HPRINT print, unsigned long flags);
1829 void API dw_print_cancel(HPRINT print); 1829 void API dw_print_cancel(HPRINT print);
1830 wchar_t * API dw_utf8_to_wchar(char *utf8string); 1830 wchar_t * API dw_utf8_to_wchar(const char *utf8string);
1831 char * API dw_wchar_to_utf8(wchar_t *wstring); 1831 char * API dw_wchar_to_utf8(const wchar_t *wstring);
1832 /* Exported for language bindings */ 1832 /* Exported for language bindings */
1833 void API _dw_init_thread(void); 1833 void API _dw_init_thread(void);
1834 void API _dw_deinit_thread(void); 1834 void API _dw_deinit_thread(void);
1835 1835
1836 #ifdef __cplusplus 1836 #ifdef __cplusplus