summaryrefslogtreecommitdiff
path: root/src/Rotated.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/Rotated.hh')
-rw-r--r--src/Rotated.hh83
1 files changed, 83 insertions, 0 deletions
diff --git a/src/Rotated.hh b/src/Rotated.hh
new file mode 100644
index 0000000..c07e1ce
--- /dev/null
+++ b/src/Rotated.hh
@@ -0,0 +1,83 @@
1/* ************************************************************************ */
2
3
4/* Header file for the `xvertext' routines.
5
6 Copyright (c) 1992 Alan Richardson (mppa3@uk.ac.sussex.syma) */
7
8
9/* ************************************************************************ */
10
11
12#ifndef _XVERTEXT_INCLUDED_
13#define _XVERTEXT_INCLUDED_
14
15
16#define XV_VERSION 2.0
17#define XV_COPYRIGHT "xvertext routines Copyright (c) 1992 Alan Richardson"
18
19
20/* ---------------------------------------------------------------------- */
21
22
23/* *** The font structures *** */
24
25struct BitmapStruct {
26 int bit_w;
27 int bit_h;
28
29 Pixmap bm;
30};
31
32struct XRotCharStruct {
33 int ascent;
34 int descent;
35 int lbearing;
36 int rbearing;
37 int width;
38
39 BitmapStruct glyph;
40};
41
42struct XRotFontStruct {
43 int dir;
44 int height;
45 int max_ascent;
46 int max_descent;
47 int max_char;
48 int min_char;
49 char *name;
50
51 XFontStruct *xfontstruct;
52
53 XRotCharStruct per_char[95];
54};
55
56
57/* ---------------------------------------------------------------------- */
58
59
60extern float XRotVersion(char *, int);
61extern XRotFontStruct *XRotLoadFont(Display *, char *, float);
62extern void XRotUnloadFont(Display *, XRotFontStruct *);
63extern unsigned int XRotTextWidth(XRotFontStruct *, char *, int);
64extern void XRotDrawString(Display *, XRotFontStruct *, Drawable, GC,
65 int, int, char *, int);
66
67/* ---------------------------------------------------------------------- */
68
69extern int xv_errno;
70
71#define XV_NOFONT 1 /* no such font on X server */
72#define XV_NOMEM 2 /* couldn't do malloc */
73#define XV_NOXIMAGE 3 /* couldn't create an XImage */
74
75
76/* ---------------------------------------------------------------------- */
77
78
79#else
80
81extern int xv_errno;
82
83#endif