home *** CD-ROM | disk | FTP | other *** search
/ The C Users' Group Library 1994 August / wc-cdrom-cusersgrouplibrary-1994-08.iso / vol_300 / 315_01 / menu.h < prev    next >
C/C++ Source or Header  |  1990-05-16  |  2KB  |  57 lines

  1.  
  2. /* print_headline() and menu_mouse_config() function declarations added */
  3. /* 8/89 by T Clune */
  4.  
  5. /* mouse_flag_toggle() added 12/88 to support mouse-based menu selections */
  6. /* Added by T Clune */
  7.  
  8. /* pathprint() added 11/88 by T. Clune */
  9.  
  10. /* fname_unused() moved to dos_func.h 10/88 by T. Clune */
  11.  
  12. /* menu.h declares the menu.c public functions */
  13. /* revised 8/88 by T. Clune to support fname_unused(), which */
  14. /* checks to see whether a filename already exists in the specified */
  15. /* directory before writing the new file */
  16.  
  17. #ifndef MENU_H
  18. #define MENU_H
  19.  
  20.  /* definitions added 12/88 by T Clune to support mouse-based selections */
  21. #define MOUSE_PLUS_KEYBOARD 1
  22. #define KEYBOARD_ONLY 0
  23. #define MOUSE_ONLY -1
  24.  
  25.     /* factor to divide the mouse motion by to adjust "touchiness" */
  26.     /* bigger number = less sensitivity */
  27. #define MOUSE_SENSITIVITY 3
  28.     /* the pause time in secs before and during mouse move */
  29. #define OFF_TIME 0.15
  30. #define DUTY_TIME 0.05
  31.  
  32.     /* cursor arrow flag definitions */
  33. #define UP_MOVE 1
  34. #define LEFT_MOVE 2
  35. #define RIGHT_MOVE 4
  36. #define DOWN_MOVE 5
  37.  
  38.  
  39.     /* max. number of files supported by get_file() */
  40. #define MAX_FILES 100
  41.  
  42.     /* the get_file() return structure */
  43. typedef struct
  44. {
  45.     char string[80];
  46.     int error_flag;
  47. }string_struc;
  48.  
  49.  
  50. string_struc get_file();
  51. int menu(), get_mouse_flag(), mgetch();
  52. char *mgets();
  53. void reset_menu(), pathprint(), mouse_flag_toggle(), menu_mouse_config();
  54. void print_headline(), clear_input_devices();
  55.  
  56. #endif
  57.