1 #ifndef _TEXT_H
2 #define _TEXT_H
3 #define TEXT_PRESSED 1
4 #include "ui_helper.h"
5 int xprint(struct image *image, void *font, int x, int y,
6            const char *text, int fgcolor, int bgcolor, int mode);
7 int xtextwidth(struct image *image, void *font, const char *text);
8 int xtextheight(struct image *image, void *font);
9 int xtextcharw(struct image *image, void *font, const char c);
10 void xrectangle(struct image *image, int x, int y, int width, int height,
11                 int fgcolor);
12 void xvline(struct image *image, int x, int y, int height, int fgcolor);
13 void xhline(struct image *image, int x, int y, int width, int fgcolor);
14 char *xsaveline(struct image *img, int x1, int y1, int x2, int y2);
15 void xrestoreline(struct image *img, char *data, int x1, int y1, int x2,
16                   int y2);
17 void xline(struct image *img, int x1, int y1, int x2, int y2, int color);
18 void xprepareimage(struct image *img);
19 void overlayGrid(uih_context *c, int fgcolor);
20 
21 #endif
22