Xinqi Bao's Git
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 #define SPACE 30 /* px */
13 enum { ColFG
, ColBG
, ColLast
};
16 typedef struct Fnt Fnt
;
26 struct DC
{ /* draw context */
28 unsigned long norm
[ColLast
];
29 unsigned long sel
[ColLast
];
40 extern void drawtext(const char *text
, unsigned long col
[ColLast
]);
41 extern unsigned long getcolor(const char *colstr
);
42 extern void setfont(const char *fontstr
);
43 extern unsigned int textw(const char *text
);
46 extern void *emalloc(unsigned int size
);
47 extern void eprint(const char *errstr
, ...);
48 extern char *estrdup(const char *str
);