diff options
Diffstat (limited to 'src/DrawUtil.hh')
-rw-r--r-- | src/DrawUtil.hh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/DrawUtil.hh b/src/DrawUtil.hh index 3b3d32c..60056c9 100644 --- a/src/DrawUtil.hh +++ b/src/DrawUtil.hh | |||
@@ -19,7 +19,7 @@ | |||
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.4 2002/03/22 11:51:46 fluxgen Exp $ | 22 | // $Id: DrawUtil.hh,v 1.5 2002/04/03 23:00:10 fluxgen Exp $ |
23 | 23 | ||
24 | #ifndef DRAWUTIL_HH | 24 | #ifndef DRAWUTIL_HH |
25 | #define DRAWUTIL_HH | 25 | #define DRAWUTIL_HH |
@@ -40,7 +40,7 @@ namespace DrawUtil | |||
40 | 40 | ||
41 | void DrawString(Display *display, Window w, GC gc, DrawUtil::Font *font, | 41 | void DrawString(Display *display, Window w, GC gc, DrawUtil::Font *font, |
42 | unsigned int text_w, unsigned int size_w, | 42 | unsigned int text_w, unsigned int size_w, |
43 | unsigned int bevel_w, char *text); | 43 | unsigned int bevel_w, const char *text); |
44 | 44 | ||
45 | // ---------------------------------------------------------------------- | 45 | // ---------------------------------------------------------------------- |
46 | // xvertext, Copyright (c) 1992 Alan Richardson (mppa3@uk.ac.sussex.syma) | 46 | // xvertext, Copyright (c) 1992 Alan Richardson (mppa3@uk.ac.sussex.syma) |
@@ -78,14 +78,14 @@ void DrawString(Display *display, Window w, GC gc, DrawUtil::Font *font, | |||
78 | 78 | ||
79 | DrawUtil::XRotCharStruct per_char[95]; | 79 | DrawUtil::XRotCharStruct per_char[95]; |
80 | }; | 80 | }; |
81 | unsigned int XRotTextWidth(DrawUtil::XRotFontStruct *rotfont, char *str, int len); | 81 | unsigned int XRotTextWidth(DrawUtil::XRotFontStruct *rotfont, const char *str, int len); |
82 | void XRotDrawString(Display *dpy, DrawUtil::XRotFontStruct *rotfont, Drawable drawable, | 82 | void XRotDrawString(Display *dpy, DrawUtil::XRotFontStruct *rotfont, Drawable drawable, |
83 | GC gc, int x, int y, char *str, int len); | 83 | GC gc, int x, int y, const char *str, int len); |
84 | 84 | ||
85 | void DrawRotString(Display *display, Window w, GC gc, DrawUtil::XRotFontStruct *font, | 85 | void DrawRotString(Display *display, Window w, GC gc, DrawUtil::XRotFontStruct *font, |
86 | unsigned int align, unsigned int text_w, | 86 | unsigned int align, unsigned int text_w, |
87 | unsigned int size_w, unsigned int size_h, | 87 | unsigned int size_w, unsigned int size_h, |
88 | unsigned int bevel_w, char *text); | 88 | unsigned int bevel_w, const char *text); |
89 | 89 | ||
90 | DrawUtil::XRotFontStruct *XRotLoadFont(Display *dpy, char *fontname, float angle); | 90 | DrawUtil::XRotFontStruct *XRotLoadFont(Display *dpy, char *fontname, float angle); |
91 | void XRotUnloadFont(Display *dpy, DrawUtil::XRotFontStruct *rotfont); | 91 | void XRotUnloadFont(Display *dpy, DrawUtil::XRotFontStruct *rotfont); |