diff options
author | fluxgen <fluxgen> | 2002-11-25 14:00:20 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-11-25 14:00:20 (GMT) |
commit | 1fc16d3d3d8a62a9697f4a42044b695707fe5d50 (patch) | |
tree | b0b17d4539f758569f18042f0f8aa8be2e28d5b3 /src/DrawUtil.hh | |
parent | 451ea7e5b853db9a20ee93e28e3e5a11caf0bf73 (diff) | |
download | fluxbox-1fc16d3d3d8a62a9697f4a42044b695707fe5d50.zip fluxbox-1fc16d3d3d8a62a9697f4a42044b695707fe5d50.tar.bz2 |
removed rotate font functions
Diffstat (limited to 'src/DrawUtil.hh')
-rw-r--r-- | src/DrawUtil.hh | 53 |
1 files changed, 2 insertions, 51 deletions
diff --git a/src/DrawUtil.hh b/src/DrawUtil.hh index d866961..48caeec 100644 --- a/src/DrawUtil.hh +++ b/src/DrawUtil.hh | |||
@@ -19,15 +19,14 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: DrawUtil.hh,v 1.7 2002/11/12 22:44:17 fluxgen Exp $ | 22 | // $Id: DrawUtil.hh,v 1.8 2002/11/25 14:00:20 fluxgen Exp $ |
23 | 23 | ||
24 | #ifndef DRAWUTIL_HH | 24 | #ifndef DRAWUTIL_HH |
25 | #define DRAWUTIL_HH | 25 | #define DRAWUTIL_HH |
26 | 26 | ||
27 | #include <X11/Xlib.h> | 27 | #include <X11/Xlib.h> |
28 | 28 | ||
29 | namespace DrawUtil | 29 | namespace DrawUtil { |
30 | { | ||
31 | // note: obsolete! | 30 | // note: obsolete! |
32 | struct Font { | 31 | struct Font { |
33 | enum FontJustify {LEFT=0, RIGHT, CENTER}; | 32 | enum FontJustify {LEFT=0, RIGHT, CENTER}; |
@@ -37,54 +36,6 @@ namespace DrawUtil | |||
37 | XFontStruct *fontstruct; | 36 | XFontStruct *fontstruct; |
38 | FontJustify justify; | 37 | FontJustify justify; |
39 | }; | 38 | }; |
40 | |||
41 | // ---------------------------------------------------------------------- | ||
42 | // xvertext, Copyright (c) 1992 Alan Richardson (mppa3@uk.ac.sussex.syma) | ||
43 | // ---------------------------------------------------------------------- | ||
44 | |||
45 | /* *** The font structures *** */ | ||
46 | |||
47 | struct BitmapStruct { | ||
48 | int bit_w; | ||
49 | int bit_h; | ||
50 | |||
51 | Pixmap bm; | ||
52 | }; | ||
53 | |||
54 | struct XRotCharStruct { | ||
55 | int ascent; | ||
56 | int descent; | ||
57 | int lbearing; | ||
58 | int rbearing; | ||
59 | int width; | ||
60 | |||
61 | BitmapStruct glyph; | ||
62 | }; | ||
63 | |||
64 | struct XRotFontStruct { | ||
65 | int dir; | ||
66 | int height; | ||
67 | int max_ascent; | ||
68 | int max_descent; | ||
69 | int max_char; | ||
70 | int min_char; | ||
71 | char *name; | ||
72 | |||
73 | XFontStruct *xfontstruct; | ||
74 | |||
75 | DrawUtil::XRotCharStruct per_char[95]; | ||
76 | }; | ||
77 | unsigned int XRotTextWidth(DrawUtil::XRotFontStruct *rotfont, const char *str, int len); | ||
78 | void XRotDrawString(Display *dpy, DrawUtil::XRotFontStruct *rotfont, Drawable drawable, | ||
79 | GC gc, int x, int y, const char *str, int len); | ||
80 | |||
81 | void DrawRotString(Display *display, Window w, GC gc, DrawUtil::XRotFontStruct *font, | ||
82 | unsigned int align, unsigned int text_w, | ||
83 | unsigned int size_w, unsigned int size_h, | ||
84 | unsigned int bevel_w, const char *text); | ||
85 | |||
86 | DrawUtil::XRotFontStruct *XRotLoadFont(Display *dpy, char *fontname, float angle); | ||
87 | void XRotUnloadFont(Display *dpy, DrawUtil::XRotFontStruct *rotfont); | ||
88 | 39 | ||
89 | }; //end namespace DrawUtil | 40 | }; //end namespace DrawUtil |
90 | 41 | ||