You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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