X-Git-Url: https://git.deb.at/?a=blobdiff_plain;f=list.h;h=d6389791fc4477c0012fdaf841c4771a9cd9aa71;hb=7d50ad7bf95f96320e86f9201533ae308609aa05;hp=f76928ee244328ea07ce008254f908329990b675;hpb=0d3c17d9ab127e5596c8fb97d65122b3b90f6b11;p=pkg%2Fabook.git diff --git a/list.h b/list.h index f76928e..d638979 100644 --- a/list.h +++ b/list.h @@ -1,11 +1,12 @@ #ifndef _LIST_H #define _LIST_H +#include "ui.h" void init_list(); void close_list(); void refresh_list(); -void print_list_line(int i, int line); +void print_list_line(int i, int line, int highlight); void list_headerline(); void scroll_up(); void scroll_down(); @@ -19,6 +20,8 @@ void goto_end(); void highlight_line(WINDOW *win, int line); int selected_items(); void invert_selection(); +int list_current_item(); +int list_is_empty(); enum { @@ -27,7 +30,7 @@ enum { }; #define LIST_TOP 3 -#define LIST_BOTTOM (LINES-3) +#define LIST_BOTTOM (LINES-2) #define LIST_LINES (LIST_BOTTOM-LIST_TOP) #define LIST_COLS COLS