8 /* ncurses doesn't support multiline menu items,
9 * so i wrote my own menu lib */
22 typedef struct Menu Menu;
23 typedef struct MenuItem MenuItem;
25 extern MenuItem* create_menuitem(char* contents);
27 extern Menu* create_menu(char* menu_name, MenuItem** item_list);
28 extern int set_menu_win(Menu* menu, WINDOW* win);
29 extern MenuItem* get_menu_items(Menu* menu);
30 extern int set_menu_focus(Menu* menu, bool focus);
31 extern int get_selected_item(Menu* menu);
32 extern int set_selected_item(Menu* menu, int selected_item);
33 extern int get_menu_length(Menu* menu);
35 extern int menu_driver(Menu* menu, MenuAction action);
37 extern int render_menu(Menu* menu);
39 extern int free_menu(Menu* menu);