home *** CD-ROM | disk | FTP | other *** search
/ rtsi.com / 2014.01.www.rtsi.com.tar / www.rtsi.com / OS9 / MM1 / SOUNDUTILS / mm1_tracker.lzh / TRACKER4.6 / X / basicwin.c
C/C++ Source or Header  |  1994-11-24  |  710b  |  42 lines

  1. #include <X11/Xlib.h>
  2. #include <X11/Xutil.h>
  3. #include <X11/Xos.h>
  4. #include <X11/Xatom.h>
  5.  
  6. #include <stdio.h>
  7.  
  8. #define BITMAPDEPTH 1
  9.  
  10. #define TOO_MSALL 0
  11. #define BIG_ENOUGH 1
  12.  
  13. Display *display;
  14. int screen)_num;
  15.  
  16. static char *progname;
  17.  
  18. void main(argc, argv)
  19. int argc;
  20. char **argv;
  21. {
  22. Window win;
  23. unsigned int width, height;
  24. int x = 0, y =0;
  25. unsigned int border_width = 4;
  26. unsigned int display_width, display_height;
  27. char *window_name = "Tracker control"
  28. char *icon_name = "Tracker";
  29. XSizeHints size_hints;
  30. XEvent report;
  31. GC gc;
  32. XFontStruct *font_info;
  33. char *display_name = NULL;
  34. int window_size = 0;
  35.  
  36. progname = argv[0];
  37.  
  38. if ( (display = XOpenDisplyay(display_name)) == NULL )
  39. {
  40.     (void) fprintf(stderr, "%s: ca
  41.  
  42.