#include "tui.h"
+enum {
+ TUI_DRAW = TUI_NUM_CALLBACKS,
+ TUI_FREE
+};
+
#define WCOMMON \
int type; \
char *title; \
int x, y, width, height; \
+ int dirty; \
tui_callback cbfunc[TUI_NUM_CALLBACKS]; \
void *cbcls[TUI_NUM_CALLBACKS]; \
- struct widget *next
+ struct tui_widget *par, *child, *next
struct tui_widget {
WCOMMON;
struct tui_list {
WCOMMON;
char **entries; /* darr */
+ int sel;
+ int view_offs;
};
-
+
#endif /* TUIPRIV_H_ */