1 #ifndef X11_WIDGETS_H
2 #define X11_WIDGETS_H
3 
4 #include <X11/Xlib.h>
5 #include <X11/Intrinsic.h>
6 #include <X11/IntrinsicP.h>
7 #include <X11/StringDefs.h>
8 #include <X11/Shell.h>
9 #include <X11/Xresource.h>
10 #include <X11/xpm.h>
11 
12 #ifdef VMS
13 #include <signal.h>
14 #include <X11VMS/vmsutil.h>
15 #endif
16 
17 #include "types.h"
18 
19 struct MCursor {
20 	Pixmap cursor;
21 };
22 
23 struct Picture {
24 	Dimension width, height;
25 	Pixmap pix;
26 	Pixmap mask;
27 	GC gc;
28 };
29 
30 void x11_set_cursor(MCursor *cursor);
31 void x11_load_cursor(const char *name, int masked, MCursor **cursorp);
32 void x11_load_picture(const char *name, int trans, Picture **pictp);
33 void x11_set_icon(Picture *icon);
34 int x11_picture_width(Picture *pict);
35 int x11_picture_height(Picture *pict);
36 void x11_graphics_init(void);
37 void x11_clear_window(void);
38 void x11_refresh_window(void);
39 void x11_draw_image(Picture *pict, int x, int y);
40 void x11_draw_line(int x1, int y1, int x2, int y2);
41 void x11_draw_string(const char *str, int x, int y);
42 void x11_start_timer(int ms);
43 void x11_stop_timer(void);
44 int x11_timer_active(void);
45 void x11_main_loop(void);
46 void x11_initialize(int *argc, char **argv);
47 void x11_create_dialogs(Picture *logo, Picture *icon, Picture *about);
48 
49 void x11_setup_resources(void);
50 void x11_setup(void);
51 void x11_add_event_handlers(Widget w);
52 void x11_popup (Widget dialog);
53 Widget x11_toplevel(void);
54 void x11_set_drawingarea(Widget w, int size);
55 
56 #endif
57