aboutsummarylogtreecommitdiffstats
path: root/draw.h
diff options
context:
space:
mode:
authorAnselm R. Garbe2006-07-12 15:17:22 +0200
committerAnselm R. Garbe2006-07-12 15:17:22 +0200
commit2ecc42b94c0a36677312aa6ab1288a0d2f31a79f (patch)
treebf54de7402273545091c9c5262a4ba85e26f556a /draw.h
parent02ddd0a575c2210efe8d2f5d0f8a6aea86cff639 (diff)
downloadaur-2ecc42b94c0a36677312aa6ab1288a0d2f31a79f.tar.gz
simplified several portions of code through replacing rect structs with x,y,h,w counterparts (much more readable)
Diffstat (limited to 'draw.h')
-rw-r--r--draw.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/draw.h b/draw.h
index 6c3d886e032f..4cd6fb109644 100644
--- a/draw.h
+++ b/draw.h
@@ -20,7 +20,7 @@ struct Fnt {
struct Brush {
GC gc;
Drawable drawable;
- XRectangle rect;
+ int x, y, w, h;
Fnt font;
unsigned long bg;
unsigned long fg;
@@ -31,6 +31,6 @@ extern void draw(Display *dpy, Brush *b, Bool border, const char *text);
extern void loadcolors(Display *dpy, int screen, Brush *b,
const char *bg, const char *fg, const char *bo);
extern void loadfont(Display *dpy, Fnt *font, const char *fontstr);
-extern unsigned int textwidth_l(Fnt *font, char *text, unsigned int len);
-extern unsigned int textwidth(Fnt *font, char *text);
-extern unsigned int labelheight(Fnt *font);
+extern unsigned int textnw(Fnt *font, char *text, unsigned int len);
+extern unsigned int textw(Fnt *font, char *text);
+extern unsigned int texth(Fnt *font);