home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / include / inline / diskfont.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-10-12  |  1.0 KB  |  33 lines

  1. #ifndef _INLINE_DISKFONT_H
  2. #define _INLINE_DISKFONT_H
  3.  
  4. #ifndef __INLINE_MACROS_H
  5. #include <inline/macros.h>
  6. #endif
  7.  
  8. #ifndef DISKFONT_BASE_NAME
  9. #define DISKFONT_BASE_NAME DiskfontBase
  10. #endif
  11.  
  12. #define AvailFonts(buffer, bufBytes, flags) \
  13.     LP3(0x24, LONG, AvailFonts, STRPTR, buffer, a0, long, bufBytes, d0, long, flags, d1, \
  14.     , DISKFONT_BASE_NAME)
  15.  
  16. #define DisposeFontContents(fontContentsHeader) \
  17.     LP1NR(0x30, DisposeFontContents, struct FontContentsHeader *, fontContentsHeader, a1, \
  18.     , DISKFONT_BASE_NAME)
  19.  
  20. #define NewFontContents(fontsLock, fontName) \
  21.     LP2(0x2a, struct FontContentsHeader *, NewFontContents, BPTR, fontsLock, a0, STRPTR, fontName, a1, \
  22.     , DISKFONT_BASE_NAME)
  23.  
  24. #define NewScaledDiskFont(sourceFont, destTextAttr) \
  25.     LP2(0x36, struct DiskFont *, NewScaledDiskFont, struct TextFont *, sourceFont, a0, struct TextAttr *, destTextAttr, a1, \
  26.     , DISKFONT_BASE_NAME)
  27.  
  28. #define OpenDiskFont(textAttr) \
  29.     LP1(0x1e, struct TextFont *, OpenDiskFont, struct TextAttr *, textAttr, a0, \
  30.     , DISKFONT_BASE_NAME)
  31.  
  32. #endif /* _INLINE_DISKFONT_H */
  33.