1 
2 //
3 // Portions Copyright (C) 2000-2019 The Xastir Group
4 //
5 
6 /* ************************************************************************ */
7 
8 
9 /* Header file for the `xvertext 5.0' routines.
10 
11    Copyright (c) 1993 Alan Richardson (mppa3@uk.ac.sussex.syma) */
12 
13 
14 /* ************************************************************************ */
15 
16 #ifndef _XVERTEXT_INCLUDED_
17 #define _XVERTEXT_INCLUDED_
18 
19 
20 #define XV_VERSION      5.0
21 #define XV_COPYRIGHT \
22       "xvertext routines Copyright (c) 1993 Alan Richardson"
23 
24 
25 /* ---------------------------------------------------------------------- */
26 
27 
28 /* text alignment */
29 
30 #define NONE             0
31 #define TLEFT            1
32 #define TCENTRE          2
33 #define TRIGHT           3
34 #define MLEFT            4
35 #define MCENTRE          5
36 #define MRIGHT           6
37 #define BLEFT            7
38 #define BCENTRE          8
39 #define BRIGHT           9
40 
41 
42 /* ---------------------------------------------------------------------- */
43 
44 /* this shoulf be C++ compliant, thanks to
45      vlp@latina.inesc.pt (Vasco Lopes Paulo) */
46 
47 #if defined(__cplusplus) || defined(c_plusplus)
48 
49 extern "C" {
50 float   XRotVersion(char*, int);
51 void    XRotSetMagnification(float);
52 void    XRotSetBoundingBoxPad(int);
53 int     XRotDrawString(Display*, XFontStruct*, float,
54                        Drawable, GC, int, int, char*);
55 int     XRotDrawImageString(Display*, XFontStruct*, float,
56                             Drawable, GC, int, int, char*);
57 int     XRotDrawAlignedString(Display*, XFontStruct*, float,
58                               Drawable, GC, int, int, char*, int);
59 int     XRotDrawAlignedImageString(Display*, XFontStruct*, float,
60                                    Drawable, GC, int, int, char*, int);
61 XPoint *XRotTextExtents(Display*, XFontStruct*, float,
62                         int, int, char*, int);
63 }
64 
65 #else   // _cplusplus || c_plusplus
66 
67 extern float   XRotVersion(char *, int);
68 extern void    XRotSetMagnification(float);
69 extern void    XRotSetBoundingBoxPad(int);
70 extern int     XRotDrawString(Display *, XFontStruct*, float,
71                               Drawable, GC, int, int, char*);
72 extern int     XRotDrawImageString(Display*, XFontStruct*, float,
73                                    Drawable, GC, int, int, char*);
74 extern int     XRotDrawAlignedString(Display*, XFontStruct*, float,
75                                      Drawable, GC, int, int, char*, int);
76 extern int     XRotDrawAlignedImageString(Display*, XFontStruct*, float,
77     Drawable, GC, int, int, char*, int);
78 extern XPoint *XRotTextExtents(Display*, XFontStruct*, float,
79                                int, int, char*, int);
80 
81 #endif /* __cplusplus */
82 
83 /* ---------------------------------------------------------------------- */
84 
85 
86 #endif /* _XVERTEXT_INCLUDED_ */
87 
88 
89