1 /* ************************************************************************ */
2 
3 
4 /* Header file for the `xvertext 5.0' routines.
5 
6    Copyright (c) 1993 Alan Richardson (mppa3@uk.ac.sussex.syma) */
7 
8 
9 /* ************************************************************************ */
10 
11 #ifndef _XVERTEXT_INCLUDED_
12 #define _XVERTEXT_INCLUDED_
13 
14 
15 #define XV_VERSION	5.0
16 #define XV_COPYRIGHT \
17       "xvertext routines Copyright (c) 1993 Alan Richardson"
18 
19 
20 /* ---------------------------------------------------------------------- */
21 
22 
23 typedef enum {One_Font, Font_Set} R_FontType;
24 
25 typedef struct R_XFont
26 {
27     R_FontType type;
28     XFontStruct *font;
29     XFontSet fontset;
30     int height;
31     int ascent;
32     int descent;
33 } R_XFont;
34 
35 
36 /* ---------------------------------------------------------------------- */
37 
38 /* Protoized : C++ or ANSI C */
39 /* only XRotDrawString is used in R */
40 double	XRotVersion(char*, int);
41 void	XRotSetMagnification(double);
42 void	XRotSetBoundingBoxPad(int);
43 int	XRotDrawString(Display*, XFontStruct*, double,
44 		       Drawable, GC, int, int, const char*);
45 int	XRotDrawImageString(Display*, XFontStruct*, double,
46 			    Drawable, GC, int, int, const char*);
47 int	XRotDrawAlignedString(Display*, XFontStruct*, double,
48 			      Drawable, GC, int, int, const char*, int);
49 int	XRotDrawAlignedImageString(Display*, XFontStruct*, double,
50 				   Drawable, GC, int, int, const char*, int);
51 XPoint *XRotTextExtents(Display*, XFontStruct*, double,
52 			int, int, const char*, int);
53 
54 /* addition in 2.1.0 */
55 int	XRfRotDrawString(Display*, R_XFont*, double,
56 			 Drawable, GC, int, int, const char*);
57 
58 /* ---------------------------------------------------------------------- */
59 #endif /* _XVERTEXT_INCLUDED_ */
60