X-Git-Url: https://git.xinqibao.xyz/dmenu.git/blobdiff_plain/665488a6eedeecf743e44bd9624105c8b47c4f97..8a10b35c64ebe8791ed5c7325b31d86e269b308c:/dmenu.h 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 */