X-Git-Url: https://git.danieliu.xyz/?p=dmenu.git;a=blobdiff_plain;f=dmenu.h;h=bb3b144e621becbb134c29ba1509398190c731e1;hp=5c047ff76583c5f65e5485337a623502648f40d6;hb=a1913a6af7c9cd6de18e15e989050690fdaa6600;hpb=66b2e8379f0b851d0535a50321e22b58fdaa247d diff --git a/dmenu.h b/dmenu.h index 5c047ff..bb3b144 100644 --- a/dmenu.h +++ b/dmenu.h @@ -38,6 +38,11 @@ extern int screen; extern Display *dpy; extern DC dc; /* global drawing context */ +/* draw.c */ +extern void drawtext(const char *text, unsigned long col[ColLast]); +extern unsigned int textw(const char *text); +extern unsigned int textnw(const char *text, unsigned int len); + /* util.c */ extern void *emalloc(unsigned int size); /* allocates memory, exits on error */ extern void eprint(const char *errstr, ...); /* prints errstr and exits with 1 */