home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / menu / kiwi / include / kiwilib.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-11-19  |  2.4 KB  |  78 lines

  1. /* Last change dated        3.2.1991            */
  2.  
  3. #ifndef KIWI_INC_IN
  4.     #include<kiwi_inc.h>
  5.     #define KIWI_INC_IN
  6. #endif
  7. #define KIWILIB_IN
  8. #define MAX_MODE_LEN    4
  9.  
  10. #ifndef FILE
  11.     #include<stdio.h>
  12. #endif
  13.  
  14. struct kiwilib_screen_typ{
  15.     int mode;            /* Anzeiger welcher BS Mode aktuell ist */
  16.     USHORT address;            /* Bildschirmaddresse        */
  17.     int acces_mode;            /* Zugriffsmethode 0=Direkt 1=bios 2=Standard    */
  18.     int cursor_x;            /* Cursor Position x        */
  19.     int cursor_y;            /* Cursor Position y        */
  20.     int cursor_size;        /* Cursor Form            */
  21.     UCHAR init_back_ground;        /* Initialisierungszeichen    */
  22.     UCHAR frame_color;        /* Randfarbe wenn gesetzt    */
  23.     UCHAR attribut;            /* Attribut         */
  24.     UCHAR fgct[MAX_COLOR];        /* Attributtabelle normal    */
  25.     UCHAR fgcti[MAX_COLOR];        /* Attributtabelle invers    */
  26.     UCHAR fg_init[MAX_COLOR];    /* Farbtabelle initialisiert    */
  27.     int color_set;            /* Aktive Tabellenfarbe        */
  28.     int shadow;            /* Fenster mit Schatten oder nicht */
  29.     int error;            /* Errorflag                */
  30.  
  31.     USHORT far *screen_buffer;    /* Far Pointer auf 
  32.                            Bildschirmzwischenspeicher    */
  33.     int screen_wide;    /* Bildschirmweite        */
  34.     int screen_height;    /* Bildschirmhoehe        */
  35.     int screen_max;        /* Anzahl Bytes durch Bildschirmpuffer */ 
  36.  
  37.     FILE *printer;        /* Druckerstream        */
  38.     FILE *printer2;        /* Druckerstream        */
  39.     UCHAR screen_mode[MAX_MODE_LEN];/* Bitfeld Screen    */
  40.     UCHAR print_mode[MAX_MODE_LEN];    /* Bitfeld Printer    */
  41.     UCHAR edit_mode[MAX_MODE_LEN];    /* Bitfeld Editor    */
  42.     UCHAR menu_mode[MAX_MODE_LEN];    /* Menufeld Menuwahl    */
  43.     UCHAR help_mode[MAX_MODE_LEN];    /* Bitfeld Helpsystem    */
  44.     UCHAR error_mode[MAX_MODE_LEN];    /* Bitfeld Helpsystem    */
  45.     };
  46.  
  47. #ifndef KIWI_DEF
  48.         extern struct kiwilib_screen_typ kiwi;
  49. #else
  50.         struct kiwilib_screen_typ kiwi;
  51. #endif
  52.  
  53.  
  54. /*    screen_mode [0]    Bitverteilung
  55.     bit 0        0 normal    1 invers
  56.     bit 1        0 Ohne Hilfe    1 Hilfe aktiviert
  57.     bit 2        0 Ohne Windows    1 Wondows on
  58.     bit 3        0 Ohne Rand     1 Rand steht
  59.     bit 4        0 Mit Pieps    1 Ohne Pieps
  60.     bit 5        0 Ohne VSscreen    1 Mit Vscreen
  61.     bit 6        0 Posmemory off    1 Position Memory on
  62.     bit 7        0 No Proc Table    1 Procedure Table enabled
  63.  
  64.  
  65.     screen_mode [1]    Bitverteilung
  66.     bit 0        0 normal    1 Window sind hidden
  67.     bit 1        0 Ohne Slider    1 Windows mit Slider
  68.     bit 2        0 BlinkBit ON    1 BlinkBit OFF 2 Farbtabelle
  69.     bit 3        0 Ohne Error    1 Error aktiviert
  70.  
  71. */
  72. #define screen_posm(x,y) ((x-1)+(y-1)*kiwi.screen_wide)
  73.  
  74.  
  75.  
  76.  
  77.  
  78.