comparison dw.h @ 174:75bf3051235f

Fixes so you can mix compilers.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 01 Dec 2002 12:59:24 +0000
parents 0b3debaa9c6c
children d78d08440246
comparison
equal deleted inserted replaced
173:c2b5d0019ec3 174:75bf3051235f
8 #define DW_MINOR_VERSION 0 8 #define DW_MINOR_VERSION 0
9 #define DW_SUB_VERSION 0 9 #define DW_SUB_VERSION 0
10 10
11 #if defined(__OS2__) || defined(__WIN32__) || defined(WINNT) || defined(__EMX__) 11 #if defined(__OS2__) || defined(__WIN32__) || defined(WINNT) || defined(__EMX__)
12 /* OS/2 or Windows */ 12 /* OS/2 or Windows */
13
14 #if defined(__IBMC__) && !defined(API)
15 #define API _System
16 #endif
13 17
14 /* Used internally */ 18 /* Used internally */
15 #define TYPEBOX 0 19 #define TYPEBOX 0
16 #define TYPEITEM 1 20 #define TYPEITEM 1
17 21
67 #define DW_CLR_DARKPINK CLR_DARKPINK 71 #define DW_CLR_DARKPINK CLR_DARKPINK
68 #define DW_CLR_DARKGREEN CLR_DARKGREEN 72 #define DW_CLR_DARKGREEN CLR_DARKGREEN
69 #define DW_CLR_DARKCYAN CLR_DARKCYAN 73 #define DW_CLR_DARKCYAN CLR_DARKCYAN
70 #define DW_CLR_BROWN CLR_BROWN 74 #define DW_CLR_BROWN CLR_BROWN
71 #define DW_CLR_PALEGRAY CLR_PALEGRAY 75 #define DW_CLR_PALEGRAY CLR_PALEGRAY
76
77 #ifndef FCF_CLOSEBUTTON
78 #define FCF_CLOSEBUTTON 0x04000000L
79 #endif
72 80
73 #define DW_FCF_TITLEBAR FCF_TITLEBAR 81 #define DW_FCF_TITLEBAR FCF_TITLEBAR
74 #define DW_FCF_SYSMENU (FCF_SYSMENU | FCF_CLOSEBUTTON) 82 #define DW_FCF_SYSMENU (FCF_SYSMENU | FCF_CLOSEBUTTON)
75 #define DW_FCF_MENU FCF_MENU 83 #define DW_FCF_MENU FCF_MENU
76 #define DW_FCF_SIZEBORDER FCF_SIZEBORDER 84 #define DW_FCF_SIZEBORDER FCF_SIZEBORDER
165 #ifndef UDM_SETPOS32 173 #ifndef UDM_SETPOS32
166 #define UDM_SETPOS32 (WM_USER+113) 174 #define UDM_SETPOS32 (WM_USER+113)
167 #endif 175 #endif
168 #ifndef UDM_GETPOS32 176 #ifndef UDM_GETPOS32
169 #define UDM_GETPOS32 (WM_USER+114) 177 #define UDM_GETPOS32 (WM_USER+114)
178 #endif
179
180 #if defined(MSVC) && !defined(API)
181 #define API _stdcall
170 #endif 182 #endif
171 183
172 /* Lets make some platform independent defines :) */ 184 /* Lets make some platform independent defines :) */
173 #define DW_DT_LEFT SS_LEFT 185 #define DW_DT_LEFT SS_LEFT
174 #define DW_DT_QUERYEXTENT 0 186 #define DW_DT_QUERYEXTENT 0
601 613
602 #if defined(__OS2__) || defined(__EMX__) 614 #if defined(__OS2__) || defined(__EMX__)
603 #define DW_OS2_RGB(a) ((DW_RED_VALUE(a) << 16) | (DW_GREEN_VALUE(a) << 8) | DW_BLUE_VALUE(a)) 615 #define DW_OS2_RGB(a) ((DW_RED_VALUE(a) << 16) | (DW_GREEN_VALUE(a) << 8) | DW_BLUE_VALUE(a))
604 #endif 616 #endif
605 617
618 #ifndef API
619 #define API
620 #endif
621
606 /* Public function prototypes */ 622 /* Public function prototypes */
607 void dw_box_pack_start(HWND box, HWND item, int width, int height, int hsize, int vsize, int pad); 623 void API dw_box_pack_start(HWND box, HWND item, int width, int height, int hsize, int vsize, int pad);
608 void dw_box_pack_end(HWND box, HWND item, int width, int height, int hsize, int vsize, int pad); 624 void API dw_box_pack_end(HWND box, HWND item, int width, int height, int hsize, int vsize, int pad);
609 #if !defined(__OS2__) && !defined(__WIN32__) && !defined(__EMX__) 625 #if !defined(__OS2__) && !defined(__WIN32__) && !defined(__EMX__)
610 int dw_int_init(DWResources *res, int newthread, int *argc, char **argv[]); 626 int API dw_int_init(DWResources *res, int newthread, int *argc, char **argv[]);
611 #define dw_init(a, b, c) dw_int_init(&_resources, a, &b, &c) 627 #define dw_init(a, b, c) dw_int_init(&_resources, a, &b, &c)
612 #else 628 #else
613 int dw_init(int newthread, int argc, char *argv[]); 629 int API dw_init(int newthread, int argc, char *argv[]);
614 #endif 630 #endif
615 void dw_main(void); 631 void API dw_main(void);
616 void dw_main_sleep(int seconds); 632 void API dw_main_sleep(int seconds);
617 void dw_free(void *ptr); 633 void API dw_free(void *ptr);
618 int dw_window_show(HWND handle); 634 int API dw_window_show(HWND handle);
619 int dw_window_hide(HWND handle); 635 int API dw_window_hide(HWND handle);
620 int dw_window_minimize(HWND handle); 636 int API dw_window_minimize(HWND handle);
621 int dw_window_raise(HWND handle); 637 int API dw_window_raise(HWND handle);
622 int dw_window_lower(HWND handle); 638 int API dw_window_lower(HWND handle);
623 int dw_window_destroy(HWND handle); 639 int API dw_window_destroy(HWND handle);
624 void dw_window_redraw(HWND handle); 640 void API dw_window_redraw(HWND handle);
625 int dw_window_set_font(HWND handle, char *fontname); 641 int API dw_window_set_font(HWND handle, char *fontname);
626 int dw_window_set_color(HWND handle, unsigned long fore, unsigned long back); 642 int API dw_window_set_color(HWND handle, unsigned long fore, unsigned long back);
627 HWND dw_window_new(HWND hwndOwner, char *title, unsigned long flStyle); 643 HWND API dw_window_new(HWND hwndOwner, char *title, unsigned long flStyle);
628 HWND dw_box_new(int type, int pad); 644 HWND API dw_box_new(int type, int pad);
629 HWND dw_groupbox_new(int type, int pad, char *title); 645 HWND API dw_groupbox_new(int type, int pad, char *title);
630 HWND dw_mdi_new(unsigned long id); 646 HWND API dw_mdi_new(unsigned long id);
631 HWND dw_bitmap_new(unsigned long id); 647 HWND API dw_bitmap_new(unsigned long id);
632 HWND dw_bitmapbutton_new(char *text, unsigned long id); 648 HWND API dw_bitmapbutton_new(char *text, unsigned long id);
633 HWND dw_container_new(unsigned long id); 649 HWND API dw_container_new(unsigned long id);
634 HWND dw_tree_new(unsigned long id); 650 HWND API dw_tree_new(unsigned long id);
635 HWND dw_text_new(char *text, unsigned long id); 651 HWND API dw_text_new(char *text, unsigned long id);
636 HWND dw_status_text_new(char *text, unsigned long id); 652 HWND API dw_status_text_new(char *text, unsigned long id);
637 HWND dw_mle_new(unsigned long id); 653 HWND API dw_mle_new(unsigned long id);
638 HWND dw_entryfield_new(char *text, unsigned long id); 654 HWND API dw_entryfield_new(char *text, unsigned long id);
639 HWND dw_entryfield_password_new(char *text, ULONG id); 655 HWND API dw_entryfield_password_new(char *text, ULONG id);
640 HWND dw_combobox_new(char *text, unsigned long id); 656 HWND API dw_combobox_new(char *text, unsigned long id);
641 HWND dw_button_new(char *text, unsigned long id); 657 HWND API dw_button_new(char *text, unsigned long id);
642 HWND dw_spinbutton_new(char *text, unsigned long id); 658 HWND API dw_spinbutton_new(char *text, unsigned long id);
643 HWND dw_radiobutton_new(char *text, ULONG id); 659 HWND API dw_radiobutton_new(char *text, ULONG id);
644 HWND dw_percent_new(unsigned long id); 660 HWND API dw_percent_new(unsigned long id);
645 HWND dw_slider_new(int vertical, int increments, ULONG id); 661 HWND API dw_slider_new(int vertical, int increments, ULONG id);
646 HWND dw_checkbox_new(char *text, unsigned long id); 662 HWND API dw_checkbox_new(char *text, unsigned long id);
647 HWND dw_listbox_new(unsigned long id, int multi); 663 HWND API dw_listbox_new(unsigned long id, int multi);
648 void dw_listbox_append(HWND handle, char *text); 664 void API dw_listbox_append(HWND handle, char *text);
649 void dw_listbox_clear(HWND handle); 665 void API dw_listbox_clear(HWND handle);
650 int dw_listbox_count(HWND handle); 666 int API dw_listbox_count(HWND handle);
651 void dw_listbox_set_top(HWND handle, int top); 667 void API dw_listbox_set_top(HWND handle, int top);
652 void dw_listbox_select(HWND handle, int index, int state); 668 void API dw_listbox_select(HWND handle, int index, int state);
653 void dw_listbox_delete(HWND handle, int index); 669 void API dw_listbox_delete(HWND handle, int index);
654 void dw_listbox_query_text(HWND handle, unsigned int index, char *buffer, unsigned int length); 670 void API dw_listbox_query_text(HWND handle, unsigned int index, char *buffer, unsigned int length);
655 void dw_listbox_set_text(HWND handle, unsigned int index, char *buffer); 671 void API dw_listbox_set_text(HWND handle, unsigned int index, char *buffer);
656 unsigned int dw_listbox_selected(HWND handle); 672 unsigned int API dw_listbox_selected(HWND handle);
657 int dw_listbox_selected_multi(HWND handle, int where); 673 int API dw_listbox_selected_multi(HWND handle, int where);
658 unsigned int dw_percent_query_range(HWND handle); 674 unsigned int API dw_percent_query_range(HWND handle);
659 void dw_percent_set_pos(HWND handle, unsigned int position); 675 void API dw_percent_set_pos(HWND handle, unsigned int position);
660 unsigned int dw_slider_query_pos(HWND handle); 676 unsigned int API dw_slider_query_pos(HWND handle);
661 void dw_slider_set_pos(HWND handle, unsigned int position); 677 void API dw_slider_set_pos(HWND handle, unsigned int position);
662 void dw_window_set_pos(HWND handle, unsigned long x, unsigned long y); 678 void API dw_window_set_pos(HWND handle, unsigned long x, unsigned long y);
663 void dw_window_set_usize(HWND handle, unsigned long width, unsigned long height); 679 void API dw_window_set_usize(HWND handle, unsigned long width, unsigned long height);
664 void dw_window_set_pos_size(HWND handle, unsigned long x, unsigned long y, unsigned long width, unsigned long height); 680 void API dw_window_set_pos_size(HWND handle, unsigned long x, unsigned long y, unsigned long width, unsigned long height);
665 void dw_window_get_pos_size(HWND handle, unsigned long *x, unsigned long *y, unsigned long *width, unsigned long *height); 681 void API dw_window_get_pos_size(HWND handle, unsigned long *x, unsigned long *y, unsigned long *width, unsigned long *height);
666 void dw_window_set_style(HWND handle, unsigned long style, unsigned long mask); 682 void API dw_window_set_style(HWND handle, unsigned long style, unsigned long mask);
667 void dw_window_set_icon(HWND handle, unsigned long id); 683 void API dw_window_set_icon(HWND handle, unsigned long id);
668 void dw_window_set_bitmap(HWND handle, unsigned long id); 684 void API dw_window_set_bitmap(HWND handle, unsigned long id);
669 char *dw_window_get_text(HWND handle); 685 char * API dw_window_get_text(HWND handle);
670 void dw_window_set_text(HWND handle, char *text); 686 void API dw_window_set_text(HWND handle, char *text);
671 int dw_window_set_border(HWND handle, int border); 687 int API dw_window_set_border(HWND handle, int border);
672 void dw_window_disable(HWND handle); 688 void API dw_window_disable(HWND handle);
673 void dw_window_enable(HWND handle); 689 void API dw_window_enable(HWND handle);
674 void dw_window_capture(HWND handle); 690 void API dw_window_capture(HWND handle);
675 void dw_window_release(void); 691 void API dw_window_release(void);
676 void dw_window_reparent(HWND handle, HWND newparent); 692 void API dw_window_reparent(HWND handle, HWND newparent);
677 void dw_window_pointer(HWND handle, int pointertype); 693 void API dw_window_pointer(HWND handle, int pointertype);
678 void dw_window_default(HWND window, HWND defaultitem); 694 void API dw_window_default(HWND window, HWND defaultitem);
679 void dw_window_click_default(HWND window, HWND next); 695 void API dw_window_click_default(HWND window, HWND next);
680 unsigned int dw_mle_import(HWND handle, char *buffer, int startpoint); 696 unsigned int API dw_mle_import(HWND handle, char *buffer, int startpoint);
681 void dw_mle_export(HWND handle, char *buffer, int startpoint, int length); 697 void API dw_mle_export(HWND handle, char *buffer, int startpoint, int length);
682 void dw_mle_query(HWND handle, unsigned long *bytes, unsigned long *lines); 698 void API dw_mle_query(HWND handle, unsigned long *bytes, unsigned long *lines);
683 void dw_mle_delete(HWND handle, int startpoint, int length); 699 void API dw_mle_delete(HWND handle, int startpoint, int length);
684 void dw_mle_clear(HWND handle); 700 void API dw_mle_clear(HWND handle);
685 void dw_mle_freeze(HWND handle); 701 void API dw_mle_freeze(HWND handle);
686 void dw_mle_thaw(HWND handle); 702 void API dw_mle_thaw(HWND handle);
687 void dw_mle_set(HWND handle, int point); 703 void API dw_mle_set(HWND handle, int point);
688 void dw_mle_set_visible(HWND handle, int line); 704 void API dw_mle_set_visible(HWND handle, int line);
689 void dw_mle_set_editable(HWND handle, int state); 705 void API dw_mle_set_editable(HWND handle, int state);
690 void dw_mle_set_word_wrap(HWND handle, int state); 706 void API dw_mle_set_word_wrap(HWND handle, int state);
691 int dw_mle_search(HWND handle, char *text, int point, unsigned long flags); 707 int API dw_mle_search(HWND handle, char *text, int point, unsigned long flags);
692 void dw_spinbutton_set_pos(HWND handle, long position); 708 void API dw_spinbutton_set_pos(HWND handle, long position);
693 void dw_spinbutton_set_limits(HWND handle, long upper, long lower); 709 void API dw_spinbutton_set_limits(HWND handle, long upper, long lower);
694 void dw_entryfield_set_limit(HWND handle, ULONG limit); 710 void API dw_entryfield_set_limit(HWND handle, ULONG limit);
695 long dw_spinbutton_query(HWND handle); 711 long API dw_spinbutton_query(HWND handle);
696 int dw_checkbox_query(HWND handle); 712 int API dw_checkbox_query(HWND handle);
697 void dw_checkbox_set(HWND handle, int value); 713 void API dw_checkbox_set(HWND handle, int value);
698 HWND dw_tree_insert(HWND handle, char *title, unsigned long icon, HWND parent, void *itemdata); 714 HWND API dw_tree_insert(HWND handle, char *title, unsigned long icon, HWND parent, void *itemdata);
699 HWND dw_tree_insert_after(HWND handle, HWND item, char *title, unsigned long icon, HWND parent, void *itemdata); 715 HWND API dw_tree_insert_after(HWND handle, HWND item, char *title, unsigned long icon, HWND parent, void *itemdata);
700 void dw_tree_clear(HWND handle); 716 void API dw_tree_clear(HWND handle);
701 void dw_tree_delete(HWND handle, HWND item); 717 void API dw_tree_delete(HWND handle, HWND item);
702 void dw_tree_set(HWND handle, HWND item, char *title, unsigned long icon); 718 void API dw_tree_set(HWND handle, HWND item, char *title, unsigned long icon);
703 void dw_tree_expand(HWND handle, HWND item); 719 void API dw_tree_expand(HWND handle, HWND item);
704 void dw_tree_collapse(HWND handle, HWND item); 720 void API dw_tree_collapse(HWND handle, HWND item);
705 void dw_tree_item_select(HWND handle, HWND item); 721 void API dw_tree_item_select(HWND handle, HWND item);
706 void dw_tree_set_data(HWND handle, HWND item, void *itemdata); 722 void API dw_tree_set_data(HWND handle, HWND item, void *itemdata);
707 int dw_container_setup(HWND handle, unsigned long *flags, char **titles, int count, int separator); 723 int API dw_container_setup(HWND handle, unsigned long *flags, char **titles, int count, int separator);
708 unsigned long dw_icon_load(unsigned long module, unsigned long id); 724 unsigned long API dw_icon_load(unsigned long module, unsigned long id);
709 void dw_icon_free(unsigned long handle); 725 void API dw_icon_free(unsigned long handle);
710 void *dw_container_alloc(HWND handle, int rowcount); 726 void * API dw_container_alloc(HWND handle, int rowcount);
711 void dw_container_set_item(HWND handle, void *pointer, int column, int row, void *data); 727 void API dw_container_set_item(HWND handle, void *pointer, int column, int row, void *data);
712 void dw_container_change_item(HWND handle, int column, int row, void *data); 728 void API dw_container_change_item(HWND handle, int column, int row, void *data);
713 void dw_container_set_column_width(HWND handle, int column, int width); 729 void API dw_container_set_column_width(HWND handle, int column, int width);
714 void dw_container_set_row_title(void *pointer, int row, char *title); 730 void API dw_container_set_row_title(void *pointer, int row, char *title);
715 void dw_container_insert(HWND handle, void *pointer, int rowcount); 731 void API dw_container_insert(HWND handle, void *pointer, int rowcount);
716 void dw_container_clear(HWND handle, int redraw); 732 void API dw_container_clear(HWND handle, int redraw);
717 void dw_container_delete(HWND handle, int rowcount); 733 void API dw_container_delete(HWND handle, int rowcount);
718 void dw_container_set_view(HWND handle, unsigned long flags, int iconwidth, int iconheight); 734 void API dw_container_set_view(HWND handle, unsigned long flags, int iconwidth, int iconheight);
719 char *dw_container_query_start(HWND handle, unsigned long flags); 735 char * API dw_container_query_start(HWND handle, unsigned long flags);
720 char *dw_container_query_next(HWND handle, unsigned long flags); 736 char * API dw_container_query_next(HWND handle, unsigned long flags);
721 void dw_container_scroll(HWND handle, int direction, long rows); 737 void API dw_container_scroll(HWND handle, int direction, long rows);
722 void dw_container_cursor(HWND handle, char *text); 738 void API dw_container_cursor(HWND handle, char *text);
723 void dw_container_delete_row(HWND handle, char *text); 739 void API dw_container_delete_row(HWND handle, char *text);
724 void dw_container_optimize(HWND handle); 740 void API dw_container_optimize(HWND handle);
725 int dw_filesystem_setup(HWND handle, unsigned long *flags, char **titles, int count); 741 int API dw_filesystem_setup(HWND handle, unsigned long *flags, char **titles, int count);
726 void dw_filesystem_set_item(HWND handle, void *pointer, int column, int row, void *data); 742 void API dw_filesystem_set_item(HWND handle, void *pointer, int column, int row, void *data);
727 void dw_filesystem_set_file(HWND handle, void *pointer, int row, char *filename, unsigned long icon); 743 void API dw_filesystem_set_file(HWND handle, void *pointer, int row, char *filename, unsigned long icon);
728 int dw_screen_width(void); 744 int API dw_screen_width(void);
729 int dw_screen_height(void); 745 int API dw_screen_height(void);
730 unsigned long dw_color_depth(void); 746 unsigned long API dw_color_depth(void);
731 HWND dw_notebook_new(unsigned long id, int top); 747 HWND API dw_notebook_new(unsigned long id, int top);
732 unsigned long dw_notebook_page_new(HWND handle, unsigned long flags, int front); 748 unsigned long API dw_notebook_page_new(HWND handle, unsigned long flags, int front);
733 void dw_notebook_page_destroy(HWND handle, unsigned int pageid); 749 void API dw_notebook_page_destroy(HWND handle, unsigned int pageid);
734 void dw_notebook_page_set_text(HWND handle, unsigned long pageid, char *text); 750 void API dw_notebook_page_set_text(HWND handle, unsigned long pageid, char *text);
735 void dw_notebook_page_set_status_text(HWND handle, unsigned long pageid, char *text); 751 void API dw_notebook_page_set_status_text(HWND handle, unsigned long pageid, char *text);
736 void dw_notebook_page_set(HWND handle, unsigned int pageid); 752 void API dw_notebook_page_set(HWND handle, unsigned int pageid);
737 unsigned int dw_notebook_page_query(HWND handle); 753 unsigned int API dw_notebook_page_query(HWND handle);
738 void dw_notebook_pack(HWND handle, unsigned long pageid, HWND page); 754 void API dw_notebook_pack(HWND handle, unsigned long pageid, HWND page);
739 HWND dw_splitbar_new(int type, HWND topleft, HWND bottomright, unsigned long id); 755 HWND API dw_splitbar_new(int type, HWND topleft, HWND bottomright, unsigned long id);
740 void dw_splitbar_set(HWND handle, float percent); 756 void API dw_splitbar_set(HWND handle, float percent);
741 float dw_splitbar_get(HWND handle); 757 float API dw_splitbar_get(HWND handle);
742 HMENUI dw_menu_new(unsigned long id); 758 HMENUI API dw_menu_new(unsigned long id);
743 HMENUI dw_menubar_new(HWND location); 759 HMENUI API dw_menubar_new(HWND location);
744 HWND dw_menu_append_item(HMENUI menu, char *title, unsigned long id, unsigned long flags, int end, int check, HMENUI submenu); 760 HWND API dw_menu_append_item(HMENUI menu, char *title, unsigned long id, unsigned long flags, int end, int check, HMENUI submenu);
745 void dw_menu_item_set_check(HMENUI menu, unsigned long id, int check); 761 void API dw_menu_item_set_check(HMENUI menu, unsigned long id, int check);
746 void dw_menu_popup(HMENUI *menu, HWND parent, int x, int y); 762 void API dw_menu_popup(HMENUI *menu, HWND parent, int x, int y);
747 void dw_menu_destroy(HMENUI *menu); 763 void API dw_menu_destroy(HMENUI *menu);
748 void dw_pointer_query_pos(long *x, long *y); 764 void API dw_pointer_query_pos(long *x, long *y);
749 void dw_pointer_set_pos(long x, long y); 765 void API dw_pointer_set_pos(long x, long y);
750 void dw_window_function(HWND handle, void *function, void *data); 766 void API dw_window_function(HWND handle, void *function, void *data);
751 HWND dw_window_from_id(HWND handle, int id); 767 HWND API dw_window_from_id(HWND handle, int id);
752 HMTX dw_mutex_new(void); 768 HMTX API dw_mutex_new(void);
753 void dw_mutex_close(HMTX mutex); 769 void API dw_mutex_close(HMTX mutex);
754 void dw_mutex_lock(HMTX mutex); 770 void API dw_mutex_lock(HMTX mutex);
755 void dw_mutex_unlock(HMTX mutex); 771 void API dw_mutex_unlock(HMTX mutex);
756 HEV dw_event_new(void); 772 HEV API dw_event_new(void);
757 int dw_event_reset(HEV eve); 773 int API dw_event_reset(HEV eve);
758 int dw_event_post(HEV eve); 774 int API dw_event_post(HEV eve);
759 int dw_event_wait(HEV eve, unsigned long timeout); 775 int API dw_event_wait(HEV eve, unsigned long timeout);
760 int dw_event_close (HEV *eve); 776 int API dw_event_close (HEV *eve);
761 DWTID dw_thread_new(void *func, void *data, int stack); 777 DWTID API dw_thread_new(void *func, void *data, int stack);
762 void dw_thread_end(void); 778 void API dw_thread_end(void);
763 DWTID dw_thread_id(void); 779 DWTID API dw_thread_id(void);
764 void dw_exit(int exitcode); 780 void API dw_exit(int exitcode);
765 HWND dw_render_new(unsigned long id); 781 HWND API dw_render_new(unsigned long id);
766 void dw_color_foreground_set(unsigned long value); 782 void API dw_color_foreground_set(unsigned long value);
767 void dw_color_background_set(unsigned long value); 783 void API dw_color_background_set(unsigned long value);
768 void dw_draw_point(HWND handle, HPIXMAP pixmap, int x, int y); 784 void API dw_draw_point(HWND handle, HPIXMAP pixmap, int x, int y);
769 void dw_draw_line(HWND handle, HPIXMAP pixmap, int x1, int y1, int x2, int y2); 785 void API dw_draw_line(HWND handle, HPIXMAP pixmap, int x1, int y1, int x2, int y2);
770 void dw_draw_rect(HWND handle, HPIXMAP pixmap, int fill, int x, int y, int width, int height); 786 void API dw_draw_rect(HWND handle, HPIXMAP pixmap, int fill, int x, int y, int width, int height);
771 void dw_draw_text(HWND handle, HPIXMAP pixmap, int x, int y, char *text); 787 void API dw_draw_text(HWND handle, HPIXMAP pixmap, int x, int y, char *text);
772 void dw_font_text_extents(HWND handle, HPIXMAP pixmap, char *text, int *width, int *height); 788 void API dw_font_text_extents(HWND handle, HPIXMAP pixmap, char *text, int *width, int *height);
773 void dw_flush(void); 789 void API dw_flush(void);
774 void dw_pixmap_bitblt(HWND dest, HPIXMAP destp, int xdest, int ydest, int width, int height, HWND src, HPIXMAP srcp, int xsrc, int ysrc); 790 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);
775 HPIXMAP dw_pixmap_new(HWND handle, unsigned long width, unsigned long height, int depth); 791 HPIXMAP API dw_pixmap_new(HWND handle, unsigned long width, unsigned long height, int depth);
776 HPIXMAP dw_pixmap_grab(HWND handle, ULONG id); 792 HPIXMAP API dw_pixmap_grab(HWND handle, ULONG id);
777 void dw_pixmap_destroy(HPIXMAP pixmap); 793 void API dw_pixmap_destroy(HPIXMAP pixmap);
778 void dw_beep(int freq, int dur); 794 void API dw_beep(int freq, int dur);
779 int dw_messagebox(char *title, char *format, ...); 795 int API dw_messagebox(char *title, char *format, ...);
780 int dw_yesno(char *title, char *text); 796 int API dw_yesno(char *title, char *text);
781 void dw_environment_query(DWEnv *env); 797 void API dw_environment_query(DWEnv *env);
782 int dw_exec(char *program, int type, char **params); 798 int API dw_exec(char *program, int type, char **params);
783 int dw_browse(char *url); 799 int API dw_browse(char *url);
784 char *dw_file_browse(char *title, char *defpath, char *ext, int flags); 800 char * API dw_file_browse(char *title, char *defpath, char *ext, int flags);
785 char *dw_user_dir(void); 801 char * API dw_user_dir(void);
786 DWDialog *dw_dialog_new(void *data); 802 DWDialog * API dw_dialog_new(void *data);
787 int dw_dialog_dismiss(DWDialog *dialog, void *result); 803 int API dw_dialog_dismiss(DWDialog *dialog, void *result);
788 void *dw_dialog_wait(DWDialog *dialog); 804 void * API dw_dialog_wait(DWDialog *dialog);
789 void dw_window_set_data(HWND window, char *dataname, void *data); 805 void API dw_window_set_data(HWND window, char *dataname, void *data);
790 void *dw_window_get_data(HWND window, char *dataname); 806 void * API dw_window_get_data(HWND window, char *dataname);
791 int dw_module_load(char *name, HMOD *handle); 807 int API dw_module_load(char *name, HMOD *handle);
792 int dw_module_symbol(HMOD handle, char *name, void**func); 808 int API dw_module_symbol(HMOD handle, char *name, void**func);
793 int dw_module_close(HMOD handle); 809 int API dw_module_close(HMOD handle);
794 #ifndef NO_SIGNALS 810 #ifndef NO_SIGNALS
795 void dw_signal_connect(HWND window, char *signame, void *sigfunc, void *data); 811 void API dw_signal_connect(HWND window, char *signame, void *sigfunc, void *data);
796 void dw_signal_disconnect_by_window(HWND window); 812 void API dw_signal_disconnect_by_window(HWND window);
797 void dw_signal_disconnect_by_data(HWND window, void *data); 813 void API dw_signal_disconnect_by_data(HWND window, void *data);
798 void dw_signal_disconnect_by_name(HWND window, char *signame); 814 void API dw_signal_disconnect_by_name(HWND window, char *signame);
799 #endif 815 #endif
800 816
801 #endif 817 #endif