home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / windows / c / uw260 / uw_globx.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-04-02  |  4.1 KB  |  79 lines

  1.  
  2. /****************************************************************************/
  3. /*                                                                          */
  4. /* UW_GLOBX.H                                                               */
  5. /*                                                                          */
  6. /* This module contains all the externs used by the UltraWIN library.       */
  7. /*                                                                          */
  8. /*                                                          Kevin Huck      */
  9. /*                                                          Boyd Gafford    */
  10. /*                                                                          */
  11. /****************************************************************************/
  12. #ifndef __UW_GLOB_H
  13. #ifndef __UW_GLOBX_H
  14. #define __UW_GLOBX_H
  15. #include <conio.h>
  16.  
  17. extern uchar UW_FAR *Screen;            /* pointer to physical screen loc   */
  18.  
  19. extern int    Num_windows;              /* number of open windows on desk!  */
  20. extern int    V_cols;                   /* columns on the video screen      */
  21. extern int    V_rows;                   /* rows on the video screen         */
  22. extern int    V_mode;                   /* old video mode!                  */
  23.  
  24. extern int    DV_seg;                   /* Desqview variables               */
  25. extern int    DV_off;
  26. extern int    DV_flag;
  27. extern int    DV_upd;
  28.  
  29. extern uchar  Dflt_att;
  30. extern uchar  Dflt_bdr_att;
  31.  
  32. extern int    Stack[64];
  33. extern int    Stack_ptr;                /* stack to save wn states          */
  34. extern int    Csr_visible;              /* is the cursor visible            */
  35. extern int    Csr_in_use;               /* is the cursor used by a popup?   */
  36. extern char   Hide_entry_mask;          /* the mask for passwords, etc      */
  37. extern EVENT  Event;                    /* the global event variable        */
  38. extern int    Mouse_exists;             /* is the mouse available or not?   */
  39.  
  40. extern WINDOW *First_window;            /* manager first window pointer     */
  41. extern WINDOW *Last_window;             /* manager last window pointer      */
  42.  
  43. extern int (*Idle_func)(void);          /* global function pointer          */
  44. extern int (*Key_func)(int, int);       /* background key function pointer  */
  45.                                         /* validation function pointer      */
  46. extern int (*Vld_func)(char*, char*, char*, int, int, WINDOW*);
  47.                                         /* gets hook function pointer       */
  48. extern int (*Gets_hook_func)(char*, char*, char*, int, int, int, EVENT*, WINDOW*);
  49.  
  50. extern void (*Graphic_func)(int, int, uchar); /* single char output function*/
  51. extern uchar  Fgnd, Bkgnd;              /* fore/background for graphics mode*/
  52. extern int    X_res, Y_res;             /* x, y, res for graphics mode      */
  53. extern int    Font_rows, Font_spacing;  /* rows in font, font spacing       */
  54. extern int    Gseg, Goff;               /* graphics screen segment, offset  */
  55. extern int    Bytes_per_row;            /* bytes per graphics row           */
  56. extern int    Ega, Vga, EgaVga;         /* 1 if present (mutually exclusive)*/
  57. extern int    G_csrx, G_csry;
  58. extern int    G_csr_char, G_opt;
  59. extern PRINT  *Printers[MAX_PRINTERS];  /* printer queue structure pointers */
  60.  
  61. extern volatile int Uw_timers[4];       /* user timers - decrement to 0     */
  62. extern volatile int Sys_timers[2];
  63. extern volatile int Sound_timer;        /* system/sound timers              */
  64. extern int    Clock_init;               /* 1 if we have clock vector        */
  65. extern int    Sound_on;                 /* 1 when sound is on               */
  66. extern ulong  Tics;                     /* total clock interrupts           */
  67. extern int    Tics_per_sec;             /* clock tics per second            */  
  68. extern int    Video_init;               /* 1 if we have init'd video (V2.5) */
  69. extern int    Mouse_init;               /* 1 if we have init'd mouse (V2.5) */
  70.  
  71. extern int    Dbg_log_on, Dbg_stack_on; /* internal debug support           */
  72. extern int    Dbg_line;
  73. extern char  *Dbg_file;
  74.  
  75. #endif /* __UW_GLOBX_H */
  76. #endif /* __UW_GLOB_H  */
  77.  
  78. /**** END OF FILE ****/
  79.