rename project to visftp
[oftp] / src / tuipriv.h
index 144e500..9a9c328 100644 (file)
@@ -3,13 +3,19 @@
 
 #include "tui.h"
 
+enum {
+       TUI_DRAW = TUI_NUM_CALLBACKS,
+       TUI_FREE
+};
+
 #define WCOMMON        \
        int type; \
        char *title; \
        int x, y, width, height; \
+       int focus, 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;
@@ -23,7 +29,9 @@ struct tui_list_entry {
 struct tui_list {
        WCOMMON;
        char **entries; /* darr */
+       int sel;
+       int view_offs;
 };
-       
+
 
 #endif /* TUIPRIV_H_ */