Main Page | Data Structures | File List | Globals

include/libttf.h

00001 /*
00002 ** mouse:~ppr/src/include/libttf.h
00003 ** Copyright 1998, Trinity College Computing Center.
00004 ** Written by David Chappell.
00005 **
00006 ** Permission to use, copy, modify, and distribute this software and its
00007 ** documentation for any purpose and without fee is hereby granted, provided
00008 ** that the above copyright notice appear in all copies and that both that
00009 ** copyright notice and this permission notice appear in supporting
00010 ** documentation.  This software and documentation are provided "as is" without
00011 ** express or implied warranty.
00012 **
00013 ** Last modified 10 November 1998.
00014 */
00015 
00016 /* Return type for libttf functions: */
00017 enum TTF_RESULT_TYPE
00018         {
00019         TTF_OK,
00020         TTF_NOTOBJ,
00021         TTF_NOMEM,
00022         TTF_BADFREE,
00023         TTF_CANTOPEN,
00024         TTF_TBL_NOTFOUND,
00025         TTF_TBL_CANTSEEK,
00026         TTF_TBL_CANTREAD,
00027         TTF_TBL_TOOBIG,
00028         TTF_REQNAME,
00029         TTF_UNSUP_LOCA,
00030         TTF_UNSUP_GLYF,
00031         TTF_UNSUP_POST,
00032         TTF_GLYF_BADPAD,
00033         TTF_GLYF_CANTREAD,
00034         TTF_GLYF_SIZEINC,
00035         TTF_GLYF_BADFLAGS,
00036         TTF_LONGPSNAME
00037 
00038         };
00039 typedef enum TTF_RESULT_TYPE TTF_RESULT;
00040 
00041 /* Exported funnctions: */
00042 TTF_RESULT ttf_new(void **pp, const char filename[]);
00043 int ttf_delete(void *p);
00044 TTF_RESULT ttf_errno(void *p);
00045 const char *ttf_strerror(TTF_RESULT result_code);
00046 int ttf_psout(void *p, void (*out_putc)(int c), void (*out_puts)(const char *string), void (*out_printf)(const char *format, ...), int target_type);
00047 char *ttf_get_psname(void *p);
00048 
00049 /* end of file */
00050 

Generated on Fri Feb 20 15:17:47 2004 for PPR Libraries by doxygen 1.3.5