progress
[oftp] / src / tuipriv.h
1 #ifndef TUIPRIV_H_
2 #define TUIPRIV_H_
3
4 #include "tui.h"
5
6 enum {
7         TUI_DRAW = TUI_NUM_CALLBACKS,
8         TUI_FREE
9 };
10
11 #define WCOMMON \
12         int type; \
13         char *title; \
14         int x, y, width, height; \
15         tui_callback cbfunc[TUI_NUM_CALLBACKS]; \
16         void *cbcls[TUI_NUM_CALLBACKS]; \
17         struct tui_widget *par, *child, *next
18
19 struct tui_widget {
20         WCOMMON;
21 };
22
23 struct tui_list_entry {
24         char *text;
25         void *data;
26 };
27
28 struct tui_list {
29         WCOMMON;
30         char **entries; /* darr */
31 };
32         
33
34 #endif  /* TUIPRIV_H_ */