aboutsummaryrefslogtreecommitdiff
path: root/src/DrawUtil.hh
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2002-03-22 11:51:46 (GMT)
committerfluxgen <fluxgen>2002-03-22 11:51:46 (GMT)
commit1022df421227aea29259204ce69b93df16c0f7db (patch)
tree7083672dbd958af2d4d2fb41f19c80493a7351e6 /src/DrawUtil.hh
parent537c89c9c4b9c4cde9593083b8aa187a7df6a1be (diff)
downloadfluxbox-1022df421227aea29259204ce69b93df16c0f7db.zip
fluxbox-1022df421227aea29259204ce69b93df16c0f7db.tar.bz2
to namespace
Diffstat (limited to 'src/DrawUtil.hh')
-rw-r--r--src/DrawUtil.hh20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/DrawUtil.hh b/src/DrawUtil.hh
index 5131c70..3b3d32c 100644
--- a/src/DrawUtil.hh
+++ b/src/DrawUtil.hh
@@ -19,14 +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.3 2002/02/17 19:00:14 fluxgen Exp $ 22// $Id: DrawUtil.hh,v 1.4 2002/03/22 11:51:46 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
29struct DrawUtil 29namespace DrawUtil
30{ 30{
31 struct Font 31 struct Font
32 { 32 {
@@ -38,7 +38,7 @@ struct DrawUtil
38 FontJustify justify; 38 FontJustify justify;
39 }; 39 };
40 40
41static void DrawString(Display *display, Window w, GC gc, DrawUtil::Font *font, 41void 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, char *text);
44 44
@@ -78,18 +78,18 @@ static 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 };
81static unsigned int XRotTextWidth(DrawUtil::XRotFontStruct *rotfont, char *str, int len); 81unsigned int XRotTextWidth(DrawUtil::XRotFontStruct *rotfont, char *str, int len);
82static void XRotDrawString(Display *dpy, DrawUtil::XRotFontStruct *rotfont, Drawable drawable, 82void 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, char *str, int len);
84 84
85static void DrawRotString(Display *display, Window w, GC gc, DrawUtil::XRotFontStruct *font, 85void 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, char *text);
89 89
90static DrawUtil::XRotFontStruct *XRotLoadFont(Display *dpy, char *fontname, float angle); 90DrawUtil::XRotFontStruct *XRotLoadFont(Display *dpy, char *fontname, float angle);
91static void XRotUnloadFont(Display *dpy, DrawUtil::XRotFontStruct *rotfont); 91void XRotUnloadFont(Display *dpy, DrawUtil::XRotFontStruct *rotfont);
92 92
93}; 93}; //end namespace DrawUtil
94 94
95#endif //_DRAWUTIL_HH_ 95#endif //DRAWUTIL_HH