home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 580a.lha / HDFView_v3.01 / source.LZH / source / include / HameStruct.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-06-13  |  3.2 KB  |  105 lines

  1. #ifndef EXEC_TYPES_H
  2. #include <exec/types.h>
  3. #endif /* EXEC_TYPES_H */
  4.  
  5. #ifndef GRAPHICS_GFX_H
  6. #include <graphics/gfx.h>
  7. #endif /* GRAPHICS_GFX_H */
  8.  
  9. #ifndef GRAPHICS_GFX_H
  10. #include <graphics/view.h>
  11. #endif /* GRAPHICS_GFX_H */
  12.  
  13. #ifndef GRAPHICS_GFX_H
  14. #include <graphics/text.h>
  15. #endif /* GRAPHICS_GFX_H */
  16.  
  17. #ifndef GRAPHICS_GFX_H
  18. #include <graphics/rastport.h>
  19. #endif /* GRAPHICS_GFX_H */
  20.  
  21. #ifndef INTUITION_INTUITION_H
  22. #include <intuition/intuition.h>
  23. #endif /* INTUITION_INTUITION_H */
  24.  
  25. #define NO_COOKIE  0
  26. #define BLACK_LINE 1
  27. #define REG_COOKIE 2
  28. #define HAM_COOKIE 3
  29.  
  30. struct ExtendedTextFont {
  31.        /* ctf_TF.CharData should be plane 0 of colordata*/
  32.        /* ctf_TF.Style should have FSF_COLORFONT bit set */
  33.     struct TextFont ctf_TF;
  34.  
  35.     USHORT ctf_Flags; /* Extended TextFont prefs. See defines above */
  36.  
  37.     UBYTE  ctf_Depth; /* # Bitplanes in font */
  38.     UBYTE  ctf_FgColor; /* Colr to be remapped to FG Pen-Ignore for us */
  39.     UBYTE  ctf_Low;     /* Lowest color in extended TextFont */
  40.     UBYTE  ctf_Hi;      /* Lowest color in extended TextFont */
  41.     UBYTE ctf_PlanePick;
  42.     UBYTE ctf_PlaneOnOff;
  43.     struct ColorMap *ctf_ColorMap;
  44.     UBYTE  *ctf_CharData[8]; /* Room for eight bitplanes of CharData */
  45. };
  46.  
  47. struct HameFont
  48.   {
  49.     struct ExtendedTextFont *Font;
  50.     UWORD P0Bits[256];
  51.     UWORD P1Bits[256];
  52.     UWORD P2Bits[256];
  53.     UWORD P3Bits[256];
  54.     long NColors;
  55.     long BaseColor;
  56.     long BaseLine;
  57.   };
  58.  
  59. struct Clip
  60.   {
  61.     struct BitMap *BitMap;
  62.     UBYTE *Mask;
  63.     long Width, Height;
  64.   };
  65.  
  66. struct HamePort
  67.  {
  68.    unsigned char *bp0; /* Cached bitplane pointers - no lectures please! */
  69.    unsigned char *bp1;
  70.    unsigned char *bp2;
  71.    unsigned char *bp3;
  72.    struct Screen *Screen; /* Cached Screen pointer */
  73.    struct Window *Window; /* Window pointer for screens opened by this library */
  74.    int BytesPerRow; /* from Screens bitmap */
  75.    int Width;       /* This is the HAME pixel width */
  76.    int Rows;        /* # of rows including cookie */
  77.    int lacer;       /* interlace flag */
  78.    int scanbase;    /* First scanline of cookie regardless of flavour */
  79.    int x,y;         /* Non User Data */
  80.    int r,g,b;       /* red, green and blue values filled in by GetRGB8 */
  81.    int FgColor;     /* Foreground Pen Color - DO NOT SET THIS YOURSELF!! */
  82.    ULONG *line_bases; /* Non User Data */
  83.    int firstline;   /* first line of writeable graphics data */
  84.    int hame_mode;   /* 0 for register mode, 1 for hame mode */
  85.    struct HameFont *Font;  /* Font pointer */
  86.    int TextColor;   /* Non User Data */
  87.    struct RastPort *RastPort; /* Non User Data */
  88.    UWORD *abuff;    /* Non User Data */
  89.    UBYTE *rastmem;  /* Non User Data */
  90.    struct BitMap *BitMap; /* Non User Data */
  91.    struct Layer_Info *LayerInfo; /* Non User Data */
  92.    struct Layer *Layer; /* Non User Data */
  93.    UWORD *fillpat; /* Non User Data */
  94.    void *bt; /* Non User Data */
  95.    struct AreaInfo *AreaInfo; /* Non User Data */
  96.    struct TmpRas *TmpRas; /* Non User Data */
  97.    int BgColor; /* Background Pen Color - DO NOT SET THIS YOURSELF */
  98.    int MaxV; /* Non User Data */
  99.    int MaxX; /* Non User Data */
  100.    int MaxY; /* Non User Data */
  101.    int PenX; /* Non User Data */
  102.    int PenY; /* Non User Data */
  103.    struct RastPort *TxRast; /* Non User Data */
  104.  };
  105.