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