1 #ifndef CLIB_TTENGINE_PROTOS_H
    2 #define CLIB_TTENGINE_PROTOS_H
    3 
    4 
    5 /*
    6 **  $VER: ttengine_protos.h 7.0 (13.01.2005)
    7 **
    8 **  C prototypes. For use with 32 bit integers only.
    9 **
   10 **  (c) Grzegorz Kraszewski 2003 - 2005
   11 **  All Rights Reserved
   12 */
   13 
   14 #ifndef  EXEC_TYPES_H
   15 #include <exec/types.h>
   16 #endif
   17 #ifndef  UTILITY_TAGITEM_H
   18 #include <utility/tagitem.h>
   19 #endif
   20 #ifndef  LIBRARIES_TTENGINE_H
   21 #include <libraries/ttengine.h>
   22 #endif
   23 #ifndef  GRAPHICS_TEXT_H
   24 #include <graphics/text.h>
   25 #endif
   26 #ifndef  GRAPHICS_RASTPORT_H
   27 #include <graphics/rastport.h>
   28 #endif
   29 
   30 #ifdef __cplusplus
   31 extern "C" {
   32 #endif /* __cplusplus */
   33 
   34 APTR TT_OpenFontA(struct TagItem * taglist);
   35 APTR TT_OpenFont(Tag tag1, ...);
   36 BOOL TT_SetFont(struct RastPort * rp, APTR font);
   37 void TT_CloseFont(APTR font);
   38 void TT_Text(struct RastPort * rp, APTR string, ULONG count);
   39 ULONG TT_SetAttrsA(struct RastPort * rp, struct TagItem * taglist);
   40 ULONG TT_SetAttrs(struct RastPort * rp, Tag tag1, ...);
   41 ULONG TT_GetAttrsA(struct RastPort * rp, struct TagItem * taglist);
   42 ULONG TT_GetAttrs(struct RastPort * rp, Tag tag1, ...);
   43 ULONG TT_TextLength(struct RastPort * rp, APTR string, ULONG count);
   44 void TT_TextExtent(struct RastPort * rp, APTR string, WORD count, struct TextExtent * te);
   45 ULONG TT_TextFit(struct RastPort * rp, APTR string, UWORD count, struct TextExtent * te,
   46   struct TextExtent * tec, WORD dir, UWORD cwidth, UWORD cheight);
   47 struct TT_Pixmap * TT_GetPixmapA(APTR font, APTR string, ULONG count,
   48   struct TagItem * taglist);
   49 struct TT_Pixmap * TT_GetPixmap(APTR font, APTR string, ULONG count, Tag tag1, ...);
   50 void TT_FreePixmap(struct TT_Pixmap * pixmap);
   51 void TT_DoneRastPort(struct RastPort * rp);
   52 APTR TT_AllocRequest(void);
   53 struct TagItem* TT_RequestA(APTR request, struct TagItem * taglist);
   54 struct TagItem* TT_Request(APTR request, Tag tag1, ...);
   55 void TT_FreeRequest(APTR request);
   56 STRPTR * TT_ObtainFamilyListA(struct TagItem *taglist);
   57 STRPTR * TT_ObtainFamilyList(Tag tag1, ...);
   58 void TT_FreeFamilyList(STRPTR * list);
   59 ULONG TT_CharPositions(struct RastPort * rp, APTR string, ULONG count, FLOAT *positions);
   60 
   61 #ifdef __cplusplus
   62 }
   63 #endif
   64 
   65 #endif  /*  CLIB_TTENGINE_PROTOS_H  */