home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Pascal / MAXONPASCAL2.DMS / in.adf / INCLUDE / graphics / text.h < prev    next >
Encoding:
Text File  |  1994-07-25  |  3.1 KB  |  142 lines

  1. {$if not def GRAPHICS_TEXT_H} CONST GRAPHICS_TEXT_H=0;
  2.  
  3. { *****************************************************************
  4.   ** KickPascal-Include-Datei "graphics/text.h" zu Kickstart 3.0 **
  5.   ***************************************************************** }
  6.  
  7. TYPE p_TextAttr = ^TextAttr;
  8. TYPE p_TTextAttr = ^TTextAttr;
  9. TYPE p_TextFont = ^TextFont;
  10. TYPE p_TextFontExtension = ^TextFontExtension;
  11. TYPE p_ColorTextFont = ^ColorTextFont;
  12. TYPE p_ColorFontColors = ^ColorFontColors;
  13. TYPE p_TextExtent = ^_TextExtent;
  14.  
  15. {$if not def EXEC_PORTS_H;incl "exec/ports.h";endif}
  16. {$if not def GRAPHICS_GFX_H;incl "graphics/gfx.h";endif}
  17. {$if not def UTILITY_TAGITEM_H;incl "utility/tagitem.h";endif}
  18.  
  19. CONST
  20.  FS_NORMAL      = 0;
  21.  FSB_UNDERLINED = 0;
  22.  FSF_UNDERLINED = $01;
  23.  FSB_BOLD       = 1;
  24.  FSF_BOLD       = $02;
  25.  FSB_ITALIC     = 2;
  26.  FSF_ITALIC     = $04;
  27.  FSB_EXTENDED   = 3;
  28.  FSF_EXTENDED   = $08;
  29.  
  30.  FSB_COLORFONT  = 6;
  31.  FSF_COLORFONT  = $40;
  32.  FSB_TAGGED     = 7;
  33.  FSF_TAGGED     = $80;
  34.  
  35. CONST
  36.  FPB_ROMFONT      = 0;
  37.  FPF_ROMFONT      = $01;
  38.  FPB_DISKFONT     = 1;
  39.  FPF_DISKFONT     = $02;
  40.  FPB_REVPATH      = 2;
  41.  FPF_REVPATH      = $04;
  42.  FPB_TALLDOT      = 3;
  43.  FPF_TALLDOT      = $08;
  44.  FPB_WIDEDOT      = 4;
  45.  FPF_WIDEDOT      = $10;
  46.  FPB_PROPORTIONAL = 5;
  47.  FPF_PROPORTIONAL = $20;
  48.  FPB_DESIGNED     = 6;
  49.  FPF_DESIGNED     = $40;
  50.  FPB_REMOVED      = 7;
  51.  FPF_REMOVED      = $80;
  52.  
  53. TYPE TextAttr = RECORD
  54.  ta_Name  : Str;
  55.  ta_YSize : Word;
  56.  ta_Style : Byte;
  57.  ta_Flags : Byte;
  58. END;
  59.  
  60. TYPE TTextAttr = RECORD
  61.  tta_Name  : Str;
  62.  tta_YSize : Word;
  63.  tta_Style : Byte;
  64.  tta_Flags : Byte;
  65.  tta_Tags  : p_TagItem;
  66. END;
  67.  
  68.  
  69. CONST TA_DeviceDPI = (TAG_USER+1);
  70.  
  71. CONST MAXFONTMATCHWEIGHT = 32767;
  72.  
  73.  
  74. TYPE TextFont = RECORD
  75.  tf_Message   : Message;
  76.  tf_YSize     : Word;
  77.  tf_Style     : Byte;
  78.  tf_Flags     : Byte;
  79.  tf_XSize     : Word;
  80.  tf_Baseline  : Word;
  81.  tf_BoldSmear : Word;
  82.  tf_Accessors : Word;
  83.  tf_LoChar    : Byte;
  84.  tf_HiChar    : Byte;
  85.  tf_CharData  : Ptr;
  86.  tf_Modulo    : Word;
  87.  tf_CharLoc   : Ptr;
  88.  tf_CharSpace : Ptr;
  89.  tf_CharKern  : Ptr;
  90. END; { ** Bemerkung : tf_Extension=tf_Message.mn_ReplyPort }
  91.  
  92. CONST
  93.  TE0B_NOREMFONT  = 0;
  94.  TE0F_NOREMFONT  = $01;
  95.  
  96. TYPE TextFontExtension = RECORD
  97.  tfe_MatchWord     : Word;
  98.  tfe_Flags0        : Byte;
  99.  tfe_Flags1        : Byte;
  100.  tfe_BackPtr       : p_TextFont;
  101.  tfe_OrigReplyPort : p_MsgPort;
  102.  tfe_Tags          : p_TagItem;
  103.  tfe_OFontPatchS   : Ptr;
  104.  tfe_OFontPatchK   : Ptr;
  105. END;
  106.  
  107. CONST
  108.  CT_COLORMASK  = $000F;
  109.  CT_COLORFONT  = $0001;
  110.  CT_GREYFONT   = $0002;
  111.  CT_ANTIALIAS  = $0004;
  112.  CTB_MAPCOLOR  = 0;
  113.  CTF_MAPCOLOR  = $0001;
  114.  
  115.  
  116. TYPE ColorFontColors = RECORD
  117.  cfc_Reserved   : Word;
  118.  cfc_Count      : Word;
  119.  cfc_ColorTable : Ptr;
  120. END;
  121.  
  122. TYPE ColorTextFont = RECORD
  123.  ctf_TF              : TextFont;
  124.  ctf_Flags           : Word;
  125.  ctf_Depth           : Byte;
  126.  ctf_FgColor         : Byte;
  127.  ctf_Low             : Byte;
  128.  ctf_High            : Byte;
  129.  ctf_PlanePick       : Byte;
  130.  ctf_PlaneOnOff      : Byte;
  131.  ctf_ColorFontColors : p_ColorFontColors;
  132.  ctf_CharData        : ARRAY[0..7] OF Ptr;
  133. END;
  134.  
  135. TYPE _TextExtent = RECORD
  136.  te_Width  : Word;
  137.  te_Height : Word;
  138.  te_Extent : Rectangle;
  139. END;
  140.  
  141. {$endif}
  142.