summaryrefslogtreecommitdiffstats
path: root/draw.h
diff options
context:
space:
mode:
authorAnselm R. Garbe <garbeam@wmii.de>2006-07-12 15:17:22 +0200
committerAnselm R. Garbe <garbeam@wmii.de>2006-07-12 15:17:22 +0200
commitdfd84f9bf3b9d949412a73bc62a43109b340d395 (patch)
treeebeac582951e2ef574f50018298c4bc928849d64 /draw.h
parentfixed configurerequest (diff)
downloaddwm-dfd84f9bf3b9d949412a73bc62a43109b340d395.tar.gz
dwm-dfd84f9bf3b9d949412a73bc62a43109b340d395.zip
simplified several portions of code through replacing rect structs with x,y,h,w counterparts (much more readable)
Diffstat (limited to '')
-rw-r--r--draw.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/draw.h b/draw.h
index 6c3d886..4cd6fb1 100644
--- a/draw.h
+++ b/draw.h
@@ -20,7 +20,7 @@ struct Fnt {
20struct Brush { 20struct Brush {
21 GC gc; 21 GC gc;
22 Drawable drawable; 22 Drawable drawable;
23 XRectangle rect; 23 int x, y, w, h;
24 Fnt font; 24 Fnt font;
25 unsigned long bg; 25 unsigned long bg;
26 unsigned long fg; 26 unsigned long fg;
@@ -31,6 +31,6 @@ extern void draw(Display *dpy, Brush *b, Bool border, const char *text);
31extern void loadcolors(Display *dpy, int screen, Brush *b, 31extern void loadcolors(Display *dpy, int screen, Brush *b,
32 const char *bg, const char *fg, const char *bo); 32 const char *bg, const char *fg, const char *bo);
33extern void loadfont(Display *dpy, Fnt *font, const char *fontstr); 33extern void loadfont(Display *dpy, Fnt *font, const char *fontstr);
34extern unsigned int textwidth_l(Fnt *font, char *text, unsigned int len); 34extern unsigned int textnw(Fnt *font, char *text, unsigned int len);
35extern unsigned int textwidth(Fnt *font, char *text); 35extern unsigned int textw(Fnt *font, char *text);
36extern unsigned int labelheight(Fnt *font); 36extern unsigned int texth(Fnt *font);