diff options
author | fluxgen <fluxgen> | 2001-12-11 20:47:02 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2001-12-11 20:47:02 (GMT) |
commit | 18830ac9add80cbd3bf7369307d7e35a519dca9b (patch) | |
tree | 4759a5434a34ba317fe77bbf8b0ed9bb57bb6018 /src/Rotated.hh | |
parent | 1523b48bff07dead084af3064ad11c79a9b25df0 (diff) | |
download | fluxbox_paul-18830ac9add80cbd3bf7369307d7e35a519dca9b.zip fluxbox_paul-18830ac9add80cbd3bf7369307d7e35a519dca9b.tar.bz2 |
Initial revision
Diffstat (limited to 'src/Rotated.hh')
-rw-r--r-- | src/Rotated.hh | 83 |
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 | |||
25 | struct BitmapStruct { | ||
26 | int bit_w; | ||
27 | int bit_h; | ||
28 | |||
29 | Pixmap bm; | ||
30 | }; | ||
31 | |||
32 | struct XRotCharStruct { | ||
33 | int ascent; | ||
34 | int descent; | ||
35 | int lbearing; | ||
36 | int rbearing; | ||
37 | int width; | ||
38 | |||
39 | BitmapStruct glyph; | ||
40 | }; | ||
41 | |||
42 | struct 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 | |||
60 | extern float XRotVersion(char *, int); | ||
61 | extern XRotFontStruct *XRotLoadFont(Display *, char *, float); | ||
62 | extern void XRotUnloadFont(Display *, XRotFontStruct *); | ||
63 | extern unsigned int XRotTextWidth(XRotFontStruct *, char *, int); | ||
64 | extern void XRotDrawString(Display *, XRotFontStruct *, Drawable, GC, | ||
65 | int, int, char *, int); | ||
66 | |||
67 | /* ---------------------------------------------------------------------- */ | ||
68 | |||
69 | extern 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 | |||
81 | extern int xv_errno; | ||
82 | |||
83 | #endif | ||