X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ftuipriv.h;h=9a9c3281566b01aedd1143b8a69dad60f531ed97;hb=e603acae4b6cf020307b149f9874bf41d1da5337;hp=144e500d8a58e2bf3fcf7a6ac4180cf8096be976;hpb=6478a82a947e3662c31b95682661f2de9952944d;p=oftp diff --git a/src/tuipriv.h b/src/tuipriv.h index 144e500..9a9c328 100644 --- a/src/tuipriv.h +++ b/src/tuipriv.h @@ -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_ */