home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Mint / toswinsc.zoo / twdefs.h < prev    next >
C/C++ Source or Header  |  1992-10-27  |  2KB  |  79 lines

  1. /*
  2.  * Copyright 1992 Eric R. Smith. All rights reserved.
  3.  * Redistribution is permitted only if the distribution
  4.  * is not for profit, and only if all documentation
  5.  * (including, in particular, the file "copying")
  6.  * is included in the distribution in unmodified form.
  7.  * THIS PROGRAM COMES WITH ABSOLUTELY NO WARRANTY, NOT
  8.  * EVEN THE IMPLIED WARRANTIES OF MERCHANTIBILITY OR
  9.  * FITNESS FOR A PARTICULAR PURPOSE. USE AT YOUR OWN
  10.  * RISK.
  11.  */
  12. #define BOXLEN 33
  13. #define SHORTWAIT 20
  14. #define LONGWAIT 40
  15. #define NOMULTIWAIT (oldACC ? 20 : 0)
  16.  
  17. #define MINROWS 1
  18. #define MINCOLS 10
  19. #define MAXROWS 128
  20. #define MAXCOLS 220
  21.  
  22. typedef struct fontdesc {
  23.     char name[BOXLEN+1];
  24.     int  isfsm;
  25.     int  fontidx;
  26.     int  num_points;        /* number of point sizes available */
  27.     long points;            /* vector of point sizes available */
  28. } FONTDESC;
  29.  
  30. extern FONTDESC *fontdesc;
  31.  
  32. extern WINDOW *toolwindow;
  33. extern WINDOW *focuswin;
  34. extern OBJECT *cutdialog, *menudef_dialog, *fontdial;
  35. extern OBJECT *deskobj;
  36.  
  37. extern MENU *sysbar, *globalmenu, *windowmenu, *filemenu, *editmenu, *gadgmenu;
  38. extern ENTRY *closeentry, *copyentry, *pasteentry;
  39.  
  40. extern int default_font, default_height;
  41. extern int default_kind;    /* gadgets for windows */
  42. extern int smoothscroll, autoclose;
  43. extern int cut_options, paste_options;
  44. extern int altrow, altcol, win_flourishes;
  45. extern int stdrow, stdcol;
  46. extern int stdscroll, altscroll;
  47. extern int appl_menus, sys_menu;
  48. extern int align_windows;
  49. extern int env_options;
  50. #define E_ARGV    0x0001
  51. #define E_POSIX 0x0002
  52. #define E_TERM    0x0004
  53. #define E_TERMCAP    0x0008
  54.  
  55. extern int showtools;
  56. extern int toolx, tooly;
  57.  
  58. extern int point_to_type;
  59.  
  60. extern char progpath[], dfltprog[];
  61. extern int lineAset;
  62. extern int MultiTOS;
  63. extern int oldACC;
  64. extern int opened;
  65. extern short _app;    /* nonzero if application */
  66.  
  67. #define OK 0
  68. #define FAIL -1
  69.  
  70. #ifndef TIOCSWINSZ
  71. #define TIOCGWINSZ    (('T'<< 8) | 11)
  72. #define TIOCSWINSZ    (('T'<< 8) | 12)
  73.  
  74. struct winsize {
  75.     short ws_row, ws_col, ws_xpixel, ws_ypixel;
  76. };
  77.  
  78. #endif
  79.