2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
3 * See LICENSE file for license details.
8 #include <X11/Xlocale.h>
10 typedef struct Brush Brush;
12 typedef struct Fnt Fnt;
22 struct DC { /* draw context */
45 extern void draw(Display *dpy, Brush *b, Bool border, const char *text);
46 extern void loadcolors(Display *dpy, int screen, Brush *b,
47 const char *bg, const char *fg, const char *bo);
48 extern void loadfont(Display *dpy, Fnt *font, const char *fontstr);
49 extern unsigned int textnw(Fnt *font, char *text, unsigned int len);
50 extern unsigned int textw(Fnt *font, char *text);
51 extern unsigned int texth(Fnt *font);
54 extern void *emalloc(unsigned int size);
55 extern void *emallocz(unsigned int size);
56 extern void eprint(const char *errstr, ...);
57 extern char *estrdup(const char *str);
58 extern void swap(void **p1, void **p2);