curses
[oftp] / src / tgfx.h
1 #ifndef TGFX_H_
2 #define TGFX_H_
3
4 #include <stdarg.h>
5
6 enum {
7         TGFX_BLACK,
8         TGFX_BLUE,
9         TGFX_GREEN,
10         TGFX_CYAN,
11         TGFX_RED,
12         TGFX_MAGENTA,
13         TGFX_YELLOW,
14         TGFX_WHITE
15 };
16
17 enum {
18         TGFX_FRAME              = 1,
19         TGFX_SHADOW             = 2
20 };
21
22 void tg_init(void);
23 void tg_cleanup(void);
24
25 void tg_redraw(void);
26
27 void tg_clear(void);
28
29 void tg_fgcolor(int col);
30 void tg_bgcolor(int col);
31 void tg_color(int col);
32 void tg_bgchar(int c);
33
34 void tg_setcursor(int x, int y);
35
36 void tg_text(int x, int y, const char *fmt, ...);
37 void tg_vtext(int x, int y, const char *fmt, va_list ap);
38
39 void tg_rect(const char *label, int x, int y, int xsz, int ysz, unsigned int flags);
40
41 #endif  /* TGFX_H_ */