home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Misc / TRSICAT.LZX / CATS_CD2_TRSI / Inc&AD1.3 / Includes / devices / conunit.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-09-12  |  2.2 KB  |  82 lines

  1. #ifndef DEVICES_CONUNIT_H
  2. #define DEVICES_CONUNIT_H
  3. /*
  4. **    $Filename: devices/conunit.h $
  5. **    $Release: 1.3 $
  6. **
  7. **    Console device unit definitions 
  8. **
  9. **    (C) Copyright 1986,1987,1988 Commodore-Amiga, Inc.
  10. **        All Rights Reserved
  11. */
  12.  
  13. #ifndef     EXEC_PORTS_H
  14. #include "exec/ports.h"
  15. #endif
  16.  
  17. #ifndef     DEVICES_CONSOLE_H
  18. #include "devices/console.h"
  19. #endif
  20.  
  21. #ifndef     DEVICES_KEYMAP_H
  22. #include "devices/keymap.h"
  23. #endif
  24.  
  25. #ifndef     DEVICES_INPUTEVENT_H
  26. #include "devices/inputevent.h"
  27. #endif
  28.  
  29. #define     PMB_ASM     (M_LNM+1)     /* internal storage bit for AS flag */
  30. #define     PMB_AWM     (PMB_ASM+1) /* internal storage bit for AW flag */
  31. #define     MAXTABS     80
  32.  
  33.  
  34. struct     ConUnit {
  35.    struct   MsgPort cu_MP;
  36.     /* ---- read only variables */
  37.    struct   Window *cu_Window; /* intuition window bound to this unit */
  38.    WORD     cu_XCP;          /* character position */
  39.    WORD     cu_YCP;
  40.    WORD     cu_XMax;          /* max character position */
  41.    WORD     cu_YMax;
  42.    WORD     cu_XRSize;          /* character raster size */
  43.    WORD     cu_YRSize;
  44.    WORD     cu_XROrigin;          /* raster origin */
  45.    WORD     cu_YROrigin;
  46.    WORD     cu_XRExtant;          /* raster maxima */
  47.    WORD     cu_YRExtant;
  48.    WORD     cu_XMinShrink;          /* smallest area intact from resize process */
  49.    WORD     cu_YMinShrink;
  50.    WORD     cu_XCCP;          /* cursor position */
  51.    WORD     cu_YCCP;
  52.  
  53.    /* ---- read/write variables (writes must must be protected) */
  54.    /* ---- storage for AskKeyMap and SetKeyMap */
  55.    struct   KeyMap cu_KeyMapStruct;
  56.    /* ---- tab stops */
  57.    UWORD cu_TabStops[MAXTABS];     /* 0 at start, 0xffff at end of list */
  58.  
  59.    /* ---- console rastport attributes */
  60.    BYTE        cu_Mask;
  61.    BYTE        cu_FgPen;
  62.    BYTE        cu_BgPen;
  63.    BYTE        cu_AOLPen;
  64.    BYTE        cu_DrawMode;
  65.    BYTE        cu_AreaPtSz;
  66.    APTR        cu_AreaPtrn;        /* cursor area pattern */
  67.    UBYTE    cu_Minterms[8];        /* console minterms */
  68.    struct   TextFont *cu_Font;
  69.    UBYTE    cu_AlgoStyle;
  70.    UBYTE    cu_TxFlags;
  71.    UWORD    cu_TxHeight;
  72.    UWORD    cu_TxWidth;
  73.    UWORD    cu_TxBaseline;
  74.    UWORD    cu_TxSpacing;
  75.  
  76.    /* ---- console MODES and RAW EVENTS switches */
  77.    UBYTE    cu_Modes[(PMB_AWM+7)/8];   /* one bit per mode */
  78.    UBYTE    cu_RawEvents[(IECLASS_MAX+7)/8];
  79. };
  80.  
  81. #endif    /* DEVICES_CONUNIT_H */
  82.