home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BC_DICE2.DMS / in.adf / INCLUDE / graphics / text.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-10  |  2.7 KB  |  173 lines

  1. #ifndef GRAPHICS_TEXT_H
  2. #define GRAPHICS_TEXT_H
  3. /*
  4. ** $Filename: graphics/text.h $
  5. ** $Release: 2.04 Includes, V37.4 $
  6. ** $Revision: 37.0 $
  7. ** $Date: 91/01/07 $
  8. **
  9. ** graphics library text structures
  10. **
  11. ** (C) Copyright 1985-1991 Commodore-Amiga, Inc.
  12. ** All Rights Reserved
  13. */
  14.  
  15. #ifndef EXEC_PORTS_H
  16. #include "exec/ports.h"
  17. #endif 
  18.  
  19. #ifndef GRAPHICS_GFX_H
  20. #include "graphics/gfx.h"
  21. #endif 
  22.  
  23. #ifndef UTILITY_TAGITEM_H
  24. #include "utility/tagitem.h"
  25. #endif 
  26.  
  27.  
  28. #define FS_NORMAL 0 
  29. #define FSB_UNDERLINED 0 
  30. #define FSF_UNDERLINED 0x01
  31. #define FSB_BOLD 1 
  32. #define FSF_BOLD 0x02
  33. #define FSB_ITALIC 2 
  34. #define FSF_ITALIC 0x04
  35. #define FSB_EXTENDED 3 
  36. #define FSF_EXTENDED 0x08
  37.  
  38. #define FSB_COLORFONT 6 
  39. #define FSF_COLORFONT 0x40
  40. #define FSB_TAGGED 7 
  41. #define FSF_TAGGED 0x80
  42.  
  43.  
  44. #define FPB_ROMFONT 0 
  45. #define FPF_ROMFONT 0x01
  46. #define FPB_DISKFONT 1 
  47. #define FPF_DISKFONT 0x02
  48. #define FPB_REVPATH 2 
  49. #define FPF_REVPATH 0x04
  50. #define FPB_TALLDOT 3 
  51. #define FPF_TALLDOT 0x08
  52. #define FPB_WIDEDOT 4 
  53. #define FPF_WIDEDOT 0x10
  54. #define FPB_PROPORTIONAL 5 
  55. #define FPF_PROPORTIONAL 0x20
  56. #define FPB_DESIGNED 6 
  57.  
  58.  
  59.  
  60.  
  61. #define FPF_DESIGNED 0x40
  62.  
  63. #define FPB_REMOVED 7 
  64. #define FPF_REMOVED (1<<7)
  65.  
  66.  
  67. struct TextAttr {
  68.  STRPTR ta_Name; 
  69.  UWORD ta_YSize; 
  70.  UBYTE ta_Style; 
  71.  UBYTE ta_Flags; 
  72. };
  73.  
  74. struct TTextAttr {
  75.  STRPTR tta_Name; 
  76.  UWORD tta_YSize; 
  77.  UBYTE tta_Style; 
  78.  UBYTE tta_Flags; 
  79.  struct TagItem *tta_Tags; 
  80. };
  81.  
  82.  
  83.  
  84. #define TA_DeviceDPI (1|TAG_USER) 
  85.  
  86.  
  87. #define MAXFONTMATCHWEIGHT 32767 
  88.  
  89.  
  90.  
  91. struct TextFont {
  92.  struct Message tf_Message; 
  93.  
  94.  UWORD tf_YSize; 
  95.  UBYTE tf_Style; 
  96.  UBYTE tf_Flags; 
  97.  UWORD tf_XSize; 
  98.  UWORD tf_Baseline; 
  99.  UWORD tf_BoldSmear; 
  100.  
  101.  UWORD tf_Accessors; 
  102.  
  103.  UBYTE tf_LoChar; 
  104.  UBYTE tf_HiChar; 
  105.  APTR tf_CharData; 
  106.  
  107.  UWORD tf_Modulo; 
  108.  APTR tf_CharLoc; 
  109.  
  110.  APTR tf_CharSpace; 
  111.  APTR tf_CharKern; 
  112. };
  113.  
  114.  
  115. #define tf_Extension tf_Message.mn_ReplyPort
  116.  
  117.  
  118. #define TE0B_NOREMFONT 0 
  119. #define TE0F_NOREMFONT 0x01
  120.  
  121. struct TextFontExtension { 
  122.  UWORD tfe_MatchWord; 
  123.  UBYTE tfe_Flags0; 
  124.  UBYTE tfe_Flags1; 
  125.  struct TextFont *tfe_BackPtr; 
  126.  struct MsgPort *tfe_OrigReplyPort; 
  127.  struct TagItem *tfe_Tags; 
  128.  UWORD *tfe_OFontPatchS; 
  129.  UWORD *tfe_OFontPatchK; 
  130.  
  131. };
  132.  
  133.  
  134.  
  135. #define CT_COLORMASK 0x000F 
  136. #define CT_COLORFONT 0x0001 
  137. #define CT_GREYFONT 0x0002 
  138.  
  139. #define CT_ANTIALIAS 0x0004 
  140.  
  141. #define CTB_MAPCOLOR 0 
  142. #define CTF_MAPCOLOR 0x0001 
  143.  
  144.  
  145. struct ColorFontColors {
  146.  UWORD cfc_Reserved; 
  147.  UWORD cfc_Count; 
  148.  UWORD *cfc_ColorTable; 
  149. };
  150.  
  151.  
  152. struct ColorTextFont {
  153.  struct TextFont ctf_TF;
  154.  UWORD ctf_Flags; 
  155.  UBYTE ctf_Depth; 
  156.  UBYTE ctf_FgColor; 
  157.  UBYTE ctf_Low; 
  158.  UBYTE ctf_High; 
  159.  UBYTE ctf_PlanePick; 
  160.  UBYTE ctf_PlaneOnOff; 
  161.  struct ColorFontColors *ctf_ColorFontColors; 
  162.  APTR ctf_CharData[8]; 
  163. };
  164.  
  165.  
  166. struct TextExtent {
  167.  UWORD te_Width; 
  168.  UWORD te_Height; 
  169.  struct Rectangle te_Extent; 
  170. };
  171.  
  172. #endif 
  173.