diff options
author | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-12 15:17:22 +0200 |
---|---|---|
committer | Anselm R. Garbe <garbeam@wmii.de> | 2006-07-12 15:17:22 +0200 |
commit | dfd84f9bf3b9d949412a73bc62a43109b340d395 (patch) | |
tree | ebeac582951e2ef574f50018298c4bc928849d64 /draw.h | |
parent | 7696c89c90c926f6371b1ee3ec1b13dd2414aa40 (diff) |
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.h | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); |